mirror of
https://github.com/cc65/cc65.git
synced 2024-08-23 14:29:27 +00:00
Added SegTypeToStr
git-svn-id: svn://svn.cc65.org/cc65/trunk@2439 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
f4e5baa444
commit
3604512985
@ -80,3 +80,16 @@ SegDef* DupSegDef (const SegDef* Def)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const char* SetTypeToStr (unsigned char Type)
|
||||||
|
/* Map a segment type into a string */
|
||||||
|
{
|
||||||
|
switch (Type) {
|
||||||
|
case SEGTYPE_ABS: return "abs";
|
||||||
|
case SEGTYPE_ZP: return "zp";
|
||||||
|
case SEGTYPE_FAR: return "far";
|
||||||
|
default: return "unknown";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,6 +77,9 @@ void FreeSegDef (SegDef* D);
|
|||||||
SegDef* DupSegDef (const SegDef* D);
|
SegDef* DupSegDef (const SegDef* D);
|
||||||
/* Duplicate a segment definition and return it */
|
/* Duplicate a segment definition and return it */
|
||||||
|
|
||||||
|
const char* SetTypeToStr (unsigned char Type);
|
||||||
|
/* Map a segment type into a string */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* End of segdefs.h */
|
/* End of segdefs.h */
|
||||||
|
Loading…
Reference in New Issue
Block a user