Added support to generate aomf51 file. (Basic Intel support, no Keil
[fw/sdcc] / as / mcs51 / aslink.h
index 9ce5dc4c6f4984c3ba1402dc7bff8f9149c438d3..6d8500e0a745e779571052871187fd63b73b65ed 100644 (file)
 #endif
 
 /*
- * PATH_AMX
+ * PATH_MAX
  */
 #include <limits.h>
 #ifndef PATH_MAX               /* POSIX, but not required   */
-#define PATH_MAX 255           /* define a reasonable value */
+ #if defined(__BORLANDC__) || defined(_MSC_VER)
+  #include <stdlib.h>
+  #define PATH_MAX     _MAX_PATH
+ #else
+  #define PATH_MAX     255     /* define a reasonable value */
+ #endif
 #endif
 
 /*
@@ -449,7 +454,7 @@ extern      char    *rp;            /*      pointer into the LST file
 extern char    rb[NINPUT];     /*      LST file text line being
                                 *      address relocated
                                 */
-extern char    ctype[];        /*      array of character types, one per
+extern unsigned char   ctype[];        /*      array of character types, one per
                                 *      ASCII character
                                 */
 
@@ -749,9 +754,13 @@ extern char                *StoreString( char *str );
 /* lknoice.c */
 extern void             DefineNoICE( char *name, Addr_T value, int page );
 
-/* JCF: lksmry.c */
+/* JCF: lkmem.c */
 extern int summary(struct area * xp);
 
+/* JCF: lkaomf51.c */
+extern void SaveLinkedFilePath(char * filepath);
+extern void CreateAOMF51(void);
+
 /* SD added this to change
        strcmpi --> strcmp (strcmpi NOT ANSI) */
 #define strcmpi strcmp