removed gcc warning: 'c' may be used uninitialized in this function
[fw/sdcc] / src / asm.h
1 #ifndef ASM_PORT_INCLUDE
2 #define ASM_PORT_INCLUDE
3
4 #include "dbuf.h"
5
6 void tfprintf (FILE * fp, const char *szFormat, ...);
7 void tsprintf (char *buffer, size_t len, const char *szFormat, ...);
8 void dbuf_tprintf (struct dbuf_s *dbuf, const char *szFormat, ...);
9 void dbuf_tvprintf (struct dbuf_s *dbuf, const char *szFormat, va_list ap);
10
11 typedef struct
12   {
13     const char *szKey;
14     const char *szValue;
15   }
16 ASM_MAPPING;
17
18 typedef struct _ASM_MAPPINGS ASM_MAPPINGS;
19
20 /* PENDING: could include the peephole rules here as well.
21  */
22 struct _ASM_MAPPINGS
23   {
24     const ASM_MAPPINGS *pParent;
25     const ASM_MAPPING *pMappings;
26   };
27
28 /* The default asxxxx token mapping.
29  */
30 extern const ASM_MAPPINGS asm_asxxxx_mapping;
31 extern const ASM_MAPPINGS asm_gas_mapping;
32 extern const ASM_MAPPINGS asm_a390_mapping;
33 extern const ASM_MAPPINGS asm_xa_asm_mapping;
34
35 /** Last entry has szKey = NULL.
36  */
37 void asm_addTree (const ASM_MAPPINGS * pMappings);
38
39 char *FileBaseName (char *fileFullName);
40
41 char *printILine (iCode *ic);
42 char *printCLine (char *srcFile, int lineno);
43 #endif