[Gridflow-cvs] [svn] commit: r4855 - /trunk/src/gridflow.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Nov 11 00:30:21 EST 2009


Author: matju
Date: Wed Nov 11 00:30:21 2009
New Revision: 4855

Log:
an ifdef named DESIRE.

Modified:
    trunk/src/gridflow.cxx

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Wed Nov 11 00:30:21 2009
@@ -740,8 +740,12 @@
 	fclasses[string(name)] = fclass;
 	class_addcreator((t_newmethod)BFObject_new,gensym((char *)name),A_GIMME,0);
 }
-typedef struct _methodentry
-{
+
+#ifdef DESIRE
+#define c_nmethod nmethod
+#define c_methods methods
+#else
+typedef struct _methodentry {
     t_symbol *me_name;
     t_gotfn me_fun;
     t_atomtype me_arg[MAXPDARG+1];
@@ -755,6 +759,7 @@
     int c_nmethod;                      /* number of methods */
     // ...
 };
+#endif
 void add_creator3(FClass *fclass, const char *name) {
 	fclasses[string(name)] = fclass;
 	t_class *c = pd_objectmaker;
@@ -767,9 +772,11 @@
 
 //****************************************************************
 
+#ifndef DESIRE
 struct t_namelist;
 extern t_namelist *sys_searchpath, *sys_helppath;
 extern "C" t_namelist *namelist_append_files(t_namelist *, char *);
+#endif
 static void add_to_path(char *dir) {
 	static bool debug = false;
 	char bof[1024];



More information about the Gridflow-cvs mailing list