[Gridflow-cvs] [svn] commit: r3902 - /trunk/format/main.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Wed Jun 18 16:30:17 EDT 2008


Author: matju
Date: Wed Jun 18 16:30:16 2008
New Revision: 3902

Log:
[gf.suffix_lookup]: output bang when suffix not found

Modified:
    trunk/format/main.c

Modified: trunk/format/main.c
==============================================================================
--- trunk/format/main.c (original)
+++ trunk/format/main.c Wed Jun 18 16:30:16 2008
@@ -80,7 +80,8 @@
 		*t = 0;
 		outlet_symbol(bself->outlets[1],gensym(t+1));
 		std::map<std::string,std::string>::iterator u = suffix_table.find(std::string(t+1));
-		if (u!=suffix_table.end()) outlet_symbol(bself->outlets[0],gensym((char *)u->second.data()));
+		if (u==suffix_table.end()) outlet_bang(bself->outlets[0]);
+		else outlet_symbol(bself->outlets[0],gensym((char *)u->second.data()));
 	}
 	free(s);
 }



More information about the Gridflow-cvs mailing list