mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
added glib_gettext (in use by gio) also try building gio
2007-12-03 Hans Breuer <hans@breuer.org> * glib/glib.symbols : added glib_gettext (in use by gio) * makefile.msc : also try building gio * glib/gmarkup.c : use G_GUINT64_CONSTANT() to avoid 'bad suffix on number' * glib/gtestutils.c : declare cariable at the beginning of the block, include <io.h> for G_OS_WIN32 * makefile.msc.in : add gurifuncs and gtestutils svn path=/trunk/; revision=6028
This commit is contained in:
parent
43ae389211
commit
27cb515443
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
|||||||
|
2007-12-03 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* glib/glib.symbols : added glib_gettext (in use by gio)
|
||||||
|
* makefile.msc : also try building gio
|
||||||
|
|
||||||
|
* glib/gmarkup.c : use G_GUINT64_CONSTANT() to avoid
|
||||||
|
'bad suffix on number'
|
||||||
|
* glib/gtestutils.c : declare cariable at the beginning of the block,
|
||||||
|
include <io.h> for G_OS_WIN32
|
||||||
|
* makefile.msc.in : add gurifuncs and gtestutils
|
||||||
|
|
||||||
2007-12-03 Ryan Lortie <desrt@desrt.ca>
|
2007-12-03 Ryan Lortie <desrt@desrt.ca>
|
||||||
|
|
||||||
* glib/ghash.c: create a common function for the many places where all
|
* glib/ghash.c: create a common function for the many places where all
|
||||||
|
@ -1559,6 +1559,8 @@ g_win32_locale_filename_from_utf8
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
glib_gettext
|
||||||
|
|
||||||
#ifdef INCLUDE_VARIABLES
|
#ifdef INCLUDE_VARIABLES
|
||||||
g_ascii_table
|
g_ascii_table
|
||||||
g_utf8_skip
|
g_utf8_skip
|
||||||
|
@ -2496,7 +2496,7 @@ g_markup_collect_attributes (const gchar *element_name,
|
|||||||
mandatory = FALSE;
|
mandatory = FALSE;
|
||||||
|
|
||||||
for (i = 0; attribute_names[i]; i++)
|
for (i = 0; attribute_names[i]; i++)
|
||||||
if (i >= 40 || !(collected & (1ull << i)))
|
if (i >= 40 || !(collected & (G_GUINT64_CONSTANT(1) << i)))
|
||||||
if (!strcmp (attribute_names[i], attr))
|
if (!strcmp (attribute_names[i], attr))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -2514,7 +2514,7 @@ g_markup_collect_attributes (const gchar *element_name,
|
|||||||
* what error it is, so just continue...
|
* what error it is, so just continue...
|
||||||
*/
|
*/
|
||||||
if (i < 40)
|
if (i < 40)
|
||||||
collected |= (1ull << i);
|
collected |= (G_GUINT64_CONSTANT(1) << i);
|
||||||
|
|
||||||
value = attribute_values[i];
|
value = attribute_values[i];
|
||||||
|
|
||||||
|
@ -30,6 +30,9 @@
|
|||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
#include <io.h>
|
||||||
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#ifdef HAVE_SYS_SELECT_H
|
#ifdef HAVE_SYS_SELECT_H
|
||||||
@ -753,11 +756,12 @@ g_test_create_case (const char *test_name,
|
|||||||
void (*data_test) (void),
|
void (*data_test) (void),
|
||||||
void (*data_teardown) (void))
|
void (*data_teardown) (void))
|
||||||
{
|
{
|
||||||
|
GTestCase *tc;
|
||||||
g_return_val_if_fail (test_name != NULL, NULL);
|
g_return_val_if_fail (test_name != NULL, NULL);
|
||||||
g_return_val_if_fail (strchr (test_name, '/') == NULL, NULL);
|
g_return_val_if_fail (strchr (test_name, '/') == NULL, NULL);
|
||||||
g_return_val_if_fail (test_name[0] != 0, NULL);
|
g_return_val_if_fail (test_name[0] != 0, NULL);
|
||||||
g_return_val_if_fail (data_test != NULL, NULL);
|
g_return_val_if_fail (data_test != NULL, NULL);
|
||||||
GTestCase *tc = g_slice_new0 (GTestCase);
|
tc = g_slice_new0 (GTestCase);
|
||||||
tc->name = g_strdup (test_name);
|
tc->name = g_strdup (test_name);
|
||||||
tc->fixture_size = data_size;
|
tc->fixture_size = data_size;
|
||||||
tc->fixture_setup = (void*) data_setup;
|
tc->fixture_setup = (void*) data_setup;
|
||||||
@ -837,10 +841,11 @@ g_test_add_func (const char *testpath,
|
|||||||
GTestSuite*
|
GTestSuite*
|
||||||
g_test_create_suite (const char *suite_name)
|
g_test_create_suite (const char *suite_name)
|
||||||
{
|
{
|
||||||
|
GTestSuite *ts;
|
||||||
g_return_val_if_fail (suite_name != NULL, NULL);
|
g_return_val_if_fail (suite_name != NULL, NULL);
|
||||||
g_return_val_if_fail (strchr (suite_name, '/') == NULL, NULL);
|
g_return_val_if_fail (strchr (suite_name, '/') == NULL, NULL);
|
||||||
g_return_val_if_fail (suite_name[0] != 0, NULL);
|
g_return_val_if_fail (suite_name[0] != 0, NULL);
|
||||||
GTestSuite *ts = g_slice_new0 (GTestSuite);
|
ts = g_slice_new0 (GTestSuite);
|
||||||
ts->name = g_strdup (suite_name);
|
ts->name = g_strdup (suite_name);
|
||||||
return ts;
|
return ts;
|
||||||
}
|
}
|
||||||
@ -933,10 +938,11 @@ test_case_run (GTestCase *tc)
|
|||||||
{
|
{
|
||||||
GTimer *test_run_timer = g_timer_new();
|
GTimer *test_run_timer = g_timer_new();
|
||||||
long double largs[3];
|
long double largs[3];
|
||||||
|
void *fixture;
|
||||||
g_test_log (G_TEST_LOG_START_CASE, test_run_name, NULL, 0, NULL);
|
g_test_log (G_TEST_LOG_START_CASE, test_run_name, NULL, 0, NULL);
|
||||||
test_run_forks = 0;
|
test_run_forks = 0;
|
||||||
g_timer_start (test_run_timer);
|
g_timer_start (test_run_timer);
|
||||||
void *fixture = g_malloc0 (tc->fixture_size);
|
fixture = g_malloc0 (tc->fixture_size);
|
||||||
test_run_seed (test_run_seedstr);
|
test_run_seed (test_run_seedstr);
|
||||||
if (tc->fixture_setup)
|
if (tc->fixture_setup)
|
||||||
tc->fixture_setup (fixture);
|
tc->fixture_setup (fixture);
|
||||||
@ -1057,8 +1063,9 @@ g_assertion_message (const char *domain,
|
|||||||
const char *message)
|
const char *message)
|
||||||
{
|
{
|
||||||
char lstr[32];
|
char lstr[32];
|
||||||
|
char *s;
|
||||||
g_snprintf (lstr, 32, "%d", line);
|
g_snprintf (lstr, 32, "%d", line);
|
||||||
char *s = g_strconcat (domain ? domain : "", domain && domain[0] ? ":" : "",
|
s = g_strconcat (domain ? domain : "", domain && domain[0] ? ":" : "",
|
||||||
file, ":", lstr, ":",
|
file, ":", lstr, ":",
|
||||||
func, func[0] ? ":" : "",
|
func, func[0] ? ":" : "",
|
||||||
" ", message, NULL);
|
" ", message, NULL);
|
||||||
|
@ -78,6 +78,7 @@ glib_OBJECTS = \
|
|||||||
gstdio.obj \
|
gstdio.obj \
|
||||||
gstrfuncs.obj \
|
gstrfuncs.obj \
|
||||||
gstring.obj \
|
gstring.obj \
|
||||||
|
gtestutils.obj \
|
||||||
gthread.obj \
|
gthread.obj \
|
||||||
gthreadpool.obj \
|
gthreadpool.obj \
|
||||||
gtimer.obj \
|
gtimer.obj \
|
||||||
@ -86,6 +87,7 @@ glib_OBJECTS = \
|
|||||||
gunicollate.obj \
|
gunicollate.obj \
|
||||||
gunidecomp.obj \
|
gunidecomp.obj \
|
||||||
guniprop.obj \
|
guniprop.obj \
|
||||||
|
gurifuncs.obj \
|
||||||
gutf8.obj \
|
gutf8.obj \
|
||||||
gutils.obj \
|
gutils.obj \
|
||||||
gwin32.obj \
|
gwin32.obj \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
## Makefile for building the GLib dlls with Microsoft C
|
## Makefile for building the GLib dlls with Microsoft C
|
||||||
## Use: nmake -f makefile.msc
|
## Use: nmake -f makefile.msc
|
||||||
|
|
||||||
PARTS = glib gmodule gthread gobject tests
|
PARTS = glib gmodule gthread gobject gio tests
|
||||||
|
|
||||||
all : \
|
all : \
|
||||||
config.h \
|
config.h \
|
||||||
|
Loading…
Reference in New Issue
Block a user