Declare class variables the right way.
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 26 Jul 2004 11:00:14 +0000 (11:00 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 26 Jul 2004 11:00:14 +0000 (11:00 +0000)
src/ecore/rb_ecore.c
src/ecore/rb_ecore.h
src/ecore_evas/rb_ecore_evas.c
src/ecore_evas/rb_ecore_evas.h

index 7cd8641ccd6456e2fe0f63d0a9f732ac3e20ac28..5a30c628118cb6fe1348fcfe4ebd108bd2fa8c7d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_ecore.c 27 2004-07-08 18:25:05Z tilman $
+ * $Id: rb_ecore.c 45 2004-07-26 11:00:14Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
 
 #include <Ecore.h>
 
+#define __RB_ECORE_C
 #include "rb_ecore.h"
 #include "rb_timer.h"
 #include "rb_idler.h"
 
+VALUE mEcore;
+
 #ifdef DEBUG
 static VALUE m_init (VALUE self)
 {
index 115aca81efc4fa0f133df4d2496b425f970d15f5..2c5d8165dca4cb6905fbb389f679c48ea9ee4c30 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_ecore.h 40 2004-07-25 13:14:34Z tilman $
+ * $Id: rb_ecore.h 45 2004-07-26 11:00:14Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -52,6 +52,8 @@
 \
        return rb_str_new2 (buf);
 
+#ifndef __RB_ECORE_C
 VALUE mEcore;
+#endif
 
 #endif
index e59b2b9a406ef4e0c1a6fee98fa73aeee2fa3798..5362cf88f3361ca7e0934399ba6b8ee01d9a2d26 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_ecore_evas.c 40 2004-07-25 13:14:34Z tilman $
+ * $Id: rb_ecore_evas.c 45 2004-07-26 11:00:14Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -24,6 +24,7 @@
 #include <Ecore_Evas.h>
 #include <rb_evas.h>
 
+#define __RB_ECORE_EVAS_C
 #include "../ecore/rb_ecore.h"
 #include "rb_ecore_evas_main.h"
 #include "rb_ecore_evas.h"
@@ -64,6 +65,7 @@
 #define CALLBACK_ADD(mod, name) \
        rb_define_method ((mod), "on_"#name, c_on_##name, 0);
 
+VALUE cEcoreEvas;
 static VALUE evases, callbacks, objects;
 
 /* called by the child classes */
index b95c2dd585955a333d02e31cceb38316df775049..25d4209d31b99e7fd5f06ef9039b2b4d9c6f6d84 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_ecore_evas.h 9 2004-06-19 19:53:47Z tilman $
+ * $Id: rb_ecore_evas.h 45 2004-07-26 11:00:14Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -21,7 +21,9 @@
 #ifndef __RB_ECORE_EVAS_H
 #define __RB_ECORE_EVAS_H
 
+#ifndef __RB_ECORE_EVAS_C
 VALUE cEcoreEvas;
+#endif
 
 void Init_EcoreEvas (void);