Buffer overflow hunt: removing strcpy, strcat, sprintf
[fw/sdcc] / src / asm.h
index 7a0431d4ee6635fee1de46f1a7fc366877f2d0a5..23263cb90e8264bf80807e4e577c165737f8d668 100644 (file)
--- a/src/asm.h
+++ b/src/asm.h
@@ -1,9 +1,9 @@
 #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
   {
@@ -25,6 +25,9 @@ struct _ASM_MAPPINGS
 /* 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.
  */
@@ -32,4 +35,6 @@ void asm_addTree (const ASM_MAPPINGS * pMappings);
 
 char *FileBaseName (char *fileFullName);
 
+char *printILine (iCode *ic);
+char *printCLine (char *srcFile, int lineno);
 #endif