Lengthened the maximum filename to 256 chars
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 14 May 2001 01:26:35 +0000 (01:26 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 14 May 2001 01:26:35 +0000 (01:26 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@813 4a8a32a2-be11-0410-ad9d-d568d2c75423

as/z80/asm.h
as/z80/asmain.c

index 7d9ea7a996414ae5fb641efaf3795c8434853aea..520f52c4416e74a90c0fa5dc5d45381438c07057 100644 (file)
@@ -82,7 +82,7 @@
 #define        MAXFIL  6               /* Maximum command line input files */
 #define        MAXINC  6               /* Maximum nesting of include files */
 #define        MAXIF   10              /* Maximum nesting of if/else/endif */
-#define        FILSPC  80              /* Chars. in filespec */
+#define        FILSPC  256             /* Chars. in filespec */
 
 #define NLIST  0               /* No listing */
 #define SLIST  1               /* Source only */
index 9096bbf7f28bc794f0fd5bd339b2125428c00e19..a6463ff2059def9af8182ef47eb338bb256831a5 100644 (file)
@@ -556,12 +556,13 @@ loop:
         * symbol, assembler directive, or assembler mnemonic is
         * being processed.
         */
-       if ((ctype[c] & LETTER) == 0)
-               if (flevel) {
-                       return;
-               } else {
+       if ((ctype[c] & LETTER) == 0) {
+               if (flevel) {
+                        return;
+                } else {
                        qerr();
                }
+        }
        getid(id, c);
        c = getnb();
        /*