[Gridflow-cvs] [svn] commit: r3244 - /trunk/rubyext.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Mar 19 20:23:22 EDT 2008


Author: matju
Date: Wed Mar 19 20:23:22 2008
New Revision: 3244

Log:
shuffling some lines around

Modified:
    trunk/rubyext.c

Modified: trunk/rubyext.c
==============================================================================
--- trunk/rubyext.c (original)
+++ trunk/rubyext.c Wed Mar 19 20:23:22 2008
@@ -110,15 +110,6 @@
 static Ruby mGridFlow2=0;
 Ruby cPointer=0;
 
-\class Pointer < CObject
-\def Ruby ptr () { return LONG2NUM(((long)p)); }
-\classinfo {
-	IEVAL(rself,
-"self.module_eval{"
-"def inspect; p=('%08x'%ptr).gsub(/^\\.\\.f/,''); \"#<Pointer:#{p}>\" % ptr; end;"
-"alias to_s inspect }"
-);}
-\end class Pointer
 Ruby Pointer_s_new (void *ptr) {
 	Pointer *self = new Pointer(ptr);
 	return self->rself = Data_Wrap_Struct(cPointer, 0, CObject_free, self);
@@ -747,8 +738,7 @@
 
 //****************************************************************
 
-\class Clock < CObject
-struct Clock : CObject {
+\class Clock < CObject {
 	t_clock *serf;
 	Ruby owner; /* copy of ptr that serf already has, for marking */
 	\decl void set  (double   systime);
@@ -774,6 +764,18 @@
 
 \classinfo {}
 \end class Clock
+
+//****************************************************************
+
+\class Pointer < CObject
+\def Ruby ptr () { return LONG2NUM(((long)p)); }
+\classinfo {
+	IEVAL(rself,
+"self.module_eval{"
+"def inspect; p=('%08x'%ptr).gsub(/^\\.\\.f/,''); \"#<Pointer:#{p}>\" % ptr; end;"
+"alias to_s inspect }"
+);}
+\end class Pointer
 
 //****************************************************************
 



More information about the Gridflow-cvs mailing list