#define UNIX_DIR_SEPARATOR_CHAR '/'
-#ifdef _WIN32 /* WIN32 native */
-
-# define NATIVE_WIN32 1
-# ifdef __MINGW32__ /* GCC MINGW32 depends on configure */
-# include "sdccconf.h"
-# else
-# include "sdcc_vc.h"
-# define PATH_MAX _MAX_PATH
-# endif
-
-#else /* Assume Un*x style system */
-# include "sdccconf.h"
+#ifdef WIN32
+# define NATIVE_WIN32 1
+# ifndef __MINGW32__
+# define PATH_MAX _MAX_PATH
+# endif
+#endif
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#elif defined(_WIN32) && !defined(__MINGW32__)
+# include "sdcc_vc.h"
+#else
+# include "sdccconf.h"
#endif
#include "SDCCerr.h"
*/
struct optimize
{
- unsigned global_cse;
- unsigned ptrArithmetic;
- unsigned label1;
- unsigned label2;
- unsigned label3;
- unsigned label4;
- unsigned loopInvariant;
- unsigned loopInduction;
- unsigned noJTabBoundary;
- unsigned noLoopReverse;
- unsigned codeSpeed;
- unsigned codeSize;
+ int global_cse;
+ int ptrArithmetic;
+ int label1;
+ int label2;
+ int label3;
+ int label4;
+ int loopInvariant;
+ int loopInduction;
+ int noJTabBoundary;
+ int noLoopReverse;
+ int codeSpeed;
+ int codeSize;
};
/** Build model.
extern set *libPathsSet;
extern set *libDirsSet; /* list of lib search directories */
-void setParseWithComma (set **, char *);
+void setParseWithComma (set **, const char *);
/** Creates a temporary file a'la tmpfile which avoids the bugs
in cygwin wrt c:\tmp.