Declare class variables the right way.
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 26 Jul 2004 10:49:51 +0000 (10:49 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 26 Jul 2004 10:49:51 +0000 (10:49 +0000)
src/rb_evas.c
src/rb_evas.h

index 029504a3bbe943281a6ab4e1537fc420fe7a5c26..1f72188acc7dbfa7672034e03e7cd4b36741f8eb 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * $Id: rb_evas.c 38 2004-07-25 11:27:25Z tilman $
+ * $Id: rb_evas.c 43 2004-07-26 10:49:51Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
 
 #include <Evas.h>
 
 
 #include <Evas.h>
 
+#define __RB_EVAS_C
 #include "rb_evas_main.h"
 #include "rb_evas.h"
 #include "rb_evas_object.h"
 
 #include "rb_evas_main.h"
 #include "rb_evas.h"
 #include "rb_evas_object.h"
 
+VALUE cEvas;
 static VALUE parents;
 
 static void c_mark (Evas **e)
 static VALUE parents;
 
 static void c_mark (Evas **e)
index 8e6488acf6d9deaf65c26eda42bd21e1bf08cd89..6f5359a766abcbb2080f1b32f0ab9177ea97a337 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * $Id: rb_evas.h 42 2004-07-25 16:08:00Z tilman $
+ * $Id: rb_evas.h 43 2004-07-26 10:49:51Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -21,7 +21,9 @@
 #ifndef __RB_EVAS_H
 #define __RB_EVAS_H
 
 #ifndef __RB_EVAS_H
 #define __RB_EVAS_H
 
-VALUE cEvas;
+#ifndef __RB_EVAS_C
+extern VALUE cEvas;
+#endif
 
 void Init_Evas (void);
 VALUE TO_EVAS (VALUE parent, Evas *e);
 
 void Init_Evas (void);
 VALUE TO_EVAS (VALUE parent, Evas *e);