More work on smoothing out the type system. Needs more work however.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@592 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9ccd0daa88
commit
cc46a46b6d
17 changed files with 940 additions and 731 deletions
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* This file defines a object for creating wrapper functions. Primarily
|
||||
* this is used for convenience since it allows pieces of a wrapper function
|
||||
* to be created in a non-linear manner.
|
||||
* to be created in a piecemeal manner.
|
||||
*
|
||||
* Author(s) : David Beazley (beazley@cs.uchicago.edu)
|
||||
*
|
||||
|
|
@ -249,23 +249,3 @@ Wrapper_new_localv(Wrapper *w, const DOHString_or_char *name, ...) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
int main() {
|
||||
Wrapper *w;
|
||||
w = NewWrapper();
|
||||
Printf(w->def,"int foo_wrap(ClientData clientdata, Tcl_Interp *interp, int argc, char *argv[]) {");
|
||||
Wrapper_add_local(w,"int a", "a");
|
||||
Wrapper_add_local(w,"int a", "a");
|
||||
Wrapper_add_local(w,"int b", "b");
|
||||
Wrapper_add_local(w,"char temp[256]","temp");
|
||||
|
||||
Printf(w->code,"for (i = 0; i < 10; i++) { printf(\"%%d\", i); }\n");
|
||||
|
||||
Printf(w->code,"if (1) { foo;\n} else { bar; \n}\n");
|
||||
|
||||
Printf(w->code,"}\n");
|
||||
Wrapper_print(w,stdout);
|
||||
DelWrapper(w);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue