projects
/
ruby-ecore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use global variables for the Ruby classes.
[ruby-ecore.git]
/
src
/
ecore_evas
/
rb_fb.c
diff --git
a/src/ecore_evas/rb_fb.c
b/src/ecore_evas/rb_fb.c
index 86b12c24a3bedcd804ea1da6f599b0a438ed10c2..00635defd22d1f6071db46ddd317e814db4a0884 100644
(file)
--- a/
src/ecore_evas/rb_fb.c
+++ b/
src/ecore_evas/rb_fb.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id$
+ * $Id
: rb_fb.c 25 2004-06-26 23:07:01Z tilman
$
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-25,8
+25,6
@@
#include "rb_ecore_evas_main.h"
#include "rb_ecore_evas.h"
#include "rb_ecore_evas_main.h"
#include "rb_ecore_evas.h"
-VALUE cFb;
-
static VALUE c_init (int argc, VALUE *argv, VALUE self)
{
VALUE disp, rot, w, h;
static VALUE c_init (int argc, VALUE *argv, VALUE self)
{
VALUE disp, rot, w, h;
@@
-78,7
+76,7
@@
static VALUE c_new (int argc, VALUE *argv, VALUE klass)
void Init_Fb (void)
{
void Init_Fb (void)
{
- cFb = rb_define_class_under (mEvas, "Fb", cEcoreEvas);
+
VALUE
cFb = rb_define_class_under (mEvas, "Fb", cEcoreEvas);
rb_define_singleton_method (cFb, "new", c_new, -1);
rb_define_method (cFb, "initialize", c_init, -1);
rb_define_singleton_method (cFb, "new", c_new, -1);
rb_define_method (cFb, "initialize", c_init, -1);