Removed ONCE optim in gtkclass (fixed regression on Kega-Fusion)

This commit is contained in:
ptitSeb 2023-03-07 13:15:30 +01:00
parent 42a9a40ac4
commit a320c37681

View File

@ -41,13 +41,6 @@ typedef struct sigoffset_array_s {
KHASH_MAP_INIT_INT(sigoffset, sigoffset_array_t)
static kh_sigoffset_t *my_sigoffset = NULL;
#define ONCE() \
static int done = 0;\
if(done) \
return; \
done = 1
// ---- Defining the multiple functions now -----
#define SUPER() \
GO(0) \
@ -171,7 +164,6 @@ static void unwrapGObjectClass(my_GObjectClass_t* class)
// autobridge
static void bridgeGObjectClass(my_GObjectClass_t* class)
{
ONCE();
#define GO(A, W) autobridge_##A##_GObject (W, class->A)
SUPERGO()
#undef GO
@ -216,7 +208,6 @@ static void unwrapGInitiallyUnownedClass(my_GInitiallyUnownedClass_t* class)
// autobridge
static void bridgeGInitiallyUnownedClass(my_GInitiallyUnownedClass_t* class)
{
ONCE();
#define GO(A, W) autobridge_##A##_GInitiallyUnowned (W, class->A)
SUPERGO()
#undef GO
@ -252,7 +243,6 @@ static void unwrapGtkObjectClass(my_GtkObjectClass_t* class)
// autobridge
static void bridgeGtkObjectClass(my_GtkObjectClass_t* class)
{
ONCE();
bridgeGObjectClass(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkObject (W, class->A)
SUPERGO()
@ -417,7 +407,6 @@ static void unwrapGtkWidget2Class(my_GtkWidget2Class_t* class)
// autobridge
static void bridgeGtkWidget2Class(my_GtkWidget2Class_t* class)
{
ONCE();
bridgeGtkObjectClass(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkWidget2 (W, class->A)
SUPERGO()
@ -615,7 +604,6 @@ static void unwrapGtkWidget3Class(my_GtkWidget3Class_t* class)
// autobridge
static void bridgeGtkWidget3Class(my_GtkWidget3Class_t* class)
{
ONCE();
bridgeGInitiallyUnownedClass(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkWidget3 (W, class->A)
SUPERGO()
@ -666,7 +654,6 @@ static void unwrapGtkContainer2Class(my_GtkContainer2Class_t* class)
// autobridge
static void bridgeGtkContainer2Class(my_GtkContainer2Class_t* class)
{
ONCE();
bridgeGtkWidget2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkContainer2 (W, class->A)
SUPERGO()
@ -711,7 +698,6 @@ static void unwrapGtkActionClass(my_GtkActionClass_t* class)
// autobridge
static void bridgeGtkActionClass(my_GtkActionClass_t* class)
{
ONCE();
bridgeGObjectClass(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkAction (W, class->A)
SUPERGO()
@ -734,7 +720,6 @@ static void unwrapGtkMisc2Class(my_GtkMisc2Class_t* class)
// autobridge
static void bridgeGtkMisc2Class(my_GtkMisc2Class_t* class)
{
ONCE();
bridgeGtkWidget2Class(&class->parent_class);
}
@ -771,7 +756,6 @@ static void unwrapGtkLabel2Class(my_GtkLabel2Class_t* class)
// autobridge
static void bridgeGtkLabel2Class(my_GtkLabel2Class_t* class)
{
ONCE();
bridgeGtkMisc2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkMisc2 (W, class->A)
SUPERGO()
@ -835,7 +819,6 @@ static void unwrapGtkTreeView2Class(my_GtkTreeView2Class_t* class)
// autobridge
static void bridgeGtkTreeView2Class(my_GtkTreeView2Class_t* class)
{
ONCE();
bridgeGtkContainer2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkTreeView2 (W, class->A)
SUPERGO()
@ -859,7 +842,6 @@ static void unwrapGtkBin2Class(my_GtkBin2Class_t* class)
// autobridge
static void bridgeGtkBin2Class(my_GtkBin2Class_t* class)
{
ONCE();
bridgeGtkContainer2Class(&class->parent_class);
}
@ -900,7 +882,6 @@ static void unwrapGtkWindow2Class(my_GtkWindow2Class_t* class)
// autobridge
static void bridgeGtkWindow2Class(my_GtkWindow2Class_t* class)
{
ONCE();
bridgeGtkBin2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkWindow2 (W, class->A)
SUPERGO()
@ -923,7 +904,6 @@ static void unwrapGtkTable2Class(my_GtkTable2Class_t* class)
// autobridge
static void bridgeGtkTable2Class(my_GtkTable2Class_t* class)
{
ONCE();
bridgeGtkContainer2Class(&class->parent_class);
}
@ -942,7 +922,6 @@ static void unwrapGtkFixed2Class(my_GtkFixed2Class_t* class)
// autobridge
static void bridgeGtkFixed2Class(my_GtkFixed2Class_t* class)
{
ONCE();
bridgeGtkContainer2Class(&class->parent_class);
}
@ -961,7 +940,6 @@ static void unwrapMetaFrames2Class(my_MetaFrames2Class_t* class)
// autobridge
static void bridgeMetaFrames2Class(my_MetaFrames2Class_t* class)
{
ONCE();
bridgeGtkWindow2Class(&class->parent_class);
}
@ -994,7 +972,6 @@ static void unwrapGDBusObjectManagerClientClass(my_GDBusObjectManagerClientClass
// autobridge
static void bridgeGDBusObjectManagerClientClass(my_GDBusObjectManagerClientClass_t* class)
{
ONCE();
bridgeGObjectClass(&class->parent_class);
#define GO(A, W) autobridge_##A##_GDBusObjectManagerClient (W, class->A)
SUPERGO()
@ -1040,7 +1017,6 @@ static void unwrapGtkButton2Class(my_GtkButton2Class_t* class)
// autobridge
static void bridgeGtkButton2Class(my_GtkButton2Class_t* class)
{
ONCE();
bridgeGtkBin2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkButton2 (W, class->A)
SUPERGO()
@ -1078,7 +1054,6 @@ static void unwrapGtkComboBox2Class(my_GtkComboBox2Class_t* class)
// autobridge
static void bridgeGtkComboBox2Class(my_GtkComboBox2Class_t* class)
{
ONCE();
bridgeGtkBin2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkComboBox2 (W, class->A)
SUPERGO()
@ -1114,7 +1089,6 @@ static void unwrapGtkToggleButton2Class(my_GtkToggleButton2Class_t* class)
// autobridge
static void bridgeGtkToggleButton2Class(my_GtkToggleButton2Class_t* class)
{
ONCE();
bridgeGtkButton2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkToggleButton2 (W, class->A)
SUPERGO()
@ -1150,7 +1124,6 @@ static void unwrapGtkCheckButton2Class(my_GtkCheckButton2Class_t* class)
// autobridge
static void bridgeGtkCheckButton2Class(my_GtkCheckButton2Class_t* class)
{
ONCE();
bridgeGtkToggleButton2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkCheckButton2 (W, class->A)
SUPERGO()
@ -1205,7 +1178,6 @@ static void unwrapGtkEntry2Class(my_GtkEntry2Class_t* class)
// autobridge
static void bridgeGtkEntry2Class(my_GtkEntry2Class_t* class)
{
ONCE();
bridgeGtkWidget2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkEntry2 (W, class->A)
SUPERGO()
@ -1248,7 +1220,6 @@ static void unwrapGtkSpinButton2Class(my_GtkSpinButton2Class_t* class)
// autobridge
static void bridgeGtkSpinButton2Class(my_GtkSpinButton2Class_t* class)
{
ONCE();
bridgeGtkEntry2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkSpinButton2 (W, class->A)
SUPERGO()
@ -1287,7 +1258,6 @@ static void unwrapGtkProgress2Class(my_GtkProgress2Class_t* class)
// autobridge
static void bridgeGtkProgress2Class(my_GtkProgress2Class_t* class)
{
ONCE();
bridgeGtkWidget2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkProgress2 (W, class->A)
SUPERGO()
@ -1320,7 +1290,6 @@ static void unwrapGtkProgressBar2Class(my_GtkProgressBar2Class_t* class)
// autobridge
static void bridgeGtkProgressBar2Class(my_GtkProgressBar2Class_t* class)
{
ONCE();
bridgeGtkProgress2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkProgressBar2 (W, class->A)
SUPERGO()
@ -1355,7 +1324,6 @@ static void unwrapGtkFrame2Class(my_GtkFrame2Class_t* class)
// autobridge
static void bridgeGtkFrame2Class(my_GtkFrame2Class_t* class)
{
ONCE();
bridgeGtkBin2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkFrame2 (W, class->A)
SUPERGO()
@ -1406,7 +1374,6 @@ static void unwrapGtkMenuShell2Class(my_GtkMenuShell2Class_t* class)
// autobridge
static void bridgeGtkMenuShell2Class(my_GtkMenuShell2Class_t* class)
{
ONCE();
bridgeGtkContainer2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkMenuShell2 (W, class->A)
SUPERGO()
@ -1439,7 +1406,6 @@ static void unwrapGtkMenuBar2Class(my_GtkMenuBar2Class_t* class)
// autobridge
static void bridgeGtkMenuBar2Class(my_GtkMenuBar2Class_t* class)
{
ONCE();
bridgeGtkMenuShell2Class(&class->parent_class);
#define GO(A, W) autobridge_##A##_GtkMenuBar2 (W, class->A)
SUPERGO()