]> granicus.if.org Git - re2c/commitdiff
- Provide config_w32.h to be able to build out of the box on windows
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Thu, 29 Dec 2005 14:32:10 +0000 (14:32 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Thu, 29 Dec 2005 14:32:10 +0000 (14:32 +0000)
basics.h
bootstrap/parser.cc
config_w32.h [new file with mode: 0644]
main.cc
re2c.vcproj

index 2e1862778d8f1dfc8eea912c6340474a2275edbf..f160ce2472d9e13532cc4cd24909f11efd038676 100644 (file)
--- a/basics.h
+++ b/basics.h
@@ -4,6 +4,8 @@
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
+#elif defined(_WIN32)
+#include "config_w32.h"
 #endif
 
 namespace re2c
index b94a4f2cb1fe8a8abc205e27e7e781e09dd3c17c..e32fd6b09029bfbf3f696b69631d738b41939008 100644 (file)
@@ -83,6 +83,8 @@
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
+#elif defined(_WIN32)
+#include "config_w32.h"
 #endif
 
 #include <time.h>
diff --git a/config_w32.h b/config_w32.h
new file mode 100644 (file)
index 0000000..7c9e231
--- /dev/null
@@ -0,0 +1,109 @@
+/* config.h.  Generated by configure.  */
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
+   to 0 otherwise. */
+#define HAVE_MALLOC 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `memset' function. */
+#define HAVE_MEMSET 1
+
+/* Define to 1 if you have a working `mmap' system call. */
+/* #undef HAVE_MMAP */
+
+/* Define to 1 if you have the `munmap' function. */
+#define HAVE_MUNMAP 1
+
+/* Define to 1 if stdbool.h conforms to C99. */
+#define HAVE_STDBOOL_H 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if the system has the type `_Bool'. */
+#define HAVE__BOOL 1
+
+/* Name of package */
+#define PACKAGE "re2c"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "re2c-general@lists.sourceforge.net"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "re2c"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "re2c 0.9.13.dev"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "re2c"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "0.9.13.dev"
+
+/* The size of a `char', as computed by sizeof. */
+#define SIZEOF_CHAR 1
+
+/* The size of a `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of a `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
+
+/* The size of a `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#define VERSION "0.9.13.dev"
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
+
+/* Define to rpl_malloc if the replacement function should be used. */
+/* #undef malloc */
+
+/* Define to `unsigned' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+/* Define to empty if the keyword `volatile' does not work. Warning: valid
+   code using `volatile' can become incorrect without. Disable with care. */
+/* #undef volatile */
diff --git a/main.cc b/main.cc
index 3056f036fca1d39f8ec0abc6d226a6a4a99e2865..003ee03cb74f31322c994e868dc52df2b79cf78b 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -1,6 +1,8 @@
 /* $Id$ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
+#elif defined(_WIN32)
+#include "config_w32.h"
 #endif
 
 #include <fstream>
index d1576f59c5bf3bc69de97f96a37084d49cea8012..a8edba6c77aef016f31077de1bc2f6156c653305 100755 (executable)
@@ -20,7 +20,6 @@
                                Optimization="0"
                                FavorSizeOrSpeed="1"
                                OptimizeForProcessor="1"
-                               PreprocessorDefinitions="HAVE_CONFIG_H"
                                DisableLanguageExtensions="FALSE"
                                BrowseInformation="1"
                                DebugInformationFormat="3"/>
@@ -60,7 +59,6 @@
                                EnableFiberSafeOptimizations="TRUE"
                                OptimizeForProcessor="1"
                                AdditionalIncludeDirectories=""
-                               PreprocessorDefinitions="HAVE_CONFIG_H"
                                SmallerTypeCheck="FALSE"
                                BufferSecurityCheck="FALSE"
                                DisableLanguageExtensions="FALSE"
                                RelativePath="basics.h">
                        </File>
                        <File
-                               RelativePath="config.h">
+                               RelativePath="config_w32.h">
                        </File>
                        <File
                                RelativePath="dfa.h">