Skip to content

Fix var_dump() of instances #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,20 @@ private static function init(): void
typedef int64_t gint64;

typedef $gtype GType;

typedef struct _GData GData;

typedef struct _GTypeClass GTypeClass;

typedef struct _GTypeInstance {
GTypeClass *g_class;
} GTypeInstance;

typedef struct _GObject {
GTypeInstance g_type_instance;
unsigned int ref_count;
GData *qdata;
} GObject;
EOS;

// GLib declarations
Expand All @@ -361,14 +375,6 @@ private static function init(): void
guint64 data[2];
} GValue;

typedef struct _GData GData;

typedef struct _GTypeClass GTypeClass;

typedef struct _GTypeInstance {
GTypeClass *g_class;
} GTypeInstance;

typedef struct _GParamSpec {
GTypeInstance g_type_instance;

Expand All @@ -386,12 +392,6 @@ private static function init(): void
unsigned int param_id;
} GParamSpec;

typedef struct _GObject {
GTypeInstance g_type_instance;
unsigned int ref_count;
GData *qdata;
} GObject;

const char* g_type_name (GType gtype);
GType g_type_from_name (const char* name);

Expand Down Expand Up @@ -478,8 +478,7 @@ private static function init(): void
typedef struct _VipsImage VipsImage;
typedef struct _VipsProgress VipsProgress;

// Defined in GObject, just typedef to void*
typedef void* GObject;
// Defined in GObject, just typedef to void
typedef void GParamSpec;
typedef void GValue;

Expand Down