first pass at including c-code as asm comments
[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   {
10     const char *szKey;
11     const char *szValue;
12   }
13 ASM_MAPPING;
14
15 typedef struct _ASM_MAPPINGS ASM_MAPPINGS;
16
17 /* PENDING: could include the peephole rules here as well.
18  */
19 struct _ASM_MAPPINGS
20   {
21     const ASM_MAPPINGS *pParent;
22     const ASM_MAPPING *pMappings;
23   };
24
25 /* The default asxxxx token mapping.
26  */
27 extern const ASM_MAPPINGS asm_asxxxx_mapping;
28 extern const ASM_MAPPINGS asm_gas_mapping;
29 extern const ASM_MAPPINGS asm_a390_mapping;
30
31 /** Last entry has szKey = NULL.
32  */
33 void asm_addTree (const ASM_MAPPINGS * pMappings);
34
35 char *FileBaseName (char *fileFullName);
36
37 char *printCLine (char *srcFile, int lineno);
38 #endif