Hey all, here's some changes for compatibility with latest Ruby 1.9.1 preview 2

Hi,

Please review these changes and apply them as you see fit.

I am not entirely sure about the correctness of this patch so
review it, please. :slight_smile:

I could not come up with something better due to my limited
C knowledge.

Thanks!

Cheers,
Joao

Index: glib/src/rbgobj_type.c

— glib/src/rbgobj_type.c (revisão 3447)
+++ glib/src/rbgobj_type.c (cópia de trabalho)
@@ -28,6 +28,7 @@
static ID id_superclass;
static VALUE gtype_to_cinfo;
static VALUE klass_to_cinfo;
+static VALUE rb_thread_critical;

static GHashTable* dynamic_gtype_list;
typedef struct {
Index: glib/src/rbgcompat.h

— glib/src/rbgcompat.h (revisão 3447)
+++ glib/src/rbgcompat.h (cópia de trabalho)
@@ -25,6 +25,8 @@

extern void rbgobj_fund_define_fundamental(RGFundamental *fundamental);

+#define rb_progname (rb_argv0)
+
G_END_DECLS

#endif

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Hey all, here’s some changes for compatibility
with latest Ruby 1.9.1 preview 2” on Wed, 3 Dec 2008 04:45:09 -0300,
“Joao P.” [email protected] wrote:

static GHashTable* dynamic_gtype_list;
I don’t know that we can just ignore rb_thread_critical. I’m
asking it in ruby-dev.

G_END_DECLS

#endif

We should use rb_argv0 directory instead of defining
rb_progname.
I’ll do it (or apply a patch from someone :wink: later.

Thanks,

kou