bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tim-6] MAXTABLE and suffix comment


From: Tim Van Holder
Subject: [tim-6] MAXTABLE and suffix comment
Date: Sun, 6 Jan 2002 18:59:10 +0100

Doubles MAXTABLE (and align the define) to allow for screwy grammars.
Also adds a FIXME about suffixes on DJGPP; IMO, bison should only
settle for the DOS extensions (_tab, .sth) if the standard ones can't
be used.  For DJGPP, this amounts to a run-time decision.

2002-01-06  Tim Van Holder  <address@hidden>

        * src/system.h: Double MAXTABLE; some (rare) grammars require
        it.  Add a FIXME for the DOS extensions; their use should not
        be hardwired for DJGPP.

Index: src/system.h
===================================================================
RCS file: /cvsroot/bison/bison/src/system.h,v
retrieving revision 1.34
diff -u -r1.34 system.h
--- src/system.h        30 Dec 2001 21:06:22 -0000      1.34
+++ src/system.h        6 Jan 2002 16:08:32 -0000
@@ -230,10 +230,10 @@
 
 #if defined (MSDOS) && !defined (__GO32__)
 # define       BITS_PER_WORD   16
-# define MAXTABLE      16383
+# define       MAXTABLE        16383
 #else
 # define       BITS_PER_WORD   32
-# define MAXTABLE      32767
+# define       MAXTABLE        65535
 #endif
 
 #define        WORDSIZE(n)     (((n) + BITS_PER_WORD - 1) /
BITS_PER_WORD)
@@ -253,6 +253,10 @@
 #else /* ! VMS */
 # ifdef MSDOS
    /* MS DOS. */
+   /* FIXME: For DJGPP, shouldn't we choose between DOS and standard
extensions at
+      runtime, depending on whether or not LFN support is available?
That would
+      prevent problems in many Makefiles (including bison's) that
expect y.tab.c
+      instead of y_tab.c. */
 #  define EXT_TAB      "_tab"
 #  define EXT_OUTPUT   ".out"
 #  define EXT_STYPE_H  ".sth"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]