1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-20 05:29:39 +00:00

Added SegTypeToStr

git-svn-id: svn://svn.cc65.org/cc65/trunk@2439 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-09-14 19:27:59 +00:00
parent f4e5baa444
commit 3604512985
2 changed files with 16 additions and 0 deletions

View File

@ -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";
}
}

View File

@ -77,6 +77,9 @@ void FreeSegDef (SegDef* D);
SegDef* DupSegDef (const SegDef* D);
/* Duplicate a segment definition and return it */
const char* SetTypeToStr (unsigned char Type);
/* Map a segment type into a string */
/* End of segdefs.h */