gbdk-releases/sdcc/src/asm.h
2015-01-10 16:25:09 +01:00

37 lines
785 B
C

#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);
typedef struct
{
const char *szKey;
const char *szValue;
}
ASM_MAPPING;
typedef struct _ASM_MAPPINGS ASM_MAPPINGS;
/* PENDING: could include the peephole rules here as well.
*/
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;
/** Last entry has szKey = NULL.
*/
void asm_addTree (const ASM_MAPPINGS * pMappings);
char *FileBaseName (char *fileFullName);
#endif