Removed -extern-all option which was not present, and fixed exporting of variable names.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9069 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Surendra Singhi 2006-05-03 06:47:08 +00:00
commit ded22097ab

View file

@ -67,9 +67,6 @@ void CFFI :: main(int argc, char *argv[]) {
if (!Strcmp(argv[i], "-help")) { if (!Strcmp(argv[i], "-help")) {
Printf(stdout, "cffi Options (available with -cffi)\n"); Printf(stdout, "cffi Options (available with -cffi)\n");
Printf(stdout, Printf(stdout,
" -extern-all\n"
"\t If this option is given then cffi definitions for all the functions\n"
"will be created otherwise only definitions for externed functions are created.\n"
" -generate-typedef\n" " -generate-typedef\n"
"\t If this option is given then defctype will be used to generate shortcuts\n" "\t If this option is given then defctype will be used to generate shortcuts\n"
"according to the typedefs in the input.\n" "according to the typedefs in the input.\n"
@ -455,7 +452,7 @@ int CFFI :: variableWrapper(Node *n) {
Delete(lisp_type); Delete(lisp_type);
emit_export(n, var_name); emit_export(n, lisp_name);
return SWIG_OK; return SWIG_OK;
} }
@ -531,7 +528,6 @@ void CFFI :: emit_struct_union(Node *n, bool un=false) {
Printf(stderr, " (name: %s)\n", name); Printf(stderr, " (name: %s)\n", name);
SWIG_exit(EXIT_FAILURE); SWIG_exit(EXIT_FAILURE);
} }
name = lispify_name(n, name, "'classname"); name = lispify_name(n, name, "'classname");
if(un) if(un)