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:
parent
a152fd46a8
commit
98e493b6fa
1 changed files with 9 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ static const char *usage = (char*)
|
||||||
("Ocaml Options (available with -ocaml)\n"
|
("Ocaml Options (available with -ocaml)\n"
|
||||||
"-prefix <name> - Set a prefix <name> to be prepended to all names\n"
|
"-prefix <name> - Set a prefix <name> to be prepended to all names\n"
|
||||||
"-where - Emit library location\n"
|
"-where - Emit library location\n"
|
||||||
|
"-suffix <name> - Change .cxx to something else\n"
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
static int classmode = 0;
|
static int classmode = 0;
|
||||||
|
|
@ -114,6 +115,14 @@ public:
|
||||||
} else {
|
} else {
|
||||||
Swig_arg_error();
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue