[glib] gobject/: fully remove gobjectalias hacks
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gobject/: fully remove gobjectalias hacks
- Date: Wed, 7 Jul 2010 23:40:42 +0000 (UTC)
commit 0fc50fa5f7424d21ff43a79838fe76ff73ad869b
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Jul 7 19:40:48 2010 -0400
gobject/: fully remove gobjectalias hacks
gobject/.gitignore | 2 -
gobject/Makefile.am | 18 +----
gobject/gbinding.c | 4 -
gobject/gboxed.c | 4 -
gobject/gclosure.c | 4 -
gobject/genums.c | 4 -
gobject/gobject.c | 6 --
gobject/gobject.symbols | 4 +-
gobject/gparam.c | 4 -
gobject/gparamspecs.c | 4 -
gobject/gsignal.c | 4 -
gobject/gsourceclosure.c | 4 -
gobject/gtype.c | 4 -
gobject/gtypemodule.c | 5 --
gobject/gtypeplugin.c | 4 -
gobject/gvalue.c | 4 -
gobject/gvaluearray.c | 4 -
gobject/gvaluetransform.c | 1 -
gobject/gvaluetypes.c | 4 -
gobject/makefile.msc.in | 8 ---
gobject/makegobjectalias.pl | 139 -------------------------------------------
gobject/pltcheck.sh | 19 ------
22 files changed, 5 insertions(+), 249 deletions(-)
---
diff --git a/gobject/.gitignore b/gobject/.gitignore
index 1c8d3e7..14bdb32 100644
--- a/gobject/.gitignore
+++ b/gobject/.gitignore
@@ -3,8 +3,6 @@ glib-mkenums
gmarshal.[ch]
gmarshal.strings
gobject-query
-gobjectalias.h
-gobjectaliasdef.c
testgobject
libgobject-gdb.py
makefile.msc
diff --git a/gobject/Makefile.am b/gobject/Makefile.am
index d6b1f25..44c886b 100644
--- a/gobject/Makefile.am
+++ b/gobject/Makefile.am
@@ -26,15 +26,9 @@ AM_CPPFLAGS = \
gobject.def: gobject.symbols
$(AM_V_GEN) (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gobject.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g' | sort) > gobject.def
-gobjectalias.h: gobject.symbols makegobjectalias.pl
- $(AM_V_GEN) $(PERL) $(srcdir)/makegobjectalias.pl < $(srcdir)/gobject.symbols > gobjectalias.h
-
-gobjectaliasdef.c: gobject.symbols makegobjectalias.pl
- $(AM_V_GEN) $(PERL) $(srcdir)/makegobjectalias.pl -def < $(srcdir)/gobject.symbols > gobjectaliasdef.c
-
if OS_LINUX
if HAVE_GNUC_VISIBILITY
-TESTS = abicheck.sh pltcheck.sh
+TESTS = abicheck.sh
endif
endif
@@ -144,7 +138,7 @@ gobject_c_sources = \
gvaluetypes.c
# these sources (also mentioned above) are generated.
-BUILT_SOURCES = gmarshal.h gmarshal.c gobjectalias.h gobjectaliasdef.c
+BUILT_SOURCES = gmarshal.h gmarshal.c
if ENABLE_DTRACE
gobject_probes.h: gobject_probes.d Makefile
@@ -182,7 +176,6 @@ EXTRA_HEADERS =
EXTRA_DIST += \
$(gobject_private_h_sources) \
$(gobject_extra_sources) \
- makegobjectalias.pl \
marshal-genstrings.pl
#
@@ -259,17 +252,14 @@ EXTRA_DIST += \
gobject.rc.in \
libgobject-gdb.py.in \
glib-mkenums.in \
- abicheck.sh \
- pltcheck.sh
+ abicheck.sh
BUILT_EXTRA_DIST = \
makefile.msc \
gobject.rc \
gmarshal.h \
gmarshal.c \
- stamp-gmarshal.h \
- gobjectalias.h \
- gobjectaliasdef.c
+ stamp-gmarshal.h
gobject-win32-res.o: gobject.rc
$(AM_V_GEN) $(WINDRES) gobject.rc $@
diff --git a/gobject/gbinding.c b/gobject/gbinding.c
index 06aa7f4..f3d773d 100644
--- a/gobject/gbinding.c
+++ b/gobject/gbinding.c
@@ -112,7 +112,6 @@
#include "glibintl.h"
-#include "gobjectalias.h"
GType
g_binding_flags_get_type (void)
@@ -952,6 +951,3 @@ g_object_bind_property (gpointer source,
NULL,
NULL, NULL);
}
-
-#define __G_BINDING_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gboxed.c b/gobject/gboxed.c
index 0685093..320f7c8 100644
--- a/gobject/gboxed.c
+++ b/gobject/gboxed.c
@@ -27,7 +27,6 @@
#include "gvaluearray.h"
#include "gclosure.h"
#include "gvaluecollector.h"
-#include "gobjectalias.h"
/**
@@ -666,6 +665,3 @@ g_value_take_boxed (GValue *value,
value_set_boxed_internal (value, boxed, FALSE, TRUE);
}
-
-#define __G_BOXED_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gclosure.c b/gobject/gclosure.c
index a976a22..1c5af30 100644
--- a/gobject/gclosure.c
+++ b/gobject/gclosure.c
@@ -28,7 +28,6 @@
#include "gclosure.h"
#include "gvalue.h"
-#include "gobjectalias.h"
/**
@@ -1237,6 +1236,3 @@ g_signal_type_cclosure_new (GType itype,
* A marshaller for a #GCClosure with a callback of type
* <literal>gchar* (*callback) (gpointer instance, GObject *arg1, gpointer arg2, gpointer user_data)</literal>.
*/
-
-#define __G_CLOSURE_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/genums.c b/gobject/genums.c
index d506a5b..ab30bef 100644
--- a/gobject/genums.c
+++ b/gobject/genums.c
@@ -28,7 +28,6 @@
#include "genums.h"
#include "gvalue.h"
#include "gvaluecollector.h"
-#include "gobjectalias.h"
/**
@@ -619,6 +618,3 @@ g_value_get_flags (const GValue *value)
return value->data[0].v_ulong;
}
-
-#define __G_ENUMS_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gobject.c b/gobject/gobject.c
index 41c70ee..77d12b7 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -34,12 +34,9 @@
#include "gparamspecs.h"
#include "gvaluetypes.h"
#include "gobject_trace.h"
-#include "gobjectalias.h"
-/* This should be included after gobjectalias.h (or pltcheck.sh will fail) */
#include "gobjectnotifyqueue.c"
-
/**
* SECTION:objects
* @short_description: The base object type
@@ -3326,6 +3323,3 @@ static void
g_initially_unowned_class_init (GInitiallyUnownedClass *klass)
{
}
-
-#define __G_OBJECT_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gobject.symbols b/gobject/gobject.symbols
index 0e3c7ee..b2cd130 100644
--- a/gobject/gobject.symbols
+++ b/gobject/gobject.symbols
@@ -1,7 +1,5 @@
/* This file lists all exported symbols. It is used to generate
- * the gobject.def file used to control exports on Windows and the
- * gobjectalias.h/gobjectaliasdef.c files used to avoid PLT entries for
- * internal uses of exported functions (see makegobjectalias.pl).
+ * the gobject.def file used to control exports on Windows.
*
* Every symbol must be included in the right
* #ifdef IN_HEADER(sym) #endif and
diff --git a/gobject/gparam.c b/gobject/gparam.c
index 139baa0..b1a871e 100644
--- a/gobject/gparam.c
+++ b/gobject/gparam.c
@@ -28,7 +28,6 @@
#include "gparam.h"
#include "gparamspecs.h"
#include "gvaluecollector.h"
-#include "gobjectalias.h"
/**
@@ -1496,6 +1495,3 @@ g_value_dup_param (const GValue *value)
return value->data[0].v_pointer ? g_param_spec_ref (value->data[0].v_pointer) : NULL;
}
-
-#define __G_PARAM_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gparamspecs.c b/gobject/gparamspecs.c
index 3bdfaf7..9e07cfe 100644
--- a/gobject/gparamspecs.c
+++ b/gobject/gparamspecs.c
@@ -29,7 +29,6 @@
#include "gparamspecs.h"
#include "gvaluecollector.h"
#include "gvaluearray.h"
-#include "gobjectalias.h"
/**
@@ -2517,6 +2516,3 @@ g_param_spec_variant (const gchar *name,
return G_PARAM_SPEC (vspec);
}
-
-#define __G_PARAMSPECS_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gsignal.c b/gobject/gsignal.c
index 9208b6e..df5a37b 100644
--- a/gobject/gsignal.c
+++ b/gobject/gsignal.c
@@ -37,7 +37,6 @@
#include "gobject.h"
#include "genums.h"
#include "gobject_trace.h"
-#include "gobjectalias.h"
/**
@@ -3442,6 +3441,3 @@ g_signal_accumulator_true_handled (GSignalInvocationHint *ihint,
/* --- compile standard marshallers --- */
#include "gmarshal.c"
-
-#define __G_SIGNAL_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gsourceclosure.c b/gobject/gsourceclosure.c
index 508961c..54e08ec 100644
--- a/gobject/gsourceclosure.c
+++ b/gobject/gsourceclosure.c
@@ -25,7 +25,6 @@
#include "gmarshal.h"
#include "gvalue.h"
#include "gvaluetypes.h"
-#include "gobjectalias.h"
GType
@@ -204,6 +203,3 @@ g_source_set_closure (GSource *source,
g_closure_set_marshal (closure, marshal);
}
}
-
-#define __G_SOURCECLOSURE_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gtype.c b/gobject/gtype.c
index 49b563a..bf89d91 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -30,7 +30,6 @@
#include "gtypeplugin.h"
#include "gvaluecollector.h"
#include "gbsearcharray.h"
-#include "gobjectalias.h"
#include "gatomicarray.h"
#include "gobject_trace.h"
@@ -4616,6 +4615,3 @@ g_type_class_get_private (GTypeClass *klass,
return G_STRUCT_MEMBER_P (klass, offset);
}
-
-#define __G_TYPE_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gtypemodule.c b/gobject/gtypemodule.c
index 1ba64ad..116dafe 100644
--- a/gobject/gtypemodule.c
+++ b/gobject/gtypemodule.c
@@ -23,7 +23,6 @@
#include "gtypeplugin.h"
#include "gtypemodule.h"
-#include "gobjectalias.h"
/**
@@ -580,7 +579,3 @@ g_type_module_register_flags (GTypeModule *module,
return g_type_module_register_type (G_TYPE_MODULE (module),
G_TYPE_FLAGS, name, &flags_type_info, 0);
}
-
-
-#define __G_TYPE_MODULE_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gtypeplugin.c b/gobject/gtypeplugin.c
index 3dbd13e..092d361 100644
--- a/gobject/gtypeplugin.c
+++ b/gobject/gtypeplugin.c
@@ -20,7 +20,6 @@
#include "config.h"
#include "gtypeplugin.h"
-#include "gobjectalias.h"
/**
@@ -205,6 +204,3 @@ g_type_plugin_complete_interface_info (GTypePlugin *plugin,
interface_type,
info);
}
-
-#define __G_TYPE_PLUGIN_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gvalue.c b/gobject/gvalue.c
index 7be9f71..9247d4c 100644
--- a/gobject/gvalue.c
+++ b/gobject/gvalue.c
@@ -28,7 +28,6 @@
#include "gvalue.h"
#include "gvaluecollector.h"
#include "gbsearcharray.h"
-#include "gobjectalias.h"
/**
@@ -554,6 +553,3 @@ g_value_transform (const GValue *src_value,
}
return FALSE;
}
-
-#define __G_VALUE_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gvaluearray.c b/gobject/gvaluearray.c
index 889a7f5..29bbd1a 100644
--- a/gobject/gvaluearray.c
+++ b/gobject/gvaluearray.c
@@ -27,7 +27,6 @@
#include <stdlib.h> /* qsort() */
#include "gvaluearray.h"
-#include "gobjectalias.h"
/**
@@ -340,6 +339,3 @@ g_value_array_sort_with_data (GValueArray *value_array,
compare_func, user_data);
return value_array;
}
-
-#define __G_VALUE_ARRAY_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/gvaluetransform.c b/gobject/gvaluetransform.c
index e1c3bba..825ba6f 100644
--- a/gobject/gvaluetransform.c
+++ b/gobject/gvaluetransform.c
@@ -23,7 +23,6 @@
#include "gvalue.h"
#include "genums.h"
-#include "gobjectalias.h"
/* same type transforms
diff --git a/gobject/gvaluetypes.c b/gobject/gvaluetypes.c
index 8f182f2..455f86c 100644
--- a/gobject/gvaluetypes.c
+++ b/gobject/gvaluetypes.c
@@ -33,7 +33,6 @@
#include "gparam.h"
#include "gboxed.h"
#include "genums.h"
-#include "gobjectalias.h"
/* --- value functions --- */
@@ -1394,6 +1393,3 @@ g_pointer_type_register_static (const gchar *name)
return type;
}
-
-#define __G_VALUETYPES_C__
-#include "gobjectaliasdef.c"
diff --git a/gobject/makefile.msc.in b/gobject/makefile.msc.in
index f518232..3f5af9b 100644
--- a/gobject/makefile.msc.in
+++ b/gobject/makefile.msc.in
@@ -17,8 +17,6 @@ all : \
glib-genmarshal.exe \
gmarshal.h \
gmarshal.c \
- gobjectalias.h \
- gobjectaliasdef.c \
gmarshal.strings \
gobject-query.exe \
libgobject-2 0- LT_CURRENT_MINUS_AGE@.dll \
@@ -42,12 +40,6 @@ gobject_OBJECTS = \
gvaluetypes.obj \
gvaluetransform.obj
-gobjectalias.h: gobject.symbols
- perl makegobjectalias.pl < gobject.symbols > gobjectalias.h
-
-gobjectaliasdef.c: gobject.symbols
- perl makegobjectalias.pl -def < gobject.symbols > gobjectaliasdef.c
-
gobject.def: gobject.symbols
echo EXPORTS > gobject.def
cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]