#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;
int noRegParams; /* Disable passing some parameters in registers */
int verbose; /* Show what the compiler is doing */
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 */
*/
FILE *tempfile (void);
-/** Creates a duplicate of the string 'sz' a'la strdup but using
- libgc.
+/** Creates a temporary file name a'la tmpnam which avoids the bugs
+ in cygwin wrt c:\tmp.
+ Scans, in order: TMP, TEMP, TMPDIR, else uses tmpfile().
*/
-char *gc_strdup (const char *sz);
+char *
+tempfilename (void);
/** An assert() macro that will go out through sdcc's error
system.
/* 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