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/SWIG@8442 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
924a56a1aa
commit
5db285b66b
1 changed files with 4 additions and 1 deletions
|
|
@ -204,6 +204,10 @@ String *Swig_string_ucase(String *s) {
|
|||
first = 1;
|
||||
}
|
||||
}
|
||||
else if (c == '_') {
|
||||
/* We don't want two underscores in a row */
|
||||
first = 0;
|
||||
}
|
||||
Putc(tolower(c),ns);
|
||||
}
|
||||
return ns;
|
||||
|
|
@ -729,7 +733,6 @@ int Swig_scopename_check(String *s) {
|
|||
#if defined(HAVE_POPEN)
|
||||
extern FILE *popen(const char *command, const char *type);
|
||||
extern int pclose(FILE *stream);
|
||||
#endif
|
||||
|
||||
String *Swig_string_command(String *s) {
|
||||
String *res = NewStringEmpty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue