-galias.h
-galiasdef.c
gtester
libglib-gdb.py
makefile.msc
glib.def: glib.symbols
$(AM_V_GEN) (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: $(srcdir)/makegalias.pl glib.symbols
- $(AM_V_GEN) $(PERL) $(srcdir)/makegalias.pl < $(srcdir)/glib.symbols > galias.h
-
-galiasdef.c: $(srcdir)/makegalias.pl glib.symbols
- $(AM_V_GEN) $(PERL) $(srcdir)/makegalias.pl -def < $(srcdir)/glib.symbols > galiasdef.c
-
if OS_LINUX
if HAVE_GNUC_VISIBILITY
TESTS_ENVIRONMENT = GLIB_DEBUG_FLAGS="$(GLIB_DEBUG_FLAGS)"
-TESTS = abicheck.sh pltcheck.sh
+TESTS = abicheck.sh
endif
endif
-BUILT_SOURCES = galias.h galiasdef.c
-
MIRRORING_TAB_SOURCE = \
glib-mirroring-tab/Makefile \
glib-mirroring-tab/gen-mirroring-tab.c \
glib.rc.in \
gen-unicode-tables.pl \
gen-script-table.pl \
- makegalias.pl \
abicheck.sh \
- pltcheck.sh \
glib.symbols \
gregex.c \
gregex.h \
# These may be in the builddir too
BUILT_EXTRA_DIST = \
makefile.msc \
- glib.rc \
- galias.h \
- galiasdef.c
+ glib.rc
lib_LTLIBRARIES = libglib-2.0.la
sed -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp
glib_probes.o: glib_probes.d Makefile
$(DTRACE) -G -s $< -o $@
-BUILT_SOURCES += glib_probes.h glib_probes.o
+BUILT_SOURCES = glib_probes.h glib_probes.o
CLEANFILES += glib_probes.h glib_probes.h.tmp
libglib_2_0_la_LIBADD += glib_probes.o
endif
#include "gmessages.h"
#include "gqsort.h"
-#include "galias.h"
/**
* SECTION: arrays
{
g_array_sort_with_data ((GArray *) array, compare_func, user_data);
}
-
-#define __G_ARRAY_C__
-#include "galiasdef.c"
#include "gtestutils.h"
#include "gthread.h"
-#include "galias.h"
struct _GAsyncQueue
return queue->mutex;
}
-
-#define __G_ASYNCQUEUE_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
gint
g_atomic_int_exchange_and_add (volatile gint G_GNUC_MAY_ALIAS *atomic,
*atomic = newval;
__sync_synchronize ();
}
-
-#define __G_ATOMIC_C__
-#include "galiasdef.c"
#include "glib.h"
#include "gthreadprivate.h"
-#include "galias.h"
#if defined (__GNUC__)
# if defined (G_ATOMIC_I486)
g_atomic_pointer_set (atomic, newval);
}
#endif /* G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */
-
-#define __G_ATOMIC_C__
-#include "galiasdef.c"
# endif
#endif
-#include "galias.h"
#ifndef G_OS_WIN32
static void stack_trace (char **args);
}
#endif /* !G_OS_WIN32 */
-
-#define __G_BACKTRACE_C__
-#include "galiasdef.c"
#include "glib.h"
#include "glibintl.h"
-#include "galias.h"
/**
* SECTION:base64 Base64 Encoding
return (guchar *) text;
}
-
-
-#define __G_BASE64_C__
-#include "galiasdef.c"
#include "gthreadprivate.h"
#include "config.h"
-#include "galias.h"
#ifdef G_BIT_LOCK_FORCE_FUTEX_EMULATION
#undef HAVE_FUTEX
if (g_atomic_int_get (&g_bit_lock_contended[class]))
g_futex_wake (address);
}
-
-#define __G_BITLOCK_C__
-#include "galiasdef.c"
#include "gtimer.h"
#include "gutils.h"
-#include "galias.h"
/* XBEL 1.0 standard entities */
#define XBEL_VERSION "1.0"
return TRUE;
}
-
-#define __G_BOOKMARK_FILE_C__
-#include "galiasdef.c"
#include <glib/gatomic.h>
#include <glib/gmem.h>
-#include "galias.h"
typedef struct
{
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
* SECTION: caches
g_hash_table_foreach (cache->key_table, func, user_data);
}
-
-#define __G_CACHE_C__
-#include "galiasdef.c"
#include "glib.h"
#include "glibintl.h"
-#include "galias.h"
/**
* SECTION: checksum
return g_compute_checksum_for_data (checksum_type, (const guchar *) str, length);
}
-
-#define __G_CHECKSUM_C__
-#include "galiasdef.c"
#undef G_DISABLE_DEPRECATED
#include "gcompletion.h"
-#include "galias.h"
/**
* SECTION: completion
return 0;
}
#endif
-
-#define __G_COMPLETION_C__
-#include "galiasdef.c"
#error GNU libiconv not in use but included iconv.h is from libiconv
#endif
-#include "galias.h"
/* We try to terminate strings in unknown charsets with this many zero bytes
* to ensure that multibyte strings really are nul-terminated when we return
return display_name;
}
-
-#define __G_CONVERT_C__
-#include "galiasdef.c"
#include "glib.h"
#include "gdatasetprivate.h"
#include "glib_trace.h"
-#include "galias.h"
/**
* SECTION: datasets
return result;
}
-
-#define __G_DATASET_C__
-#include "galiasdef.c"
#include <windows.h>
#endif
-#include "galias.h"
GDate*
g_date_new (void)
return retval;
#endif
}
-
-#define __G_DATE_C__
-#include "galiasdef.c"
-
#include "glibintl.h"
-#include "galias.h"
#if defined (_MSC_VER) && !defined (HAVE_DIRENT_H)
#include "../build/win32/dirent/dirent.h"
#endif
g_free (dir);
}
-
-#define __G_DIR_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
va_end (ap);
}
}
-
-#define __G_ERROR_C__
-#include "galiasdef.c"
#include "gstdio.h"
#include "glibintl.h"
-#include "galias.h"
/**
* g_mkdir_with_parents:
}
#endif
-
-#define __G_FILEUTILS_C__
-#include "galiasdef.c"
#include <string.h> /* memset */
#include "glib.h"
-#include "galias.h"
/**
* SECTION: hash_tables
return retval;
}
-
-#define __G_HASH_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
/* --- functions --- */
return 0;
}
-
-#define __G_HOOK_C__
-#include "galiasdef.c"
#include <string.h>
-#include "galias.h"
/**
* SECTION:ghostutils
/* If there's nothing left to parse, then it's ok. */
return !*p;
}
-
-#define __G_HOST_UTILS_C__
-#include "galiasdef.c"
#include "glibintl.h"
-#include "galias.h"
/**
* SECTION: iochannels
{
return g_quark_from_static_string ("g-io-channel-error-quark");
}
-
-#define __G_IOCHANNEL_C__
-#include "galiasdef.c"
#include <fcntl.h>
#include "glib.h"
-#include "galias.h"
/*
* Unix IO Channels
GIOUnixChannel *unix_channel = (GIOUnixChannel *)channel;
return unix_channel->fd;
}
-
-#define __G_IO_UNIX_C__
-#include "galiasdef.c"
#include "gstdio.h"
#include "glibintl.h"
-#include "galias.h"
typedef struct _GIOWin32Channel GIOWin32Channel;
typedef struct _GIOWin32Watch GIOWin32Watch;
}
#endif
-
-#define __G_IO_WIN32_C__
-#include "galiasdef.c"
#include "gstrfuncs.h"
#include "gutils.h"
-#include "galias.h"
typedef struct _GKeyFileGroup GKeyFileGroup;
return g_string_free (string, FALSE);
}
-
-#define __G_KEY_FILE_C__
-#include "galiasdef.c"
try:
string_hash = read_global_var ("g_str_hash")
except:
- try:
- string_hash = read_global_var ("IA__g_str_hash")
- except:
- string_hash = None
+ string_hash = None
if self.val != 0 and string_hash != None and self.val["hash_func"] == string_hash:
self.keys_are_strings = True
/* This file lists all exported symbols. It is used to generate
- * the glib.def file used to control exports on Windows and the
- * galias.h/galiasdef.c files used to avoid PLT entries for
- * internal uses of exported functions (see makegalias.pl).
+ * the glib.def file used to control exports on Windows.
*
* Every symbol must be included in the right
* #ifdef IN_HEADER(sym) #endif and
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
* SECTION: linked_lists_double
{
return g_list_sort_real (list, (GFunc) compare_func, user_data);
}
-
-#define __G_LIST_C__
-#include "galiasdef.c"
#include <sys/wait.h>
#endif
-#include "galias.h"
/* Types */
{
return g_source_remove_by_funcs_user_data (&g_idle_funcs, data);
}
-
-#define __G_MAIN_C__
-#include "galiasdef.c"
#include "glibintl.h"
-#include "galias.h"
#ifndef _O_BINARY
#define _O_BINARY 0
if (g_atomic_int_dec_and_test (&file->ref_count))
g_mapped_file_destroy (file);
}
-
-#define __G_MAPPED_FILE_C__
-#include "galiasdef.c"
#include "glib.h"
#include "glibintl.h"
-#include "galias.h"
GQuark
g_markup_error_quark (void)
return FALSE;
}
-
-#define __G_MARKUP_C__
-#include "galiasdef.c"
#include "gthread.h"
#include "glib_trace.h"
-#include "galias.h"
#define MEM_PROFILE_TABLE_SIZE 4096
gmem_profile_mutex = g_mutex_new ();
#endif
}
-
-#define __G_MEM_C__
-#include "galiasdef.c"
#include "gdebug.h"
#include "gprintfint.h"
#include "gthreadprivate.h"
-#include "galias.h"
#ifdef G_OS_WIN32
#include <process.h> /* For getpid() */
const char *pretty_function,
const char *expression)
{
- /*
- * Omit the prefix used by the PLT-reduction
- * technique used in GTK+.
- */
- if (g_str_has_prefix (pretty_function, "IA__"))
- pretty_function += 4;
g_log (log_domain,
G_LOG_LEVEL_CRITICAL,
"%s: assertion `%s' failed",
const char *pretty_function,
const char *expression)
{
- /*
- * Omit the prefix used by the PLT-reduction
- * technique used in GTK+.
- */
- if (g_str_has_prefix (pretty_function, "IA__"))
- pretty_function += 4;
g_log (log_domain,
G_LOG_LEVEL_ERROR,
expression
g_log_set_always_fatal (fatal_mask);
}
}
-
-#define __G_MESSAGES_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
* SECTION: trees-nary
}
}
}
-
-#define __G_NODE_C__
-#include "galiasdef.c"
#include "config.h"
#include <stdlib.h>
#include "glib/glib.h"
-#include "glib/galias.h"
/* Private namespace for gnulib functions */
#define asnprintf _g_gnulib_asnprintf
#include "glibintl.h"
#include "gprintf.h"
-#include "galias.h"
#include <string.h>
#include <stdlib.h>
return context->description;
}
-
-
-#define __G_OPTION_C__
-#include "galiasdef.c"
#include "gmem.h"
#include "gunicode.h"
#include "gutils.h"
-#include "galias.h"
/**
* SECTION: patterns
return ergo;
}
-
-#define __G_PATTERN_C__
-#include "galiasdef.c"
#include <windows.h>
#endif /* G_OS_WIN32 */
-#include "galias.h"
#ifdef G_MAIN_POLL_DEBUG
extern gboolean _g_main_poll_debug;
#endif /* !G_OS_WIN32 */
#endif /* !HAVE_POLL */
-
-#define __G_POLL_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
static const guint g_primes[] =
return g_primes[g_nprimes - 1];
}
-
-#define __G_PRIMES_C__
-#include "galiasdef.c"
#include "gprintf.h"
#include "gprintfint.h"
-#include "galias.h"
/**
* g_printf:
return len;
}
-
-#define __G_PRINTF_C__
-#include "galiasdef.c"
#include <string.h>
#include "glib.h"
-#include "galias.h"
/* Byte-wise swap two items of size SIZE. */
#define SWAP(a, b, size) \
}
}
}
-
-#define __G_QSORT_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
* g_queue_new:
else
g_queue_push_tail (queue, data);
}
-
-#define __G_QUEUE_C__
-#include "galiasdef.c"
#include "glib.h"
#include "gthreadprivate.h"
-#include "galias.h"
#ifdef G_OS_WIN32
#include <process.h> /* For getpid() */
g_rand_set_seed (global_random, seed);
G_UNLOCK (global_random);
}
-
-
-#define __G_RAND_C__
-#include "galiasdef.c"
#define PCRE_ERROR_NULLWSLIMIT (-22)
#endif
-#include "galias.h"
/* Mask of all the possible values for GRegexCompileFlags. */
#define G_REGEX_COMPILE_MASK (G_REGEX_CASELESS | \
return g_string_free (escaped, FALSE);
}
-
-#define __G_REGEX_C__
-#include "galiasdef.c"
#undef G_DISABLE_DEPRECATED
#include "grel.h"
-#include "galias.h"
/**
* SECTION: relations
}
}
-
-#define __G_REL_C__
-#include "galiasdef.c"
#include "glib.h"
#include "gprintfint.h"
-#include "galias.h"
#ifdef G_OS_WIN32
#include <io.h> /* For _read() */
*token_p = token;
*value_p = value;
}
-
-#define __G_SCANNER_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
* SECTION: sequence
node_insert_before (closest, new);
}
-
-
-#define __G_SEQUENCE_C__
-#include "galiasdef.c"
#endif
#include "glibintl.h"
-#include "galias.h"
/**
* SECTION: shell
return FALSE;
}
-
-#define __G_SHELL_C__
-#include "galiasdef.c"
#include "gthreadprivate.h"
#include "glib.h"
#include "glib_trace.h"
-#include "galias.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* sysconf() */
#endif
*/
}
#endif /* G_ENABLE_DEBUG */
-
-#define __G_SLICE_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
* SECTION: linked_lists_single
{
return g_slist_sort_real (list, (GFunc) compare_func, user_data);
}
-
-#define __G_SLIST_C__
-#include "galiasdef.c"
#include "glib.h"
#include "gprintfint.h"
#include "glibintl.h"
-#include "galias.h"
#include <string.h>
#include <stdlib.h>
#endif /* !_WIN64 */
#endif /* !GSPAWN_HELPER */
-
-#define __G_SPAWN_C__
-#include "galiasdef.c"
#include "glib.h"
#include "glibintl.h"
-#include "galias.h"
static gint g_execute (const gchar *file,
gchar **argv,
g_spawn_close_pid (GPid pid)
{
}
-
-#define __G_SPAWN_C__
-#include "galiasdef.c"
#include "gstdio.h"
-#include "galias.h"
#if !defined (G_OS_UNIX) && !defined (G_OS_WIN32) && !defined (G_OS_BEOS)
#error Please port this to your operating system
return utime (filename, utb);
#endif
}
-
-#define __G_STDIO_C__
-#include "galiasdef.c"
#include "gprintfint.h"
#include "glibintl.h"
-#include "galias.h"
#ifdef G_OS_WIN32
#include <windows.h>
return dngettext (domain, msgid, msgid_plural, n);
}
-
-
-#define __G_STRFUNCS_C__
-#include "galiasdef.c"
#include "glib.h"
#include "gprintf.h"
-#include "galias.h"
/**
* SECTION: string_chunks
g_string_append_vprintf (string, format, args);
va_end (args);
}
-
-#define __G_STRING_C__
-#include "galiasdef.c"
#include "gstrfuncs.h"
#include "gtimer.h"
-#include "galias.h"
/* Global variable for storing assertion messages; this is the counterpart to
* glibc's (private) __abort_msg variable, and allows developers and crash
* Since: 2.16
**/
/* --- macros docs END --- */
-
-#define __G_TEST_UTILS_C__
-#include "galiasdef.c"
#include "gtestutils.h"
#include "gtimer.h"
-#include "galias.h"
/**
* SECTION: threads
{
return g_thread_supported ();
}
-
-#define __G_THREAD_C__
-#include "galiasdef.c"
-
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
* SECTION: thread_pools
{
return g_atomic_int_get (&max_idle_time);
}
-
-#define __G_THREADPOOL_C__
-#include "galiasdef.c"
#include "glib.h"
#include "gthread.h"
-#include "galias.h"
/**
* SECTION: timers
return retval;
}
-
-#define __G_TIMER_C__
-#include "galiasdef.c"
#include "config.h"
#include "glib.h"
-#include "galias.h"
/**
* SECTION: trees-binary
g_tree_node_dump (tree->root, 0);
}
#endif
-
-
-#define __G_TREE_C__
-#include "galiasdef.c"
-
#include "glib.h"
#include "gunibreak.h"
-#include "galias.h"
#define TPROP_PART1(Page, Char) \
((break_property_table_part1[Page] >= G_UNICODE_MAX_TABLE_INDEX) \
{
return PROP (c);
}
-
-#define __G_UNIBREAK_C__
-#include "galiasdef.c"
#include "glib.h"
#include "gunicodeprivate.h"
-#include "galias.h"
#ifdef _MSC_VER
/* Workaround for bug in MSVCR80.DLL */
return carbon_collate_key_for_filename (str, len);
#endif
}
-
-
-#define __G_UNICOLLATE_C__
-#include "galiasdef.c"
#include "gunidecomp.h"
#include "gunicomp.h"
#include "gunicodeprivate.h"
-#include "galias.h"
#define CC_PART1(Page, Char) \
return result;
}
-
-#define __G_UNIDECOMP_C__
-#include "galiasdef.c"
#include "gmirroringtable.h"
#include "gscripttable.h"
#include "gunicodeprivate.h"
-#include "galias.h"
#define ATTR_TABLE(Page) (((Page) <= G_UNICODE_LAST_PAGE_PART1) \
? attr_table_part1[Page] \
else
return g_unichar_get_script_bsearch (ch);
}
-
-
-#define __G_UNIPROP_C__
-#include "galiasdef.c"
#include <string.h>
#include "config.h"
-#include "galias.h"
/**
* SECTION:gurifuncs
return g_string_free (s, FALSE);
}
-
-#define __G_URI_FUNCS_C__
-#include "galiasdef.c"
#include "libcharset/libcharset.h"
#include "glibintl.h"
-#include "galias.h"
#define UTF8_COMPUTE(Char, Mask, Len) \
if (Char < 128) \
return g_string_free (string, FALSE);
}
-
-
-#define __G_UTF8_C__
-#include "galiasdef.c"
#include "gprintfint.h"
#include "gthreadprivate.h"
#include "glibintl.h"
-#include "galias.h"
#ifdef MAXPATHLEN
#define G_PATH_LENGTH MAXPATHLEN
}
#endif
-
-#define __G_UTILS_C__
-#include "galiasdef.c"
#include <glib/gmem.h>
#include <string.h>
-#include "galias.h"
/*
* This file includes the structure definition for GVariant and a small
return (value->state & STATE_TRUSTED) != 0;
}
-
-#define __G_VARIANT_CORE_C__
-#include "galiasdef.c"
#include <errno.h>
#include <glib.h>
-#include "galias.h"
/*
* two-pass algorithm
g_variant_builder_add_value (builder, g_variant_new_parsed_va (format, &ap));
va_end (ap);
}
-
-
-#define __G_VARIANT_PARSER_C__
-#include "galiasdef.c"
#include <string.h>
-#include "galias.h"
/* GVariantSerialiser
*
}
/* Epilogue {{{1 */
-#define __G_VARIANT_SERIALISER_C__
-#include "galiasdef.c"
-
/* vim:set foldmethod=marker: */
#include <string.h>
-#include "galias.h"
/**
* SECTION: gvariant
}
/* Epilogue {{{1 */
-#define __G_VARIANT_C__
-#include "galiasdef.c"
-
/* vim:set foldmethod=marker: */
#include <string.h>
-#include "galias.h"
/**
* SECTION: gvarianttype
g_return_val_if_fail (g_variant_type_string_is_valid (type_string), NULL);
return (const GVariantType *) type_string;
}
-
-#define __G_VARIANT_TYPE_C__
-#include "galiasdef.c"
#include <glib/gthread.h>
#include <glib/ghash.h>
-#include "galias.h"
/* < private >
* GVariantTypeInfo:
{
g_assert (g_variant_type_info_table == NULL);
}
-
-#define __G_VARIANT_TYPE_INFO_C__
-#include "galiasdef.c"
#endif /* _MSC_VER || __DMC__ */
#include "glib.h"
-#include "galias.h"
#ifdef G_WITH_CYGWIN
#include <sys/cygwin.h>
}
return retval;
}
-
-#define __G_WIN32_C__
-#include "galiasdef.c"
all : \
..\config.h \
..\glibconfig.h \
- galias.h \
- galiasdef.c \
gnulib\gnulib.lib \
pcre\pcre.lib \
libglib-2.0-0.dll \
..\config.h: ..\config.h.win32
copy ..\config.h.win32 ..\config.h
-galias.h: glib.symbols
- perl makegalias.pl < glib.symbols > galias.h
-
-galiasdef.c: glib.symbols
- perl makegalias.pl -def < glib.symbols > galiasdef.c
-
localcharset.obj : libcharset\localcharset.c
$(CC) $(CFLAGS) -DLIBDIR=\".\" -c libcharset\localcharset.c
+++ /dev/null
-#!/usr/bin/perl -w
-
-exit 0;
-
-my $do_def = 0;
-
-if (($#ARGV >= 0) && ($ARGV[0] eq "-def")) {
- shift;
- $do_def = 1;
-}
-
-print <<EOF;
-/* Generated by makegalias.pl */
-
-#ifndef DISABLE_VISIBILITY
-
-#include "glibconfig.h"
-
-#ifdef G_HAVE_GNUC_VISIBILITY
-
-EOF
-
-if ($do_def) {
- print <<EOF
-#undef IN_FILE
-#define IN_FILE defined
-
-#undef IN_HEADER
-#define IN_HEADER(x) 1
-
-EOF
-}
-else {
- print <<EOF
-#define IN_FILE(x) 1
-#define IN_HEADER defined
-
-EOF
-}
-
-my $in_comment = 0;
-my $in_skipped_section = 0;
-
-while (<>) {
-
- # ignore empty lines
- next if /^\s*$/;
-
- # skip comments
- if ($_ =~ /^\s*\/\*/)
- {
- $in_comment = 1;
- }
-
- if ($in_comment)
- {
- if ($_ =~ /\*\/\s$/)
- {
- $in_comment = 0;
- }
-
- next;
- }
-
- # handle ifdefs
- if ($_ =~ /^\#endif/)
- {
- if (!$in_skipped_section)
- {
- print $_;
- }
-
- $in_skipped_section = 0;
-
- next;
- }
-
- if ($_ =~ /^\#ifdef\s+(INCLUDE_VARIABLES|INCLUDE_INTERNAL_SYMBOLS|ALL_FILES)/)
- {
- $in_skipped_section = 1;
- }
-
- if ($in_skipped_section)
- {
- next;
- }
-
- if ($_ =~ /^\#ifn?def\s+(G|DISABLE_MEM_POOLS|_WIN64)/)
- {
- print $_;
-
- next;
- }
-
- if ($_ =~ /^\#if.*(G_STDIO_NO_WRAP_ON_UNIX|IN_FILE|IN_HEADER|IN_FILE)/)
- {
- print $_;
-
- next;
- }
-
- chop;
- my $str = $_;
- my @words;
- my $attributes = "";
-
- @words = split(/ /, $str);
- $str = shift(@words);
- chomp($str);
- my $alias = "IA__".$str;
-
- # Drop any Win32 specific .def file syntax, but keep attributes
- foreach $word (@words) {
- $attributes = "$attributes $word" unless $word eq "PRIVATE";
- }
-
- if (!$do_def) {
- print <<EOF
-extern __typeof ($str) $alias __attribute((visibility("hidden")))$attributes;
-\#define $str $alias
-
-EOF
- }
- else {
- print <<EOF
-\#undef $str
-extern __typeof ($str) $str __attribute((alias("$alias"), visibility("default")));
-
-EOF
- }
-}
-
-print <<EOF
-
-#endif /* G_HAVE_GNUC_VISIBILITY */
-#endif /* DISABLE_VISIBILITY */
-EOF
-
} pcre_callout_block;
#include "glib.h"
-#include "galias.h"
#define pcre_malloc g_try_malloc
#define pcre_free g_free
+++ /dev/null
-#!/bin/sh
-
-exit 0
-
-LANG=C
-
-status=0
-
-if ! which readelf 2>/dev/null >/dev/null; then
- echo "'readelf' not found; skipping test"
- exit 0
-fi
-
-for so in .libs/lib*.so; do
- echo Checking $so for local PLT entries
- # g_string_insert_c is used in g_string_append_c_inline
- # unaliased. Couldn't find a way to fix it.
- # Same for g_once_init_enter
- readelf -r $so | grep 'JU\?MP_SLOT\?' | \
- grep -v '\<g_string_insert_c\>' | \
- grep -v '\<g_atomic_[a-z]*_[sg]et\>' | \
- grep -v '\<g_once_init_enter_impl\>' | \
- grep -v '\<g_bit_' | \
- grep '\<g_' && status=1
-done
-
-exit $status
diff -r 0f4042339eb5 pcre/pcre.h
--- pcre/pcre.h Tue Jul 25 22:39:16 2006 +0200
+++ pcre/pcre.h Tue Jul 25 22:52:10 2006 +0200
-@@ -233,25 +233,14 @@ typedef struct pcre_callout_block {
+@@ -233,25 +233,13 @@ typedef struct pcre_callout_block {
/* ------------------------------------------------------------------ */
} pcre_callout_block;
-PCRE_DATA_SCOPE void *(*pcre_stack_malloc)(size_t);
-PCRE_DATA_SCOPE void (*pcre_stack_free)(void *);
+#include "glib.h"
-+#include "galias.h"
+
+#define pcre_malloc g_try_malloc
+#define pcre_free g_free
return 0;\r
}\r
#endif\r
-\r