Added suffix arg for c output.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Art Yerkes 2003-12-23 20:31:06 +00:00
commit 98e493b6fa

View file

@ -30,6 +30,7 @@ static const char *usage = (char*)
("Ocaml Options (available with -ocaml)\n"
"-prefix <name> - Set a prefix <name> to be prepended to all names\n"
"-where - Emit library location\n"
"-suffix <name> - Change .cxx to something else\n"
"\n");
static int classmode = 0;
@ -114,6 +115,14 @@ public:
} else {
Swig_arg_error();
}
} else if (strcmp (argv[i], "-suffix") == 0) {
if (argv[i + 1]) {
SWIG_config_cppext( argv[i+1] );
Swig_mark_arg (i);
Swig_mark_arg (i+1);
i++;
} else
Swig_arg_error();
}
}
}