Add braces to silence gcc -Wall.

2001-03-18  Tor Lillqvist  <tml@iki.fi>

	* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.

	* gspawn-win32-helper.c (write_no_error): Remove unused function.

	* tests/makefile.mingw.in (module-test.exe): Add rules for
	building module-test.

2001-03-18  Tor Lillqvist  <tml@iki.fi>

	* gobject.def: Correct some renamed functions.
This commit is contained in:
Tor Lillqvist 2001-03-18 19:54:01 +00:00 committed by Tor Lillqvist
parent 45fb71949a
commit 3bae8165cf
15 changed files with 99 additions and 32 deletions

View File

@ -1,3 +1,12 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
* gspawn-win32-helper.c (write_no_error): Remove unused function.
* tests/makefile.mingw.in (module-test.exe): Add rules for
building module-test.
Wed Mar 14 18:46:54 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: removed archaic gpointer derived_data; relict and

View File

@ -1,3 +1,12 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
* gspawn-win32-helper.c (write_no_error): Remove unused function.
* tests/makefile.mingw.in (module-test.exe): Add rules for
building module-test.
Wed Mar 14 18:46:54 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: removed archaic gpointer derived_data; relict and

View File

@ -1,3 +1,12 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
* gspawn-win32-helper.c (write_no_error): Remove unused function.
* tests/makefile.mingw.in (module-test.exe): Add rules for
building module-test.
Wed Mar 14 18:46:54 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: removed archaic gpointer derived_data; relict and

View File

@ -1,3 +1,12 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
* gspawn-win32-helper.c (write_no_error): Remove unused function.
* tests/makefile.mingw.in (module-test.exe): Add rules for
building module-test.
Wed Mar 14 18:46:54 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: removed archaic gpointer derived_data; relict and

View File

@ -1,3 +1,12 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
* gspawn-win32-helper.c (write_no_error): Remove unused function.
* tests/makefile.mingw.in (module-test.exe): Add rules for
building module-test.
Wed Mar 14 18:46:54 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: removed archaic gpointer derived_data; relict and

View File

@ -1,3 +1,12 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
* gspawn-win32-helper.c (write_no_error): Remove unused function.
* tests/makefile.mingw.in (module-test.exe): Add rules for
building module-test.
Wed Mar 14 18:46:54 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: removed archaic gpointer derived_data; relict and

View File

@ -1,3 +1,12 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
* gspawn-win32-helper.c (write_no_error): Remove unused function.
* tests/makefile.mingw.in (module-test.exe): Add rules for
building module-test.
Wed Mar 14 18:46:54 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: removed archaic gpointer derived_data; relict and

View File

@ -1,3 +1,12 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
* gspawn-win32-helper.c (write_no_error): Remove unused function.
* tests/makefile.mingw.in (module-test.exe): Add rules for
building module-test.
Wed Mar 14 18:46:54 2001 Tim Janik <timj@gtk.org>
* gscanner.[hc]: removed archaic gpointer derived_data; relict and

View File

@ -36,16 +36,6 @@ write_err_and_exit (gint fd,
_exit (1);
}
static void
write_no_error (gint fd)
{
gint msg = CHILD_NO_ERROR;
gint en = 0;
write (fd, &msg, sizeof(msg));
write (fd, &en, sizeof(en));
}
#ifdef __GNUC__
# ifndef _stdcall
# define _stdcall __attribute__((stdcall))

View File

@ -65,10 +65,12 @@
G_STMT_START \
{ \
if (debug == -1) \
if (getenv ("G_SPAWN_WIN32_DEBUG") != NULL) \
debug = 1; \
else \
debug = 0; \
{ \
if (getenv ("G_SPAWN_WIN32_DEBUG") != NULL) \
debug = 1; \
else \
debug = 0; \
} \
} \
G_STMT_END
#endif

View File

@ -1,3 +1,7 @@
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gobject.def: Correct some renamed functions.
Sat Mar 17 23:18:36 2001 Tim Janik <timj@gtk.org>
* gobject.c (g_object_get_property): minor bug-fix.

View File

@ -17,15 +17,15 @@ EXPORTS
g_cclosure_new_object
g_cclosure_new_object_swap
g_cclosure_new_swap
g_closure_add_fnotify
g_closure_add_inotify
g_closure_add_finalize_notifier
g_closure_add_invalidate_notifier
g_closure_add_marshal_guards
g_closure_invalidate
g_closure_invoke
g_closure_new_simple
g_closure_ref
g_closure_remove_fnotify
g_closure_remove_inotify
g_closure_remove_finalize_notifier
g_closure_remove_invalidate_notifier
g_closure_set_marshal
g_closure_set_meta_marshal
g_closure_sink

View File

@ -36,16 +36,6 @@ write_err_and_exit (gint fd,
_exit (1);
}
static void
write_no_error (gint fd)
{
gint msg = CHILD_NO_ERROR;
gint en = 0;
write (fd, &msg, sizeof(msg));
write (fd, &en, sizeof(en));
}
#ifdef __GNUC__
# ifndef _stdcall
# define _stdcall __attribute__((stdcall))

View File

@ -65,10 +65,12 @@
G_STMT_START \
{ \
if (debug == -1) \
if (getenv ("G_SPAWN_WIN32_DEBUG") != NULL) \
debug = 1; \
else \
debug = 0; \
{ \
if (getenv ("G_SPAWN_WIN32_DEBUG") != NULL) \
debug = 1; \
else \
debug = 0; \
} \
} \
G_STMT_END
#endif

View File

@ -52,6 +52,13 @@ endif
.c.exe:
$(CC) $(CFLAGS) -o $@ $< -L .. -lglib-$(GLIB_VER) -L ../gthread -lgthread-$(GLIB_VER)
module-test.exe : module-test.o module-test.def
$(CC) $(CFLAGS) -Wl,--base-file,module-test.base -o module-test.exe module-test.o -L .. -lglib-$(GLIB_VER) -L . -lgmodule-$(GLIB_VER) $(LDFLAGS)
$(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
$(CC) $(CFLAGS) -Wl,--base-file,module-test.base,module-test.exp -o module-test.exe module-test.o -L .. -lglib-$(GLIB_VER) -L . -lgmodule-$(GLIB_VER) $(LDFLAGS)
$(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
$(CC) $(CFLAGS) -Wl,module-test.exp -o module-test.exe module-test.o -L .. -lglib-$(GLIB_VER) -L . -lgmodule-$(GLIB_VER) $(LDFLAGS)
check: all
@for P in $(TESTS) ; do echo $$P; ./$$P; done
@echo All tests successful.