replace FILENAME_MAX with PATH_MAX
[fw/sdcc] / as / mcs51 / asdata.c
index 140bcf4976baf2c79ae02260bd42bf17b849c4b3..07c065ce0f765c89c5b4deed983cb7bd4352a9fa 100644 (file)
@@ -17,9 +17,6 @@
 #include <stdio.h>
 #include <setjmp.h>
 #include <string.h>
-#if !defined(_MSC_VER)
-#include <alloc.h>
-#endif
 #include "asm.h"
 
 /*)Module      asdata.c
@@ -54,13 +51,13 @@ int iflvl[MAXIF+1]; /*      array of IF-ELSE-ENDIF flevel
                         *      values indexed by tlevel
                         */
 
-char   afn[FILSPC];            /*      afile temporary file name
+char   afn[PATH_MAX];          /*      afile temporary file name
                                 */
-char   srcfn[MAXFIL][FILSPC];  /*      array of source file names
+char   srcfn[MAXFIL][PATH_MAX];        /*      array of source file names
                                 */
 int    srcline[MAXFIL];        /*      source line number
                                 */
-char   incfn[MAXINC][FILSPC];  /*      array of include file names
+char   incfn[MAXINC][PATH_MAX];        /*      array of include file names
                                 */
 int    incline[MAXINC];        /*      include line number
                                 */
@@ -98,10 +95,10 @@ int xflag;          /*      -x, listing radix flag
                         */
 int    fflag;          /*      -f(f), relocations flagged flag
                         */
-addr_t laddr;          /*      address of current assembler line
+Addr_T laddr;          /*      address of current assembler line
                         *      or value of .if argument
                         */
-addr_t fuzz;           /*      tracks pass to pass changes in the
+Addr_T fuzz;           /*      tracks pass to pass changes in the
                         *      address of symbols caused by
                         *      variable length instruction formats
                         */
@@ -161,7 +158,7 @@ char        module[NCPS];   /*      module name string
  *             char    m_id[NCPS];     Mnemonic
  *             char    m_type;         Mnemonic subtype
  *             char    m_flag;         Mnemonic flags
- *             addr_t  m_valu;         Value
+ *             Addr_T  m_valu;         Value
  *     };
  */
 struct mne     *mnehash[NHASH];
@@ -188,7 +185,7 @@ struct      mne     *mnehash[NHASH];
  *             char    s_flag;         Symbol flags
  *             struct  area *s_area;   Area line, 0 if absolute
  *             int     s_ref;          Ref. number
- *             addr_t  s_addr;         Address
+ *             Addr_T  s_addr;         Address
  *     };
  */
 struct sym     sym[] = {
@@ -220,8 +217,8 @@ struct      sym *symhash[NHASH];    /*      array of pointers to NHASH
  *             struct  area *a_ap;     Area link
  *             char    a_id[NCPS];     Area Name
  *             int     a_ref;          Reference number
- *             addr_t  a_size;         Area size
- *             addr_t  a_fuzz;         Area fuzz
+ *             Addr_T  a_size;         Area size
+ *             Addr_T  a_fuzz;         Area fuzz
  *             int     a_flag;         Area flags
  *     };
  */