Changeset: 982c835b3f2b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=982c835b3f2b
Modified Files:
        monetdb5/modules/mal/manifold.c
Branch: Jul2015
Log Message:

Simplify code and correct indirection.


diffs (20 lines):

diff --git a/monetdb5/modules/mal/manifold.c b/monetdb5/modules/mal/manifold.c
--- a/monetdb5/modules/mal/manifold.c
+++ b/monetdb5/modules/mal/manifold.c
@@ -361,10 +361,12 @@ wrapup:
 }
 
 // The old code
-str MANIFOLDremapMultiplex(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr 
p){
-    char buf[BUFSIZ];
+str
+MANIFOLDremapMultiplex(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr p)
+{
     (void) mb;
     (void) cntxt;
-    snprintf(buf,BUFSIZ,"Function '%s.%s' not defined", (char *) 
getArgReference(stk,p,p->retc), (char *) getArgReference(stk,p,p->retc+1));
-    throw(MAL, "opt.remap", "%s",buf);
+    throw(MAL, "opt.remap", "Function '%s.%s' not defined",
+                 *getArgReference_str(stk, p, p->retc),
+                 *getArgReference_str(stk, p, p->retc + 1));
 }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to