From 2701b4b563de0a063f4d979f5cd2f2dff04acfa0 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Wed, 4 Nov 1998 23:07:23 +0000 Subject: [PATCH] config.h.win32 (new file) glibconfig.h.win32 glib.def applied * config.h.win32 (new file) * glibconfig.h.win32 * glib.def * makefile.msc: applied glib-tml-981104, win32 sync -Yosh --- ChangeLog | 9 ++- ChangeLog.pre-2-0 | 9 ++- ChangeLog.pre-2-10 | 9 ++- ChangeLog.pre-2-12 | 9 ++- ChangeLog.pre-2-2 | 9 ++- ChangeLog.pre-2-4 | 9 ++- ChangeLog.pre-2-6 | 9 ++- ChangeLog.pre-2-8 | 9 ++- config.h.win32 | 130 ++++++++++++++++++++++++++++++++++++++ glib.def | 6 ++ glib/glib.def | 6 ++ glibconfig.h.win32 | 178 ++++++++++++++++++++++------------------------------- makefile.msc | 10 ++- 13 files changed, 288 insertions(+), 114 deletions(-) create mode 100644 config.h.win32 diff --git a/ChangeLog b/ChangeLog index 62c715b..261fbb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,14 @@ +Wed Nov 4 15:06:44 PST 1998 Manish Singh + + * config.h.win32 (new file) + * glibconfig.h.win32 + * glib.def + * makefile.msc: applied glib-tml-981104, win32 sync + 1998-11-03 Sebastian Wilhelmi * glib.h: - * garray.h: + * garray.c: (g_array_remove_index): new function for removing an entry from an array while preserving the order (g_array_remove_index_fast): new function for removing an entry diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 62c715b..261fbb2 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,7 +1,14 @@ +Wed Nov 4 15:06:44 PST 1998 Manish Singh + + * config.h.win32 (new file) + * glibconfig.h.win32 + * glib.def + * makefile.msc: applied glib-tml-981104, win32 sync + 1998-11-03 Sebastian Wilhelmi * glib.h: - * garray.h: + * garray.c: (g_array_remove_index): new function for removing an entry from an array while preserving the order (g_array_remove_index_fast): new function for removing an entry diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 62c715b..261fbb2 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,7 +1,14 @@ +Wed Nov 4 15:06:44 PST 1998 Manish Singh + + * config.h.win32 (new file) + * glibconfig.h.win32 + * glib.def + * makefile.msc: applied glib-tml-981104, win32 sync + 1998-11-03 Sebastian Wilhelmi * glib.h: - * garray.h: + * garray.c: (g_array_remove_index): new function for removing an entry from an array while preserving the order (g_array_remove_index_fast): new function for removing an entry diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 62c715b..261fbb2 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,7 +1,14 @@ +Wed Nov 4 15:06:44 PST 1998 Manish Singh + + * config.h.win32 (new file) + * glibconfig.h.win32 + * glib.def + * makefile.msc: applied glib-tml-981104, win32 sync + 1998-11-03 Sebastian Wilhelmi * glib.h: - * garray.h: + * garray.c: (g_array_remove_index): new function for removing an entry from an array while preserving the order (g_array_remove_index_fast): new function for removing an entry diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 62c715b..261fbb2 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,7 +1,14 @@ +Wed Nov 4 15:06:44 PST 1998 Manish Singh + + * config.h.win32 (new file) + * glibconfig.h.win32 + * glib.def + * makefile.msc: applied glib-tml-981104, win32 sync + 1998-11-03 Sebastian Wilhelmi * glib.h: - * garray.h: + * garray.c: (g_array_remove_index): new function for removing an entry from an array while preserving the order (g_array_remove_index_fast): new function for removing an entry diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 62c715b..261fbb2 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,7 +1,14 @@ +Wed Nov 4 15:06:44 PST 1998 Manish Singh + + * config.h.win32 (new file) + * glibconfig.h.win32 + * glib.def + * makefile.msc: applied glib-tml-981104, win32 sync + 1998-11-03 Sebastian Wilhelmi * glib.h: - * garray.h: + * garray.c: (g_array_remove_index): new function for removing an entry from an array while preserving the order (g_array_remove_index_fast): new function for removing an entry diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 62c715b..261fbb2 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,7 +1,14 @@ +Wed Nov 4 15:06:44 PST 1998 Manish Singh + + * config.h.win32 (new file) + * glibconfig.h.win32 + * glib.def + * makefile.msc: applied glib-tml-981104, win32 sync + 1998-11-03 Sebastian Wilhelmi * glib.h: - * garray.h: + * garray.c: (g_array_remove_index): new function for removing an entry from an array while preserving the order (g_array_remove_index_fast): new function for removing an entry diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 62c715b..261fbb2 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,7 +1,14 @@ +Wed Nov 4 15:06:44 PST 1998 Manish Singh + + * config.h.win32 (new file) + * glibconfig.h.win32 + * glib.def + * makefile.msc: applied glib-tml-981104, win32 sync + 1998-11-03 Sebastian Wilhelmi * glib.h: - * garray.h: + * garray.c: (g_array_remove_index): new function for removing an entry from an array while preserving the order (g_array_remove_index_fast): new function for removing an entry diff --git a/config.h.win32 b/config.h.win32 new file mode 100644 index 0000000..159a2d1 --- /dev/null +++ b/config.h.win32 @@ -0,0 +1,130 @@ +/* config.h.win32. Handcrafted for Microsoft C */ + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define if you don't have vprintf but do have _doprnt. */ +/* #undef HAVE_DOPRNT */ + +/* Define if you have . */ +/* #undef HAVE_UNISTD_H */ + +/* Define if you have the vprintf function. */ +#define HAVE_VPRINTF 1 + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if your processor stores words with the most significant + byte first (like Motorola and SPARC, unlike Intel and VAX). */ +/* #undef WORDS_BIGENDIAN */ + +/* #undef ENABLE_MEM_CHECK */ +/* #undef ENABLE_MEM_PROFILE */ + +#define G_COMPILED_WITH_DEBUGGING "minimum" +/* #undef HAVE_BROKEN_WCTYPE */ +/* #undef HAVE_DOPRNT */ +#define HAVE_FLOAT_H 1 +#define HAVE_LIMITS_H 1 +/* #undef HAVE_LONG_DOUBLE */ +/* #undef HAVE_PWD_H */ +/* #undef HAVE_SYS_PARAM_H */ +/* #undef HAVE_SYS_SELECT_H */ +/* #undef HAVE_SYS_TIME_H */ +/* #undef HAVE_SYS_TIMES_H */ +#define HAVE_STRERROR 1 +/* #undef HAVE_STRSIGNAL */ +/* #undef HAVE_UNISTD_H */ +/* #undef HAVE_VSNPRINTF */ +/* #undef HAVE_VALUES_H */ +#define HAVE_VPRINTF 1 +#define HAVE_WCHAR_H 1 +#define HAVE_WCTYPE_H 1 + +/* #undef NO_FD_SET */ +/* #undef NO_SYS_ERRLIST */ +#define NO_SYS_SIGLIST 1 + +/* #undef G_VA_COPY */ +/* #undef G_VA_COPY_AS_ARRAY */ +#define G_HAVE___INLINE 1 + +#define GLIB_MAJOR_VERSION 1 +#define GLIB_MINOR_VERSION 1 +#define GLIB_MICRO_VERSION 4 +#define GLIB_INTERFACE_AGE 0 +#define GLIB_BINARY_AGE 0 + +/* The number of bytes in a char. */ +#define SIZEOF_CHAR 1 + +/* The number of bytes in a int. */ +#define SIZEOF_INT 4 + +/* The number of bytes in a long. */ +#define SIZEOF_LONG 4 + +/* The number of bytes in a long long. */ +#define SIZEOF_LONG_LONG 8 + +/* The number of bytes in a short. */ +#define SIZEOF_SHORT 2 + +/* The number of bytes in a void *. */ +#define SIZEOF_VOID_P 4 + +/* Define if you have the atexit function. */ +#define HAVE_ATEXIT 1 + +/* Define if you have the lstat function. */ +/* #undef HAVE_LSTAT */ + +/* Define if you have the memmove function. */ +#define HAVE_MEMMOVE 1 + +/* Define if you have the on_exit function. */ +/* #undef HAVE_ON_EXIT */ + +/* Define if you have the strcasecmp function. */ +/* #undef HAVE_STRCASECMP ^*/ + +/* Define if you have the strerror function. */ +#define HAVE_STRERROR 1 + +/* Define if you have the strsignal function. */ +/* #undef HAVE_STRSIGNAL */ + +/* Define if you have the vsnprintf function. */ +/* #undef HAVE_VSNPRINTF */ + +/* Define if you have the header file. */ +#define HAVE_FLOAT_H 1 + +/* Define if you have the header file. */ +#define HAVE_LIMITS_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_PWD_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_PARAM_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_SELECT_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_TIME_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_SYS_TIMES_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_UNISTD_H */ + +/* Define if you have the header file. */ +/* #undef HAVE_VALUES_H */ + +/* Define if you have the w library (-lw). */ +/* #undef HAVE_LIBW */ + diff --git a/glib.def b/glib.def index ba9f12c..e3cb814 100644 --- a/glib.def +++ b/glib.def @@ -3,6 +3,8 @@ EXPORTS g_array_free g_array_new g_array_prepend_vals + g_array_remove_index + g_array_remove_index_fast g_array_set_size g_atexit g_basename @@ -14,6 +16,8 @@ EXPORTS g_byte_array_free g_byte_array_new g_byte_array_prepend + g_byte_array_remove_index + g_byte_array_remove_index_fast g_byte_array_set_size g_cache_destroy g_cache_insert @@ -168,7 +172,9 @@ EXPORTS g_ptr_array_free g_ptr_array_new g_ptr_array_remove + g_ptr_array_remove_fast g_ptr_array_remove_index + g_ptr_array_remove_index_fast g_ptr_array_set_size g_quark_from_static_string g_quark_from_string diff --git a/glib/glib.def b/glib/glib.def index ba9f12c..e3cb814 100644 --- a/glib/glib.def +++ b/glib/glib.def @@ -3,6 +3,8 @@ EXPORTS g_array_free g_array_new g_array_prepend_vals + g_array_remove_index + g_array_remove_index_fast g_array_set_size g_atexit g_basename @@ -14,6 +16,8 @@ EXPORTS g_byte_array_free g_byte_array_new g_byte_array_prepend + g_byte_array_remove_index + g_byte_array_remove_index_fast g_byte_array_set_size g_cache_destroy g_cache_insert @@ -168,7 +172,9 @@ EXPORTS g_ptr_array_free g_ptr_array_new g_ptr_array_remove + g_ptr_array_remove_fast g_ptr_array_remove_index + g_ptr_array_remove_index_fast g_ptr_array_set_size g_quark_from_static_string g_quark_from_string diff --git a/glibconfig.h.win32 b/glibconfig.h.win32 index 11035a2..a4a57ad 100644 --- a/glibconfig.h.win32 +++ b/glibconfig.h.win32 @@ -1,123 +1,93 @@ -/* glibconfig.h.win32. Handcrafted for Microsoft C */ - -#if !(defined(_MSC_VER) || defined(__LCC__)) -#error Unrecognized Win32 compiler, edit glibconfig.h by hand -#endif - -/* Define to empty if the keyword does not work. */ -/* #undef const */ - -/* Define if you don't have vprintf but do have _doprnt. */ -/* #undef HAVE_DOPRNT */ - -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF 1 - -/* Define as __inline if that's what the C compiler calls it. */ -#if defined (_MSC_VER) -#define G_HAVE___INLINE -#endif - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX). */ -/* #undef WORDS_BIGENDIAN */ - -/* #undef ENABLE_MEM_CHECK */ -/* #undef ENABLE_MEM_PROFILE */ - -/* #undef G_COMPILED_WITH_DEBUGGING */ -/* #undef HAVE_BROKEN_WCTYPE */ -/* #undef HAVE_DOPRNT */ -/* #undef HAVE_LONG_DOUBLE */ -/* #undef HAVE_PWD_H */ -/* #undef HAVE_SYS_PARAM_H */ -/* #undef HAVE_SYS_SELECT_H */ -/* #undef HAVE_SYS_TIME_H */ -/* #undef HAVE_SYS_TIMES_H */ -/* #undef HAVE_UNISTD_H */ -/* #undef HAVE_VSNPRINTF */ -#define HAVE_VPRINTF 1 -#ifdef _MSC_VER -#define HAVE_WCHAR_H 1 -#define HAVE_WCTYPE_H 1 -#else -#undef HAVE_WCHAR_H -#undef HAVE_WCTYPE_H -#endif - -/* #undef NO_FD_SET */ -/* #undef NO_SYS_ERRLIST */ -#define NO_SYS_SIGLIST 1 +/* glibconfig.h.win32 */ +/* Handcrafted for Microsoft C. */ + +#ifndef GLIBCONFIG_H +#define GLIBCONFIG_H + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#include +#include + +#define G_MINFLOAT FLT_MIN +#define G_MAXFLOAT FLT_MAX +#define G_MINDOUBLE DBL_MIN +#define G_MAXDOUBLE DBL_MAX +#define G_MINSHORT SHRT_MIN +#define G_MAXSHORT SHRT_MAX +#define G_MININT INT_MIN +#define G_MAXINT INT_MAX +#define G_MINLONG LONG_MIN +#define G_MAXLONG LONG_MAX + +typedef signed char gint8; +typedef unsigned char guint8; +typedef signed short gint16; +typedef unsigned short guint16; +typedef signed int gint32; +typedef unsigned int guint32; +#define G_HAVE_GINT64 1 +typedef __int64 gint64; +typedef unsigned __int64 guint64; + +#define GPOINTER_TO_INT(p) ((gint)(p)) +#define GPOINTER_TO_UINT(p) ((guint)(p)) + +#define GINT_TO_POINTER(i) ((gpointer)(i)) +#define GUINT_TO_POINTER(u) ((gpointer)(u)) + +#define g_ATEXIT(proc) (atexit (proc)) + +#define g_memmove(d,s,n) G_STMT_START { memmove ((d), (s), (n)); } G_STMT_END #define GLIB_MAJOR_VERSION 1 #define GLIB_MINOR_VERSION 1 #define GLIB_MICRO_VERSION 4 -#define GLIB_INTERFACE_AGE 0 -#define GLIB_BINARY_AGE 0 -/* The number of bytes in a char. */ -#define SIZEOF_CHAR 1 +#define G_COMPILED_WITH_DEBUGGING "minimum" -/* The number of bytes in a int. */ -#define SIZEOF_INT 4 +#define G_HAVE___INLINE 1 -/* The number of bytes in a long. */ -#define SIZEOF_LONG 4 +#define G_BYTE_ORDER G_LITTLE_ENDIAN -/* The number of bytes in a long long. */ -/* #undef SIZEOF_LONG_LONG */ +#define GINT16_TO_LE(val) ((gint16) (val)) +#define GUINT16_TO_LE(val) ((guint16) (val)) +#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) +#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) -/* The number of bytes in a short. */ -#define SIZEOF_SHORT 2 +#define GINT32_TO_LE(val) ((gint32) (val)) +#define GUINT32_TO_LE(val) ((guint32) (val)) +#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val)) +#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val)) -/* The number of bytes in a void *. */ -#define SIZEOF_VOID_P 4 +#define GINT64_TO_LE(val) ((gint64) (val)) +#define GUINT64_TO_LE(val) ((guint64) (val)) +#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val)) +#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val)) -/* Define if you have the atexit function. */ -#define HAVE_ATEXIT 1 +#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val)) +#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val)) +#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val)) +#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val)) -/* Define if you have the lstat function. */ -/* #undef HAVE_LSTAT */ +#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val)) +#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val)) +#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val)) +#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val)) -/* Define if you have the memmove function. */ -#define HAVE_MEMMOVE 1 - -/* Define if you have the on_exit function. */ -/* #undef HAVE_ON_EXIT */ - -/* Define if you have the strcasecmp function. */ -/* #undef HAVE_STRCASECMP */ - -/* Define if you have the strerror function. */ -#define HAVE_STRERROR 1 - -/* Define if you have the strsignal function. */ -/* #undef HAVE_STRSIGNAL */ - -/* Define if you have the vsnprintf function. */ -/* #undef HAVE_VSNPRINTF */ - -/* Define if you have the getpid function. */ -/* #undef HAVE_GETPID */ - -/* Define if you have the header file. */ -#ifdef _MSC_VER -#define HAVE_FLOAT_H 1 -#else -/* #undef HAVE_FLOAT_H */ -#endif - -/* Define if you have the header file. */ -#define HAVE_LIMITS_H 1 - -/* Define if you have the header file. */ -/* #undef HAVE_VALUES_H */ +#define G_HAVE_WCHAR_H 1 +#define G_HAVE_WCTYPE_H 1 /* Define if this is Win32, possibly using the GNU-Win32 emulation layer. */ #define WIN32 1 /* Define if this is Win32 without GNU-Win32. */ #define NATIVE_WIN32 1 + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* GLIBCONFIG_H */ diff --git a/makefile.msc b/makefile.msc index 5f578a3..8d45a7a 100644 --- a/makefile.msc +++ b/makefile.msc @@ -17,6 +17,7 @@ CFLAGS = -I. all : \ glibconfig.h \ + config.h \ glib-$(GLIB_VER).dll \ gmodule\gmoduleconf.h \ gmodule-$(GLIB_VER).dll \ @@ -26,7 +27,6 @@ all : \ install : all $(INSTALL) glib-$(GLIB_VER).dll $(BIN) $(INSTALL) gmodule-$(GLIB_VER).dll $(BIN) - $(TOUCH) install glib_OBJECTS = \ garray.obj \ @@ -56,8 +56,11 @@ glib-$(GLIB_VER).dll : $(glib_OBJECTS) glibconfig.h: glibconfig.h.win32 copy glibconfig.h.win32 glibconfig.h +config.h: config.h.win32 + copy config.h.win32 config.h + .c.obj : - $(CC) $(CFLAGS) -GD -c -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib $< + $(CC) $(CFLAGS) -GD -c -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib $< gmodule_OBJECTS = \ gmodule.obj @@ -96,6 +99,9 @@ libgplugin_b.obj : gmodule\libgplugin_b.c $(CC) $(CFLAGS) -Igmodule -c gmodule\libgplugin_b.c clean: + del config.h + del glibconfig.h + del gmodule\gmoduleconf.h del *.exe del *.obj del *.dll -- 2.7.4