Artifacts Associated With Ticket 2b566b4c81
Ticket change [821293e0ca] (rid 361) by anonymous on 2014-06-13 16:02:46:
- foundin initialized to: "0.17"
- icomment:
Attempting to create a [tcc4tcl::cproc] with an argl greater than one errors with "invalid type". % tcc4tcl::cproc add {int a, int b} int {return a+b;} <string>:4: error: invalid type compilation failed The full error message: <string>:4: error: invalid type compilation failed while executing "$tcc(cc) compile $code" (procedure "::tcc4tcl::cc" line 8) invoked from within "::tcc4tcl::cc { #include <tcl.h> static int c_add(int a,, int b) { return a+b;} int Cmd_N4__add (ClientData dummy,Tcl_Interp *ip,int objc,Tcl_Obj *C..." ("uplevel" body line 1) invoked from within "uplevel 1 [list ${ns}::cc $code]" (procedure "::tcc4tcl::ccommand" line 40) invoked from within "::tcc4tcl::ccommand add {dummy ip objc objv} { int _a,; int _b; int rv; if (objc != 3) { Tcl_WrongNumArgs(ip, 1, objv, "a, b"); return ..." ("uplevel" body line 1) invoked from within "uplevel 1 [list ${ns}::ccommand $name {dummy ip objc objv} $cbody]" (procedure "tcc4tcl::cproc" line 5) invoked from within "tcc4tcl::cproc add {int a, int b} int {return a+b;}" (file "tcc.tcl" line 3) Maybe something to do with c_add having more than one ',' between each argument? c_add(int a,, int b) {return a+b;}
- login: "anonymous"
- mimetype: "text/x-fossil-plain"
- severity initialized to: "Critical"
- status initialized to: "Open"
- title initialized to:
[tcc4tcl::cproc] errors when given more than one argl argument
- type initialized to: "Code_Defect"
Ticket change [ad6d08b639] (rid 370) by rkeene on 2014-06-15 20:10:22:
- icomment:
Format of arguments is poorly documented but should be without the comma (i.e., as a Tcl list): tcc4tcl::cproc add {int a int b} int { return(a+b); }
- login: "rkeene"
- mimetype: "text/plain"
- priority changed to: "Immediate"
- resolution changed to: "Not_A_Bug"
- type changed to: "Documentation"
- username: "rkeene"
- icomment:
Ticket change [143b032a3c] (rid 371) by rkeene on 2014-06-15 20:10:47:
- login: "rkeene"
- mimetype: "text/x-fossil-plain"
- priority changed to: "Medium"
- severity changed to: "Important"
- status changed to: "Closed"