several clean/speed ups
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
07d92a6095
commit
460734844b
11 changed files with 209 additions and 176 deletions
|
|
@ -170,7 +170,7 @@ String *Swig_string_typecode(String *s) {
|
|||
Putc(c,tc);
|
||||
}
|
||||
str = SwigType_str(tc,0);
|
||||
Printf(ns,"%s",str);
|
||||
Append(ns,str);
|
||||
Delete(str);
|
||||
} else {
|
||||
Putc(c,ns);
|
||||
|
|
@ -251,7 +251,7 @@ String *Swig_string_mangle(const String *s) {
|
|||
if (isalnum((int)c) || (c == '_')) {
|
||||
state = 1;
|
||||
if (space && (space == state)) {
|
||||
Printf(result,"_SS_");
|
||||
Append(result,"_SS_");
|
||||
}
|
||||
space = 0;
|
||||
Printf(result,"%c",(int)c);
|
||||
|
|
@ -587,4 +587,7 @@ Swig_init() {
|
|||
/* Initialize type system */
|
||||
SwigType_typesystem_init();
|
||||
|
||||
/* Initialize template system */
|
||||
SwigType_template_init();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue