X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fasm.h;h=23263cb90e8264bf80807e4e577c165737f8d668;hb=9eef7e171f6502fbd097e8242347883290eed89c;hp=8a75766c6de27256a8c4fadd4be6c019b25fd5a3;hpb=7101cc7a320f90236345a21d826856dcfc360cf7;p=fw%2Fsdcc diff --git a/src/asm.h b/src/asm.h index 8a75766c..23263cb9 100644 --- a/src/asm.h +++ b/src/asm.h @@ -1,30 +1,40 @@ #ifndef ASM_PORT_INCLUDE #define ASM_PORT_INCLUDE -void tfprintf(FILE *fp, const char *szFormat, ...); -void tsprintf(char *buffer, const char *szFormat, ...); -void tvsprintf(char *buffer, const char *szFormat, va_list ap); +void tfprintf (FILE * fp, const char *szFormat, ...); +void tsprintf (char *buffer, size_t len, const char *szFormat, ...); +void tvsprintf (char *buffer, size_t len, const char *szFormat, va_list ap); -typedef struct { +typedef struct + { const char *szKey; const char *szValue; -} ASM_MAPPING; + } +ASM_MAPPING; typedef struct _ASM_MAPPINGS ASM_MAPPINGS; /* PENDING: could include the peephole rules here as well. -*/ -struct _ASM_MAPPINGS { + */ +struct _ASM_MAPPINGS + { const ASM_MAPPINGS *pParent; const ASM_MAPPING *pMappings; -}; + }; /* The default asxxxx token mapping. */ extern const ASM_MAPPINGS asm_asxxxx_mapping; +extern const ASM_MAPPINGS asm_gas_mapping; +extern const ASM_MAPPINGS asm_a390_mapping; +extern const ASM_MAPPINGS asm_xa_asm_mapping; /** Last entry has szKey = NULL. */ -void asm_addTree(const ASM_MAPPINGS *pMappings); +void asm_addTree (const ASM_MAPPINGS * pMappings); + +char *FileBaseName (char *fileFullName); +char *printILine (iCode *ic); +char *printCLine (char *srcFile, int lineno); #endif