Fix asm label generation. Suppress some warning
[fw/sdcc] / src / asm.h
1 #ifndef ASM_PORT_INCLUDE
2 #define ASM_PORT_INCLUDE
3
4 void tfprintf(FILE *fp, const char *szFormat, ...);
5 void tsprintf(char *buffer, const char *szFormat, ...);
6 void tvsprintf(char *buffer, const char *szFormat, va_list ap);
7
8 typedef struct {
9     const char *szKey;
10     const char *szValue;
11 } ASM_MAPPING;
12
13 typedef struct _ASM_MAPPINGS ASM_MAPPINGS;
14
15 /* PENDING: could include the peephole rules here as well.
16 */
17 struct _ASM_MAPPINGS {
18     const ASM_MAPPINGS *pParent;
19     const ASM_MAPPING *pMappings;
20 };
21
22 /* The default asxxxx token mapping.
23  */
24 extern const ASM_MAPPINGS asm_asxxxx_mapping;
25
26 /** Last entry has szKey = NULL.
27  */
28 void asm_addTree(const ASM_MAPPINGS *pMappings);
29
30 char * FileBaseName(char * fileFullName);
31
32 #endif