mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 06:13:29 +02:00
Make PLT-reduction work with gcc4, and don't include everything in
2005-03-13 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in galias.h: * glib/glib.symbols: Group symbols by header and source file. * glib/makegalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegalias.pl -def * glib/Makefile.am (galiasdef.c): Add a rule to generate this file. * glib/*.c: Include galias.h after the other GLib headers, include galiasdef.c at the bottom.
This commit is contained in:
committed by
Matthias Clasen
parent
96913f7a50
commit
608a31b98e
17
ChangeLog
17
ChangeLog
@@ -1,3 +1,20 @@
|
|||||||
|
005-03-13 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Make PLT-reduction work with gcc4, and don't include
|
||||||
|
everything in galias.h:
|
||||||
|
|
||||||
|
* glib/glib.symbols: Group symbols by header and source file.
|
||||||
|
* glib/makegalias.pl: Protect definitions by the same
|
||||||
|
preprocessor symbols used to guard the headers. Move
|
||||||
|
the alias declarations to a separate file which is
|
||||||
|
produced when calling makegalias.pl -def
|
||||||
|
* glib/Makefile.am (galiasdef.c): Add a rule to generate this
|
||||||
|
file.
|
||||||
|
* glib/*.c: Include galias.h after the other GLib headers,
|
||||||
|
include galiasdef.c at the bottom.
|
||||||
|
|
||||||
|
* glib/glib.symbols: Add g_listenv and g_file_replace.
|
||||||
|
|
||||||
Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
|
Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.c (write_to_temp_file): Don't try and generate
|
* glib/gfileutils.c (write_to_temp_file): Don't try and generate
|
||||||
|
@@ -1,3 +1,20 @@
|
|||||||
|
005-03-13 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Make PLT-reduction work with gcc4, and don't include
|
||||||
|
everything in galias.h:
|
||||||
|
|
||||||
|
* glib/glib.symbols: Group symbols by header and source file.
|
||||||
|
* glib/makegalias.pl: Protect definitions by the same
|
||||||
|
preprocessor symbols used to guard the headers. Move
|
||||||
|
the alias declarations to a separate file which is
|
||||||
|
produced when calling makegalias.pl -def
|
||||||
|
* glib/Makefile.am (galiasdef.c): Add a rule to generate this
|
||||||
|
file.
|
||||||
|
* glib/*.c: Include galias.h after the other GLib headers,
|
||||||
|
include galiasdef.c at the bottom.
|
||||||
|
|
||||||
|
* glib/glib.symbols: Add g_listenv and g_file_replace.
|
||||||
|
|
||||||
Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
|
Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.c (write_to_temp_file): Don't try and generate
|
* glib/gfileutils.c (write_to_temp_file): Don't try and generate
|
||||||
|
@@ -1,3 +1,20 @@
|
|||||||
|
005-03-13 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Make PLT-reduction work with gcc4, and don't include
|
||||||
|
everything in galias.h:
|
||||||
|
|
||||||
|
* glib/glib.symbols: Group symbols by header and source file.
|
||||||
|
* glib/makegalias.pl: Protect definitions by the same
|
||||||
|
preprocessor symbols used to guard the headers. Move
|
||||||
|
the alias declarations to a separate file which is
|
||||||
|
produced when calling makegalias.pl -def
|
||||||
|
* glib/Makefile.am (galiasdef.c): Add a rule to generate this
|
||||||
|
file.
|
||||||
|
* glib/*.c: Include galias.h after the other GLib headers,
|
||||||
|
include galiasdef.c at the bottom.
|
||||||
|
|
||||||
|
* glib/glib.symbols: Add g_listenv and g_file_replace.
|
||||||
|
|
||||||
Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
|
Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.c (write_to_temp_file): Don't try and generate
|
* glib/gfileutils.c (write_to_temp_file): Don't try and generate
|
||||||
|
@@ -1,3 +1,20 @@
|
|||||||
|
005-03-13 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Make PLT-reduction work with gcc4, and don't include
|
||||||
|
everything in galias.h:
|
||||||
|
|
||||||
|
* glib/glib.symbols: Group symbols by header and source file.
|
||||||
|
* glib/makegalias.pl: Protect definitions by the same
|
||||||
|
preprocessor symbols used to guard the headers. Move
|
||||||
|
the alias declarations to a separate file which is
|
||||||
|
produced when calling makegalias.pl -def
|
||||||
|
* glib/Makefile.am (galiasdef.c): Add a rule to generate this
|
||||||
|
file.
|
||||||
|
* glib/*.c: Include galias.h after the other GLib headers,
|
||||||
|
include galiasdef.c at the bottom.
|
||||||
|
|
||||||
|
* glib/glib.symbols: Add g_listenv and g_file_replace.
|
||||||
|
|
||||||
Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
|
Fri Mar 11 23:51:12 2005 Soeren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* glib/gfileutils.c (write_to_temp_file): Don't try and generate
|
* glib/gfileutils.c (write_to_temp_file): Don't try and generate
|
||||||
|
@@ -14,18 +14,21 @@ INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
|
|||||||
$(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
|
$(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
|
||||||
|
|
||||||
glib.def: glib.symbols
|
glib.def: glib.symbols
|
||||||
(echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 - <$(srcdir)/glib.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > glib.def
|
(echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/glib.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g') > glib.def
|
||||||
|
|
||||||
galias.h: glib.symbols
|
galias.h: glib.symbols
|
||||||
$(PERL) $(srcdir)/makegalias.pl < $(srcdir)/glib.symbols > galias.h
|
$(PERL) $(srcdir)/makegalias.pl < $(srcdir)/glib.symbols > galias.h
|
||||||
|
|
||||||
|
galiasdef.c: glib.symbols
|
||||||
|
$(PERL) $(srcdir)/makegalias.pl -def < $(srcdir)/glib.symbols > galiasdef.c
|
||||||
|
|
||||||
if OS_LINUX
|
if OS_LINUX
|
||||||
if HAVE_GNUC_VISIBILITY
|
if HAVE_GNUC_VISIBILITY
|
||||||
TESTS = abicheck.sh
|
TESTS = abicheck.sh
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BUILT_SOURCES = galias.h
|
BUILT_SOURCES = galias.h galiasdef.c
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
makefile.msc.in \
|
makefile.msc.in \
|
||||||
@@ -39,7 +42,8 @@ EXTRA_DIST = \
|
|||||||
BUILT_EXTRA_DIST = \
|
BUILT_EXTRA_DIST = \
|
||||||
makefile.msc \
|
makefile.msc \
|
||||||
glib.rc \
|
glib.rc \
|
||||||
galias.h
|
galias.h \
|
||||||
|
galiasdef.c
|
||||||
|
|
||||||
lib_LTLIBRARIES = libglib-2.0.la
|
lib_LTLIBRARIES = libglib-2.0.la
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@ egrep '^#([^i]|if).*[^\]$' "${top_builddir:-..}/glibconfig.h" > glibconfig.cpp
|
|||||||
INCLUDES="-include ${top_builddir:-..}/config.h"
|
INCLUDES="-include ${top_builddir:-..}/config.h"
|
||||||
INCLUDES="$INCLUDES -include glibconfig.cpp"
|
INCLUDES="$INCLUDES -include glibconfig.cpp"
|
||||||
|
|
||||||
cpp -P -DINCLUDE_INTERNAL_SYMBOLS -DG_STDIO_NO_WRAP_ON_UNIX $INCLUDES "${srcdir:-.}/glib.symbols" | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
|
cpp -P -DINCLUDE_INTERNAL_SYMBOLS -DG_STDIO_NO_WRAP_ON_UNIX -DALL_FILES $INCLUDES "${srcdir:-.}/glib.symbols" | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE$//' | sort > expected-abi
|
||||||
rm glibconfig.cpp
|
rm glibconfig.cpp
|
||||||
|
|
||||||
nm -D .libs/libglib-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi
|
nm -D .libs/libglib-2.0.so | grep " T " | cut -d ' ' -f 3 | sort > actual-abi
|
||||||
|
@@ -32,8 +32,15 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "garray.h"
|
||||||
|
|
||||||
|
#include "gmem.h"
|
||||||
|
#include "gthread.h"
|
||||||
|
#include "gmessages.h"
|
||||||
|
#include "gqsort.h"
|
||||||
|
|
||||||
#include "galias.h"
|
#include "galias.h"
|
||||||
#include "glib.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define MIN_ARRAY_SIZE 16
|
#define MIN_ARRAY_SIZE 16
|
||||||
@@ -750,3 +757,6 @@ g_byte_array_sort_with_data (GByteArray *array,
|
|||||||
{
|
{
|
||||||
g_array_sort_with_data ((GArray *) array, compare_func, user_data);
|
g_array_sort_with_data ((GArray *) array, compare_func, user_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_ARRAY_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -26,8 +26,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
struct _GAsyncQueue
|
struct _GAsyncQueue
|
||||||
@@ -444,3 +444,5 @@ g_async_queue_length_unlocked (GAsyncQueue* queue)
|
|||||||
return queue->queue->length - queue->waiting_threads;
|
return queue->queue->length - queue->waiting_threads;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_ASYNCQUEUE_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -646,3 +646,6 @@ _g_atomic_thread_init (void)
|
|||||||
g_atomic_mutex = g_mutex_new ();
|
g_atomic_mutex = g_mutex_new ();
|
||||||
#endif /* DEFINE_WITH_MUTEXES */
|
#endif /* DEFINE_WITH_MUTEXES */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define IN_FILE_gatomic 1
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -35,7 +35,6 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gprintfint.h"
|
#include "gprintfint.h"
|
||||||
|
|
||||||
@@ -76,6 +75,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifndef G_OS_WIN32
|
#ifndef G_OS_WIN32
|
||||||
static void stack_trace (char **args);
|
static void stack_trace (char **args);
|
||||||
@@ -302,3 +302,6 @@ stack_trace (char **args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !G_OS_WIN32 */
|
#endif /* !G_OS_WIN32 */
|
||||||
|
|
||||||
|
#define __G_BACKTRACE_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -213,3 +213,6 @@ g_cache_node_destroy (GCacheNode *node)
|
|||||||
g_mem_chunk_free (node_mem_chunk, node);
|
g_mem_chunk_free (node_mem_chunk, node);
|
||||||
G_UNLOCK (node_mem_chunk);
|
G_UNLOCK (node_mem_chunk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define IN_FILE_gcache 1
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -32,9 +32,8 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
static void completion_check_cache (GCompletion* cmp,
|
static void completion_check_cache (GCompletion* cmp,
|
||||||
gchar** new_prefix);
|
gchar** new_prefix);
|
||||||
@@ -346,3 +345,6 @@ main (int argc,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define __G_COMPLETION_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -28,7 +28,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gprintfint.h"
|
#include "gprintfint.h"
|
||||||
#include "gthreadinit.h"
|
#include "gthreadinit.h"
|
||||||
@@ -48,6 +47,8 @@
|
|||||||
#error GNU libiconv not in use but included iconv.h is from libiconv
|
#error GNU libiconv not in use but included iconv.h is from libiconv
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
GQuark
|
GQuark
|
||||||
g_convert_error_quark (void)
|
g_convert_error_quark (void)
|
||||||
{
|
{
|
||||||
@@ -2003,3 +2004,5 @@ g_filename_display_name (const gchar *filename)
|
|||||||
return display_name;
|
return display_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_CONVERT_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -34,8 +34,9 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
/* --- defines --- */
|
/* --- defines --- */
|
||||||
@@ -544,7 +545,7 @@ g_data_initialize (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
GQuark
|
GQuark
|
||||||
g_quark_try_string (const gchar *string)
|
IA__g_quark_try_string (const gchar *string)
|
||||||
{
|
{
|
||||||
GQuark quark = 0;
|
GQuark quark = 0;
|
||||||
g_return_val_if_fail (string != NULL, 0);
|
g_return_val_if_fail (string != NULL, 0);
|
||||||
@@ -631,3 +632,6 @@ g_quark_new (gchar *string)
|
|||||||
|
|
||||||
return quark;
|
return quark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_DATASET_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -35,7 +35,6 @@
|
|||||||
/* #define DEBUG_MSG(args) g_message args ; */
|
/* #define DEBUG_MSG(args) g_message args ; */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@@ -43,6 +42,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
GDate*
|
GDate*
|
||||||
g_date_new (void)
|
g_date_new (void)
|
||||||
{
|
{
|
||||||
@@ -1467,3 +1468,6 @@ g_date_strftime (gchar *s,
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_DATE_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
|
||||||
|
@@ -32,12 +32,13 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gdir.h"
|
#include "gdir.h"
|
||||||
|
|
||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
struct _GDir
|
struct _GDir
|
||||||
{
|
{
|
||||||
union {
|
union {
|
||||||
@@ -343,3 +344,6 @@ g_dir_close (GDir *dir)
|
|||||||
closedir (dir->u.dirp);
|
closedir (dir->u.dirp);
|
||||||
g_free (dir);
|
g_free (dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_DIR_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -26,8 +26,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
static GError*
|
static GError*
|
||||||
@@ -256,3 +256,6 @@ g_clear_error (GError **err)
|
|||||||
*err = NULL;
|
*err = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_ERROR_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@@ -53,6 +52,8 @@
|
|||||||
#include "gstdio.h"
|
#include "gstdio.h"
|
||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_file_test:
|
* g_file_test:
|
||||||
* @filename: a filename to test in the GLib file name encoding
|
* @filename: a filename to test in the GLib file name encoding
|
||||||
@@ -1721,3 +1722,6 @@ g_file_read_link (const gchar *filename,
|
|||||||
return NULL;
|
return NULL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_FILEUTILS_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
#define HASH_TABLE_MIN_SIZE 11
|
#define HASH_TABLE_MIN_SIZE 11
|
||||||
@@ -759,3 +759,6 @@ g_hash_nodes_destroy (GHashNode *hash_node,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_HASH_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -33,8 +33,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
/* --- defines --- */
|
/* --- defines --- */
|
||||||
@@ -645,3 +645,6 @@ g_hook_compare_ids (GHook *new_hook,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_HOOK_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -42,13 +42,14 @@
|
|||||||
|
|
||||||
#undef G_DISABLE_DEPRECATED
|
#undef G_DISABLE_DEPRECATED
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
|
||||||
#include "giochannel.h"
|
#include "giochannel.h"
|
||||||
|
|
||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#define G_IO_NICE_BUF_SIZE 1024
|
#define G_IO_NICE_BUF_SIZE 1024
|
||||||
|
|
||||||
/* This needs to be as wide as the largest character in any possible encoding */
|
/* This needs to be as wide as the largest character in any possible encoding */
|
||||||
@@ -2301,3 +2302,6 @@ g_io_channel_error_quark (void)
|
|||||||
|
|
||||||
return q;
|
return q;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_IOCHANNEL_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -43,8 +43,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unix IO Channels
|
* Unix IO Channels
|
||||||
@@ -596,3 +596,6 @@ g_io_channel_unix_get_fd (GIOChannel *channel)
|
|||||||
GIOUnixChannel *unix_channel = (GIOUnixChannel *)channel;
|
GIOUnixChannel *unix_channel = (GIOUnixChannel *)channel;
|
||||||
return unix_channel->fd;
|
return unix_channel->fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_IO_UNIX_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -49,6 +48,8 @@
|
|||||||
#include "gstdio.h"
|
#include "gstdio.h"
|
||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
typedef struct _GIOWin32Channel GIOWin32Channel;
|
typedef struct _GIOWin32Channel GIOWin32Channel;
|
||||||
typedef struct _GIOWin32Watch GIOWin32Watch;
|
typedef struct _GIOWin32Watch GIOWin32Watch;
|
||||||
|
|
||||||
@@ -1713,3 +1714,6 @@ g_io_channel_win32_new_stream_socket (int socket)
|
|||||||
{
|
{
|
||||||
return g_io_channel_win32_new_socket (socket);
|
return g_io_channel_win32_new_socket (socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_IO_WIN32_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "galias.h"
|
|
||||||
|
|
||||||
#include "gkeyfile.h"
|
#include "gkeyfile.h"
|
||||||
|
|
||||||
@@ -61,6 +60,8 @@
|
|||||||
#include "gstrfuncs.h"
|
#include "gstrfuncs.h"
|
||||||
#include "gutils.h"
|
#include "gutils.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
typedef struct _GKeyFileGroup GKeyFileGroup;
|
typedef struct _GKeyFileGroup GKeyFileGroup;
|
||||||
|
|
||||||
struct _GKeyFile
|
struct _GKeyFile
|
||||||
@@ -3274,4 +3275,5 @@ g_key_file_parse_comment_as_value (GKeyFile *key_file,
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_KEY_FILE_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef DISABLE_MEM_POOLS
|
#ifndef DISABLE_MEM_POOLS
|
||||||
@@ -814,3 +814,5 @@ g_list_sort_with_data (GList *list,
|
|||||||
return g_list_sort_real (list, (GFunc) compare_func, TRUE, user_data);
|
return g_list_sort_real (list, (GFunc) compare_func, TRUE, user_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_LIST_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -36,7 +36,6 @@
|
|||||||
/* uncomment the next line to get poll() debugging info */
|
/* uncomment the next line to get poll() debugging info */
|
||||||
/* #define G_MAIN_POLL_DEBUG */
|
/* #define G_MAIN_POLL_DEBUG */
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gthreadinit.h"
|
#include "gthreadinit.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -76,6 +75,9 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
/* Types */
|
/* Types */
|
||||||
|
|
||||||
typedef struct _GTimeoutSource GTimeoutSource;
|
typedef struct _GTimeoutSource GTimeoutSource;
|
||||||
@@ -3916,3 +3918,5 @@ g_idle_remove_by_data (gpointer data)
|
|||||||
return g_source_remove_by_funcs_user_data (&g_idle_funcs, data);
|
return g_source_remove_by_funcs_user_data (&g_idle_funcs, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_MAIN_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -26,8 +26,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
|
|
||||||
@@ -2259,3 +2259,6 @@ g_markup_printf_escaped (const char *format, ...)
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_MARKUP_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -34,9 +34,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gthreadinit.h"
|
#include "gthreadinit.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
/* notes on macros:
|
/* notes on macros:
|
||||||
* having DISABLE_MEM_POOLS defined, disables mem_chunks alltogether, their
|
* having DISABLE_MEM_POOLS defined, disables mem_chunks alltogether, their
|
||||||
@@ -1272,3 +1272,5 @@ _g_mem_thread_private_init (void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_MEM_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -41,11 +41,11 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gdebug.h"
|
#include "gdebug.h"
|
||||||
#include "gprintfint.h"
|
#include "gprintfint.h"
|
||||||
#include "gthreadinit.h"
|
#include "gthreadinit.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
@@ -1122,3 +1122,6 @@ _g_debug_init (void)
|
|||||||
g_log_set_always_fatal (fatal_mask);
|
g_log_set_always_fatal (fatal_mask);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_MESSAGES_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -33,8 +33,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifndef DISABLE_MEM_POOLS
|
#ifndef DISABLE_MEM_POOLS
|
||||||
/* node allocation
|
/* node allocation
|
||||||
@@ -1048,3 +1048,6 @@ g_node_children_foreach (GNode *node,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_NODE_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -21,12 +21,12 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
|
|
||||||
#include "goption.h"
|
#include "goption.h"
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gi18n.h"
|
#include "gi18n.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -1657,3 +1657,5 @@ g_option_group_set_translation_domain (GOptionGroup *group,
|
|||||||
g_free);
|
g_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_OPTION_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "gpattern.h"
|
#include "gpattern.h"
|
||||||
|
|
||||||
#include "gmacros.h"
|
#include "gmacros.h"
|
||||||
@@ -29,6 +28,7 @@
|
|||||||
#include "gmem.h"
|
#include "gmem.h"
|
||||||
#include "gunicode.h"
|
#include "gunicode.h"
|
||||||
#include "gutils.h"
|
#include "gutils.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
/* keep enum and structure of gpattern.c and patterntest.c in sync */
|
/* keep enum and structure of gpattern.c and patterntest.c in sync */
|
||||||
typedef enum
|
typedef enum
|
||||||
@@ -320,3 +320,6 @@ g_pattern_match_simple (const gchar *pattern,
|
|||||||
|
|
||||||
return ergo;
|
return ergo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_PATTERN_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
static const guint g_primes[] =
|
static const guint g_primes[] =
|
||||||
@@ -85,3 +85,6 @@ g_spaced_primes_closest (guint num)
|
|||||||
|
|
||||||
return g_primes[g_nprimes - 1];
|
return g_primes[g_nprimes - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_PRIMES_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -27,11 +27,12 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gprintf.h"
|
#include "gprintf.h"
|
||||||
#include "gprintfint.h"
|
#include "gprintfint.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_printf:
|
* g_printf:
|
||||||
* @format: a standard printf() format string, but notice
|
* @format: a standard printf() format string, but notice
|
||||||
@@ -337,6 +338,5 @@ g_vasprintf (gchar **string,
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_PRINTF_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
|
||||||
|
@@ -38,8 +38,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
/* Byte-wise swap two items of size SIZE. */
|
/* Byte-wise swap two items of size SIZE. */
|
||||||
#define SWAP(a, b, size) \
|
#define SWAP(a, b, size) \
|
||||||
@@ -282,3 +282,6 @@ g_qsort_with_data (gconstpointer pbase,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_QSORT_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -26,8 +26,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
G_LOCK_DEFINE_STATIC (queue_memchunk);
|
G_LOCK_DEFINE_STATIC (queue_memchunk);
|
||||||
@@ -1001,3 +1001,6 @@ g_queue_insert_sorted (GQueue *queue,
|
|||||||
else
|
else
|
||||||
g_queue_push_tail (queue, data);
|
g_queue_push_tail (queue, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_QUEUE_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -47,9 +47,9 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gthreadinit.h"
|
#include "gthreadinit.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
#include <process.h> /* For getpid() */
|
#include <process.h> /* For getpid() */
|
||||||
@@ -635,3 +635,6 @@ g_random_set_seed (guint32 seed)
|
|||||||
G_UNLOCK (global_random);
|
G_UNLOCK (global_random);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#define __G_RAND_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -32,8 +32,8 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct _GRealTuples GRealTuples;
|
typedef struct _GRealTuples GRealTuples;
|
||||||
@@ -452,3 +452,6 @@ g_relation_print (GRelation *relation)
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_REL_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -42,9 +42,9 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gprintfint.h"
|
#include "gprintfint.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
#include <io.h> /* For _read() */
|
#include <io.h> /* For _read() */
|
||||||
@@ -1763,3 +1763,6 @@ g_scanner_get_token_ll (GScanner *scanner,
|
|||||||
*token_p = token;
|
*token_p = token;
|
||||||
*value_p = value;
|
*value_p = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_SCANNER_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifdef _
|
#ifdef _
|
||||||
#warning "FIXME remove gettext hack"
|
#warning "FIXME remove gettext hack"
|
||||||
@@ -671,3 +671,6 @@ g_shell_parse_argv (const gchar *command_line,
|
|||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_SHELL_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef DISABLE_MEM_POOLS
|
#ifndef DISABLE_MEM_POOLS
|
||||||
@@ -764,3 +764,6 @@ g_slist_sort_with_data (GSList *list,
|
|||||||
{
|
{
|
||||||
return g_slist_sort_real (list, (GFunc) compare_func, TRUE, user_data);
|
return g_slist_sort_real (list, (GFunc) compare_func, TRUE, user_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_SLIST_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -44,9 +44,9 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gprintfint.h"
|
#include "gprintfint.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -1018,3 +1018,6 @@ g_spawn_close_pid (GPid pid)
|
|||||||
{
|
{
|
||||||
CloseHandle (pid);
|
CloseHandle (pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_SPAWN_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -35,8 +35,8 @@
|
|||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif /* HAVE_SYS_SELECT_H */
|
#endif /* HAVE_SYS_SELECT_H */
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
|
|
||||||
@@ -1547,3 +1547,6 @@ void
|
|||||||
g_spawn_close_pid (GPid pid)
|
g_spawn_close_pid (GPid pid)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_SPAWN_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -21,7 +21,6 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#define G_STDIO_NO_WRAP_ON_UNIX
|
#define G_STDIO_NO_WRAP_ON_UNIX
|
||||||
#include "galias.h"
|
|
||||||
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
|
||||||
@@ -42,6 +41,8 @@
|
|||||||
|
|
||||||
#include "gstdio.h"
|
#include "gstdio.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#if !defined (G_OS_UNIX) && !defined (G_OS_WIN32)
|
#if !defined (G_OS_UNIX) && !defined (G_OS_WIN32)
|
||||||
#error Please port this to your operating system
|
#error Please port this to your operating system
|
||||||
#endif
|
#endif
|
||||||
@@ -730,3 +731,6 @@ g_freopen (const gchar *filename,
|
|||||||
return freopen (filename, mode, stream);
|
return freopen (filename, mode, stream);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_STDIO_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -43,11 +43,12 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gprintf.h"
|
#include "gprintf.h"
|
||||||
#include "gprintfint.h"
|
#include "gprintfint.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -2727,3 +2728,6 @@ g_strv_length (gchar **str_array)
|
|||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_STRFUNCS_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -39,10 +39,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gprintf.h"
|
#include "gprintf.h"
|
||||||
|
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
struct _GStringChunk
|
struct _GStringChunk
|
||||||
{
|
{
|
||||||
@@ -858,3 +858,6 @@ g_string_append_printf (GString *string,
|
|||||||
g_string_append_printf_internal (string, fmt, args);
|
g_string_append_printf_internal (string, fmt, args);
|
||||||
va_end (args);
|
va_end (args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_STRING_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -40,9 +40,9 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gthreadinit.h"
|
#include "gthreadinit.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#if GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P
|
#if GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P
|
||||||
# define g_system_thread_equal_simple(thread1, thread2) \
|
# define g_system_thread_equal_simple(thread1, thread2) \
|
||||||
@@ -837,3 +837,6 @@ g_static_rw_lock_free (GStaticRWLock* lock)
|
|||||||
}
|
}
|
||||||
g_static_mutex_free (&lock->mutex);
|
g_static_mutex_free (&lock->mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_THREAD_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -26,8 +26,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct _GRealThreadPool GRealThreadPool;
|
typedef struct _GRealThreadPool GRealThreadPool;
|
||||||
@@ -681,3 +681,6 @@ void g_thread_pool_stop_unused_threads (void)
|
|||||||
g_thread_pool_set_max_unused_threads (0);
|
g_thread_pool_set_max_unused_threads (0);
|
||||||
g_thread_pool_set_max_unused_threads (oldval);
|
g_thread_pool_set_max_unused_threads (oldval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_THREADPOOL_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -29,7 +29,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "galias.h"
|
|
||||||
#include "glibconfig.h"
|
#include "glibconfig.h"
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
@@ -47,6 +46,7 @@
|
|||||||
#endif /* G_OS_WIN32 */
|
#endif /* G_OS_WIN32 */
|
||||||
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
struct _GTimer
|
struct _GTimer
|
||||||
@@ -314,3 +314,6 @@ g_time_val_add (GTimeVal *time_, glong microseconds)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_TIMER_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct _GTreeNode GTreeNode;
|
typedef struct _GTreeNode GTreeNode;
|
||||||
@@ -1067,3 +1067,6 @@ g_tree_node_check (GTreeNode *node)
|
|||||||
g_tree_node_check (node->right);
|
g_tree_node_check (node->right);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_TREE_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gunibreak.h"
|
#include "gunibreak.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#define TPROP_PART1(Page, Char) \
|
#define TPROP_PART1(Page, Char) \
|
||||||
((break_property_table_part1[Page] >= G_UNICODE_MAX_TABLE_INDEX) \
|
((break_property_table_part1[Page] >= G_UNICODE_MAX_TABLE_INDEX) \
|
||||||
@@ -61,3 +61,6 @@ g_unichar_break_type (gunichar c)
|
|||||||
{
|
{
|
||||||
return PROP (c);
|
return PROP (c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_UNIBREAK_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -26,9 +26,9 @@
|
|||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gunicodeprivate.h"
|
#include "gunicodeprivate.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_utf8_collate:
|
* g_utf8_collate:
|
||||||
@@ -261,3 +261,6 @@ g_utf8_collate_key (const gchar *str,
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_UNICOLLATE_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -23,11 +23,11 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gunidecomp.h"
|
#include "gunidecomp.h"
|
||||||
#include "gunicomp.h"
|
#include "gunicomp.h"
|
||||||
#include "gunicodeprivate.h"
|
#include "gunicodeprivate.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
|
|
||||||
#define CC_PART1(Page, Char) \
|
#define CC_PART1(Page, Char) \
|
||||||
@@ -520,3 +520,6 @@ g_utf8_normalize (const gchar *str,
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_UNIDECOMP_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -25,10 +25,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gunichartables.h"
|
#include "gunichartables.h"
|
||||||
#include "gunicodeprivate.h"
|
#include "gunicodeprivate.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#define ATTR_TABLE(Page) (((Page) <= G_UNICODE_LAST_PAGE_PART1) \
|
#define ATTR_TABLE(Page) (((Page) <= G_UNICODE_LAST_PAGE_PART1) \
|
||||||
? attr_table_part1[Page] \
|
? attr_table_part1[Page] \
|
||||||
@@ -1055,3 +1055,6 @@ g_unichar_get_mirror_char (gunichar ch,
|
|||||||
return found;
|
return found;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_UNIPROP_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -27,8 +27,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifdef G_PLATFORM_WIN32
|
#ifdef G_PLATFORM_WIN32
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -1767,3 +1767,6 @@ g_utf8_strreverse (const gchar *str,
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_UTF8_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -51,10 +51,10 @@
|
|||||||
*/
|
*/
|
||||||
#define G_IMPLEMENT_INLINES 1
|
#define G_IMPLEMENT_INLINES 1
|
||||||
#define __G_UTILS_C__
|
#define __G_UTILS_C__
|
||||||
#include "galias.h"
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "gprintfint.h"
|
#include "gprintfint.h"
|
||||||
#include "gthreadinit.h"
|
#include "gthreadinit.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifdef MAXPATHLEN
|
#ifdef MAXPATHLEN
|
||||||
#define G_PATH_LENGTH MAXPATHLEN
|
#define G_PATH_LENGTH MAXPATHLEN
|
||||||
@@ -2740,3 +2740,6 @@ g_get_tmp_dir (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define __G_UTILS_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "galias.h"
|
|
||||||
#include "glibconfig.h"
|
#include "glibconfig.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -53,6 +52,7 @@
|
|||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
|
#include "galias.h"
|
||||||
|
|
||||||
#ifdef G_WITH_CYGWIN
|
#ifdef G_WITH_CYGWIN
|
||||||
#include <sys/cygwin.h>
|
#include <sys/cygwin.h>
|
||||||
@@ -1466,3 +1466,6 @@ g_win32_get_windows_version (void)
|
|||||||
|
|
||||||
return windows_version;
|
return windows_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define __G_WIN32_C__
|
||||||
|
#include "galiasdef.c"
|
||||||
|
@@ -1,32 +1,37 @@
|
|||||||
#!/usr/bin/perl -w
|
#!/usr/bin/perl -w
|
||||||
|
|
||||||
|
my $do_def = 0;
|
||||||
|
|
||||||
|
if (($#ARGV >= 0) && ($ARGV[0] eq "-def")) {
|
||||||
|
shift;
|
||||||
|
$do_def = 1;
|
||||||
|
}
|
||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
/* Generated by makegalias.pl */
|
/* Generated by makegalias.pl */
|
||||||
|
|
||||||
#ifndef DISABLE_VISIBILITY
|
#ifndef DISABLE_VISIBILITY
|
||||||
|
|
||||||
#include "glibconfig.h"
|
|
||||||
|
|
||||||
#ifdef G_HAVE_GNUC_VISIBILITY
|
#ifdef G_HAVE_GNUC_VISIBILITY
|
||||||
|
|
||||||
#ifdef G_DISABLE_DEPRECATED
|
EOF
|
||||||
#define WAS_NO_G_DEPR
|
|
||||||
#endif
|
|
||||||
#undef G_DISABLE_DEPRECATED
|
|
||||||
|
|
||||||
#include "glib.h"
|
if ($do_def) {
|
||||||
|
print <<EOF
|
||||||
|
#undef IN_FILE
|
||||||
|
#define IN_FILE defined
|
||||||
|
|
||||||
#include "gprintf.h"
|
#undef IN_HEADER
|
||||||
|
#define IN_HEADER(x) 1
|
||||||
#if !defined(G_OS_UNIX) || defined(G_STDIO_NO_WRAP_ON_UNIX)
|
|
||||||
#include "gstdio.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
|
||||||
#include "gwin32.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print <<EOF
|
||||||
|
#define IN_FILE(x) 1
|
||||||
|
#define IN_HEADER defined
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
my $in_comment = 0;
|
my $in_comment = 0;
|
||||||
my $in_skipped_section = 0;
|
my $in_skipped_section = 0;
|
||||||
@@ -65,7 +70,7 @@ while (<>) {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_ =~ /^\#ifdef\s+(INCLUDE_VARIABLES|INCLUDE_INTERNAL_SYMBOLS)/)
|
if ($_ =~ /^\#ifdef\s+(INCLUDE_VARIABLES|INCLUDE_INTERNAL_SYMBOLS|ALL_FILES)/)
|
||||||
{
|
{
|
||||||
$in_skipped_section = 1;
|
$in_skipped_section = 1;
|
||||||
}
|
}
|
||||||
@@ -82,7 +87,7 @@ while (<>) {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_ =~ /^\#if.*G_STDIO_NO_WRAP_ON_UNIX/)
|
if ($_ =~ /^\#if.*(G_STDIO_NO_WRAP_ON_UNIX|IN_FILE|IN_HEADER|IN_FILE)/)
|
||||||
{
|
{
|
||||||
print $_;
|
print $_;
|
||||||
|
|
||||||
@@ -103,25 +108,26 @@ while (<>) {
|
|||||||
foreach $word (@words) {
|
foreach $word (@words) {
|
||||||
$attributes = "$attributes $word" unless $word eq "PRIVATE";
|
$attributes = "$attributes $word" unless $word eq "PRIVATE";
|
||||||
}
|
}
|
||||||
|
|
||||||
print <<EOF
|
if (!$do_def) {
|
||||||
|
print <<EOF
|
||||||
extern __typeof ($str) $alias __attribute((visibility("hidden")))$attributes;
|
extern __typeof ($str) $alias __attribute((visibility("hidden")))$attributes;
|
||||||
extern __typeof ($str) $str __attribute((alias("$alias"), visibility("default")));
|
|
||||||
\#define $str $alias
|
\#define $str $alias
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
print <<EOF
|
||||||
|
\#undef $str
|
||||||
|
extern __typeof ($str) $str __attribute((alias("$alias"), visibility("default")));
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print <<EOF;
|
print <<EOF
|
||||||
|
|
||||||
#ifdef WAS_NO_G_DEPR
|
|
||||||
#define G_DISABLE_DEPRECATED
|
|
||||||
#undef WAS_NO_G_DEPR
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* G_HAVE_GNUC_VISIBILITY */
|
#endif /* G_HAVE_GNUC_VISIBILITY */
|
||||||
|
|
||||||
#endif /* DISABLE_VISIBILITY */
|
#endif /* DISABLE_VISIBILITY */
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user