Minor fix to Swig_string_ucase so that it doesn't output two__underscores in a row.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
723d385e36
commit
c4a4392bd2
1 changed files with 4 additions and 1 deletions
|
|
@ -204,6 +204,10 @@ String *Swig_string_ucase(String *s) {
|
||||||
first = 1;
|
first = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (c == '_') {
|
||||||
|
/* We don't want two underscores in a row */
|
||||||
|
first = 0;
|
||||||
|
}
|
||||||
Putc(tolower(c),ns);
|
Putc(tolower(c),ns);
|
||||||
}
|
}
|
||||||
return ns;
|
return ns;
|
||||||
|
|
@ -729,7 +733,6 @@ int Swig_scopename_check(String *s) {
|
||||||
#if defined(HAVE_POPEN)
|
#if defined(HAVE_POPEN)
|
||||||
extern FILE *popen(const char *command, const char *type);
|
extern FILE *popen(const char *command, const char *type);
|
||||||
extern int pclose(FILE *stream);
|
extern int pclose(FILE *stream);
|
||||||
#endif
|
|
||||||
|
|
||||||
String *Swig_string_command(String *s) {
|
String *Swig_string_command(String *s) {
|
||||||
String *res = NewStringEmpty();
|
String *res = NewStringEmpty();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue