[Gridflow-cvs] [svn] commit: r3296 - /trunk/base/grid.h

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Mar 25 20:46:49 EDT 2008


Author: matju
Date: Tue Mar 25 20:46:49 2008
New Revision: 3296

Log:
add \class Format in grid.h

Modified:
    trunk/base/grid.h

Modified: trunk/base/grid.h
==============================================================================
--- trunk/base/grid.h (original)
+++ trunk/base/grid.h Tue Mar 25 20:46:49 2008
@@ -907,8 +907,6 @@
 				ai+i, a->v[ai+i],
 				bi+i, b->v[bi+i]);}}}
 
-typedef GridObject Format;
-
 \class Pointer : CObject {
 	void *p;
 	Pointer() { RAISE("trying to construct a (ruby) Pointer without an argument"); }
@@ -921,4 +919,13 @@
 #define install_format(name,ins,outs,mode,suff) rb_funcall(rself,SI(install_format),5, \
 	rb_str_new2(name),INT2NUM(ins),INT2NUM(outs), INT2NUM(mode), rb_str_new2(suff))
 #define SUPER rb_call_super(argc,argv);
+
+\class Format : GridObject {
+	int fd;
+	FILE *f;
+	Format() : fd(-1), f(0) {}
+	void open (String mode, String filename);
+	void close ();
+};
+
 #endif // __GF_GRID_H



More information about the Gridflow-cvs mailing list