[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compiling 0115 snapshot on windows.
From: |
Axel Kittenberger |
Subject: |
compiling 0115 snapshot on windows. |
Date: |
Tue, 16 Jan 2001 14:42:34 +0100 (MET) |
okay people i just compiled the snapshot on windows with MSVC (yuck :o)
cygwin configure didn't work out since it said 'install-sh' is missing...
--------------------------------------------------------------------
diff -r -a -u bisonorg/lib/quote.c bisondiff/lib/quote.c
--- bisonorg/lib/quote.c Mon Oct 16 18:28:40 2000
+++ bisondiff/lib/quote.c Tue Jan 16 12:36:19 2001
@@ -5,6 +5,7 @@
#endif
#include <sys/types.h>
+#include <stdio.h>
#include <quotearg.h>
#include <quote.h>
diff -r -a -u bisonorg/lib/quotearg.c bisondiff/lib/quotearg.c
--- bisonorg/lib/quotearg.c Mon Oct 16 18:28:40 2000
+++ bisondiff/lib/quotearg.c Tue Jan 16 12:36:08 2001
@@ -22,6 +22,7 @@
#endif
#include <sys/types.h>
+#include <stdio.h>
#include <quotearg.h>
#include <xalloc.h>
diff -r -a -u bisonorg/lib/xmalloc.c bisondiff/lib/xmalloc.c
--- bisonorg/lib/xmalloc.c Mon Oct 2 09:48:32 2000
+++ bisondiff/lib/xmalloc.c Tue Jan 16 12:36:55 2001
@@ -47,11 +47,11 @@
#endif
#ifndef HAVE_DONE_WORKING_MALLOC_CHECK
-you must run the autoconf test for a properly working malloc -- see
malloc.m4
+#error you must run the autoconf test for a properly working malloc --
see malloc.m4
#endif
#ifndef HAVE_DONE_WORKING_REALLOC_CHECK
-you must run the autoconf test for a properly working realloc -- see
realloc.m4
+#error you must run the autoconf test for a properly working realloc --
see realloc.m4
#endif
/* Exit value when the requested amount of memory is not available.
--------------------------------------------------------------------
The one and only real stuff fixed is that it needed stdio.h in quote.c and
quotearg.c to know from type_t.
the #error is just a suggestion ...
as configure didn't turn out, i made my config.h by hand maybe it's of
interest:
------------------------------------------------------------------
#define VERSION "SNAPSHOT"
#define VERSION_STRING "GNU Bison version " VERSION
#define inline
#define HAVE_STRING_H 1
#define STDC_HEADERS 1
#define HAVE_WCHAR_H 1
/* coward msvc doesn't know this functions...
#define stpcpy(dst, src) (strcpy(dst, src) + strlen(src))
#define strndup(src, maxsize) (strncpy(calloc(((strlen(src) < maxsize) ?
strlen(src) : maxsize) + 1, 1), \
src,
\
((strlen(src) < maxsize) ?
strlen(src) : maxsize) \
))
#define HAVE_DONE_WORKING_MALLOC_CHECK
#define HAVE_DONE_WORKING_REALLOC_CHECK
------------------------------------------------------------------
--
Sent through GMX FreeMail - http://www.gmx.net
- compiling 0115 snapshot on windows.,
Axel Kittenberger <=