Fixed string_replace method.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@89 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-01-13 20:42:42 +00:00
commit 21b50a6907

View file

@ -169,7 +169,7 @@ int SWIG_main(int argc, char *argv[], Language *l, Documentation *d) {
SWIG_mark_arg(i);
} else if (strncmp(argv[i],"-D",2) == 0) {
DOH *d = NewString(argv[i]+2);
String_replace(d,(char*)"=",(char*)" ", DOH_REPLACE_ANY | DOH_REPLACE_FIRST);
Replace(d,(char*)"=",(char*)" ", DOH_REPLACE_ANY | DOH_REPLACE_FIRST);
SWIG_cpp_define((DOH *) d,0);
// Create a symbol
SWIG_mark_arg(i);