fixed bug # 470722
[fw/sdcc] / src / SDCCglobl.h
index c9061a9c4f636e375f255bd6bd99296a0fff8d7c..3df24562d11f28a698b5d10da1d19ff45401c298 100644 (file)
 #define SPACE ' '
 #define ZERO  0
 
+#include <limits.h>            /* PATH_MAX                  */
+#ifndef PATH_MAX               /* POSIX, but not required   */
+#define PATH_MAX 255           /* define a reasonable value */
+#endif
+
 #define  MAX_FNAME_LEN  128
 #define  MAX_REG_PARMS  1
 typedef int bool;
@@ -219,6 +224,8 @@ struct options
     int shortis8bits;           /* treat short like int or char */
     int lessPedantic;           /* disable some warnings */
     int profile;                /* Turn on extra profiling information */
+    int ommitFramePtr;         /* Turn off the frame pointer. */
+
     char *calleeSaves[128];    /* list of functions using callee save */
     char *excludeRegs[32];     /* registers excluded from saving */
 
@@ -281,11 +288,6 @@ FILE *tempfile (void);
 char *
 tempfilename (void);
 
-/** Creates a duplicate of the string 'sz' a'la strdup but using
-    libgc.
-*/
-char *gc_strdup (const char *sz);
-
 /** An assert() macro that will go out through sdcc's error
     system.
 */
@@ -319,6 +321,6 @@ extern struct _dumpFiles dumpFiles[];
 /* Buffer which can be used to hold a file name; assume it will
  * be trashed by any function call within SDCC.
  */
-extern char scratchFileName[FILENAME_MAX];
+extern char scratchFileName[PATH_MAX];
 
 #endif