mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 06:32:10 +01:00
made the alloca tests follow the testglib style
* testglib.c: made the alloca tests follow the testglib style * Makefile.am: minor cleanups, mostly cosmetic -Yosh
This commit is contained in:
parent
58aaa9d32b
commit
3de4d2b781
@ -1,3 +1,9 @@
|
||||
Fri Jan 1 18:30:41 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* testglib.c: made the alloca tests follow the testglib style
|
||||
|
||||
* Makefile.am: minor cleanups, mostly cosmetic
|
||||
|
||||
Fri Jan 1 20:43:19 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h: added g_strndup_a macro
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jan 1 18:30:41 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* testglib.c: made the alloca tests follow the testglib style
|
||||
|
||||
* Makefile.am: minor cleanups, mostly cosmetic
|
||||
|
||||
Fri Jan 1 20:43:19 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h: added g_strndup_a macro
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jan 1 18:30:41 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* testglib.c: made the alloca tests follow the testglib style
|
||||
|
||||
* Makefile.am: minor cleanups, mostly cosmetic
|
||||
|
||||
Fri Jan 1 20:43:19 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h: added g_strndup_a macro
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jan 1 18:30:41 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* testglib.c: made the alloca tests follow the testglib style
|
||||
|
||||
* Makefile.am: minor cleanups, mostly cosmetic
|
||||
|
||||
Fri Jan 1 20:43:19 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h: added g_strndup_a macro
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jan 1 18:30:41 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* testglib.c: made the alloca tests follow the testglib style
|
||||
|
||||
* Makefile.am: minor cleanups, mostly cosmetic
|
||||
|
||||
Fri Jan 1 20:43:19 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h: added g_strndup_a macro
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jan 1 18:30:41 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* testglib.c: made the alloca tests follow the testglib style
|
||||
|
||||
* Makefile.am: minor cleanups, mostly cosmetic
|
||||
|
||||
Fri Jan 1 20:43:19 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h: added g_strndup_a macro
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jan 1 18:30:41 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* testglib.c: made the alloca tests follow the testglib style
|
||||
|
||||
* Makefile.am: minor cleanups, mostly cosmetic
|
||||
|
||||
Fri Jan 1 20:43:19 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h: added g_strndup_a macro
|
||||
|
@ -1,3 +1,9 @@
|
||||
Fri Jan 1 18:30:41 PST 1999 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* testglib.c: made the alloca tests follow the testglib style
|
||||
|
||||
* Makefile.am: minor cleanups, mostly cosmetic
|
||||
|
||||
Fri Jan 1 20:43:19 EST 1999 Jeff Garzik <jgarzik@pobox.com>
|
||||
|
||||
* glib.h: added g_strndup_a macro
|
||||
|
75
Makefile.am
75
Makefile.am
@ -4,7 +4,7 @@
|
||||
SUBDIRS = gmodule gthread docs
|
||||
all-recursive-am: all-am
|
||||
# alpha `automake' supports this better
|
||||
#SUBDIRS = . gmodule docs
|
||||
#SUBDIRS = . gmodule gthread docs
|
||||
|
||||
configincludedir = $(pkglibdir)/include
|
||||
|
||||
@ -15,50 +15,50 @@ glib-config: glib-config.in
|
||||
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
|
||||
|
||||
EXTRA_DIST = \
|
||||
glib.m4 \
|
||||
glib.spec \
|
||||
acglib.m4 \
|
||||
sanity_check \
|
||||
README.win32 \
|
||||
glib.def \
|
||||
makefile.lcc \
|
||||
makefile.msc \
|
||||
glib.m4 \
|
||||
glib.spec \
|
||||
acglib.m4 \
|
||||
sanity_check \
|
||||
README.win32 \
|
||||
glib.def \
|
||||
makefile.lcc \
|
||||
makefile.msc \
|
||||
glibconfig.h.win32
|
||||
|
||||
lib_LTLIBRARIES = libglib.la
|
||||
|
||||
libglib_la_SOURCES = \
|
||||
garray.c \
|
||||
gcache.c \
|
||||
gcompletion.c \
|
||||
gdataset.c \
|
||||
gdate.c \
|
||||
gerror.c \
|
||||
ghash.c \
|
||||
ghook.c \
|
||||
glist.c \
|
||||
gmain.c \
|
||||
giochannel.c \
|
||||
giounix.c \
|
||||
gmem.c \
|
||||
gmessages.c \
|
||||
gnode.c \
|
||||
gprimes.c \
|
||||
gslist.c \
|
||||
gtimer.c \
|
||||
gtree.c \
|
||||
grel.c \
|
||||
gstring.c \
|
||||
gstrfuncs.c \
|
||||
gscanner.c \
|
||||
gutils.c \
|
||||
gmutex.c
|
||||
garray.c \
|
||||
gcache.c \
|
||||
gcompletion.c \
|
||||
gdataset.c \
|
||||
gdate.c \
|
||||
gerror.c \
|
||||
ghash.c \
|
||||
ghook.c \
|
||||
giochannel.c \
|
||||
giounix.c \
|
||||
glist.c \
|
||||
gmain.c \
|
||||
gmem.c \
|
||||
gmessages.c \
|
||||
gmutex.c \
|
||||
gnode.c \
|
||||
gprimes.c \
|
||||
grel.c \
|
||||
gscanner.c \
|
||||
gslist.c \
|
||||
gstrfuncs.c \
|
||||
gstring.c \
|
||||
gtimer.c \
|
||||
gtree.c \
|
||||
gutils.c
|
||||
|
||||
include_HEADERS = \
|
||||
glib.h
|
||||
glib.h
|
||||
|
||||
configinclude_DATA = \
|
||||
glibconfig.h
|
||||
glibconfig.h
|
||||
|
||||
configure: configure.in acglib.m4
|
||||
|
||||
@ -70,7 +70,8 @@ stamp-gc-h: config.status
|
||||
echo timestamp > stamp-gc-h
|
||||
|
||||
libglib_la_LDFLAGS = \
|
||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
|
||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
||||
-release $(LT_RELEASE)
|
||||
|
||||
noinst_PROGRAMS = testglib testgdate testgdateparser
|
||||
testglib_LDADD = libglib.la
|
||||
|
@ -4,7 +4,7 @@
|
||||
SUBDIRS = gmodule gthread docs
|
||||
all-recursive-am: all-am
|
||||
# alpha `automake' supports this better
|
||||
#SUBDIRS = . gmodule docs
|
||||
#SUBDIRS = . gmodule gthread docs
|
||||
|
||||
configincludedir = $(pkglibdir)/include
|
||||
|
||||
@ -15,50 +15,50 @@ glib-config: glib-config.in
|
||||
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
|
||||
|
||||
EXTRA_DIST = \
|
||||
glib.m4 \
|
||||
glib.spec \
|
||||
acglib.m4 \
|
||||
sanity_check \
|
||||
README.win32 \
|
||||
glib.def \
|
||||
makefile.lcc \
|
||||
makefile.msc \
|
||||
glib.m4 \
|
||||
glib.spec \
|
||||
acglib.m4 \
|
||||
sanity_check \
|
||||
README.win32 \
|
||||
glib.def \
|
||||
makefile.lcc \
|
||||
makefile.msc \
|
||||
glibconfig.h.win32
|
||||
|
||||
lib_LTLIBRARIES = libglib.la
|
||||
|
||||
libglib_la_SOURCES = \
|
||||
garray.c \
|
||||
gcache.c \
|
||||
gcompletion.c \
|
||||
gdataset.c \
|
||||
gdate.c \
|
||||
gerror.c \
|
||||
ghash.c \
|
||||
ghook.c \
|
||||
glist.c \
|
||||
gmain.c \
|
||||
giochannel.c \
|
||||
giounix.c \
|
||||
gmem.c \
|
||||
gmessages.c \
|
||||
gnode.c \
|
||||
gprimes.c \
|
||||
gslist.c \
|
||||
gtimer.c \
|
||||
gtree.c \
|
||||
grel.c \
|
||||
gstring.c \
|
||||
gstrfuncs.c \
|
||||
gscanner.c \
|
||||
gutils.c \
|
||||
gmutex.c
|
||||
garray.c \
|
||||
gcache.c \
|
||||
gcompletion.c \
|
||||
gdataset.c \
|
||||
gdate.c \
|
||||
gerror.c \
|
||||
ghash.c \
|
||||
ghook.c \
|
||||
giochannel.c \
|
||||
giounix.c \
|
||||
glist.c \
|
||||
gmain.c \
|
||||
gmem.c \
|
||||
gmessages.c \
|
||||
gmutex.c \
|
||||
gnode.c \
|
||||
gprimes.c \
|
||||
grel.c \
|
||||
gscanner.c \
|
||||
gslist.c \
|
||||
gstrfuncs.c \
|
||||
gstring.c \
|
||||
gtimer.c \
|
||||
gtree.c \
|
||||
gutils.c
|
||||
|
||||
include_HEADERS = \
|
||||
glib.h
|
||||
glib.h
|
||||
|
||||
configinclude_DATA = \
|
||||
glibconfig.h
|
||||
glibconfig.h
|
||||
|
||||
configure: configure.in acglib.m4
|
||||
|
||||
@ -70,7 +70,8 @@ stamp-gc-h: config.status
|
||||
echo timestamp > stamp-gc-h
|
||||
|
||||
libglib_la_LDFLAGS = \
|
||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
|
||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
||||
-release $(LT_RELEASE)
|
||||
|
||||
noinst_PROGRAMS = testglib testgdate testgdateparser
|
||||
testglib_LDADD = libglib.la
|
||||
|
12
testglib.c
12
testglib.c
@ -860,20 +860,22 @@ main (int argc,
|
||||
string = NULL;
|
||||
g_print (string);
|
||||
|
||||
g_print ("endian macro tests...");
|
||||
g_print ("checking endian macros (host is ");
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
g_print ("big endian...\n");
|
||||
g_print ("big endian)...");
|
||||
#else
|
||||
g_print ("little endian...\n");
|
||||
g_print ("little endian)...");
|
||||
#endif
|
||||
g_assert (GUINT16_SWAP_LE_BE (gu16t1) == gu16t2);
|
||||
g_assert (GUINT32_SWAP_LE_BE (gu32t1) == gu32t2);
|
||||
#ifdef G_HAVE_GINT64
|
||||
g_assert (GUINT64_SWAP_LE_BE (gu64t1) == gu64t2);
|
||||
#endif
|
||||
g_print ("ok\n");
|
||||
|
||||
#ifdef G_HAVE_ALLOCA
|
||||
/* test alloca()-based string duplication routines */
|
||||
g_print ("checking alloca()-based string duplication routines...");
|
||||
|
||||
g_strdup_a(string, GLIB_TEST_STRING);
|
||||
g_assert(string != NULL);
|
||||
g_assert(strcmp(string, GLIB_TEST_STRING) == 0);
|
||||
@ -887,9 +889,9 @@ main (int argc,
|
||||
g_assert(string != NULL);
|
||||
g_assert(strcmp(string, GLIB_TEST_STRING GLIB_TEST_STRING
|
||||
GLIB_TEST_STRING) == 0);
|
||||
#endif
|
||||
|
||||
g_print ("ok\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -860,20 +860,22 @@ main (int argc,
|
||||
string = NULL;
|
||||
g_print (string);
|
||||
|
||||
g_print ("endian macro tests...");
|
||||
g_print ("checking endian macros (host is ");
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
g_print ("big endian...\n");
|
||||
g_print ("big endian)...");
|
||||
#else
|
||||
g_print ("little endian...\n");
|
||||
g_print ("little endian)...");
|
||||
#endif
|
||||
g_assert (GUINT16_SWAP_LE_BE (gu16t1) == gu16t2);
|
||||
g_assert (GUINT32_SWAP_LE_BE (gu32t1) == gu32t2);
|
||||
#ifdef G_HAVE_GINT64
|
||||
g_assert (GUINT64_SWAP_LE_BE (gu64t1) == gu64t2);
|
||||
#endif
|
||||
g_print ("ok\n");
|
||||
|
||||
#ifdef G_HAVE_ALLOCA
|
||||
/* test alloca()-based string duplication routines */
|
||||
g_print ("checking alloca()-based string duplication routines...");
|
||||
|
||||
g_strdup_a(string, GLIB_TEST_STRING);
|
||||
g_assert(string != NULL);
|
||||
g_assert(strcmp(string, GLIB_TEST_STRING) == 0);
|
||||
@ -887,9 +889,9 @@ main (int argc,
|
||||
g_assert(string != NULL);
|
||||
g_assert(strcmp(string, GLIB_TEST_STRING GLIB_TEST_STRING
|
||||
GLIB_TEST_STRING) == 0);
|
||||
#endif
|
||||
|
||||
g_print ("ok\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user