Use Strchr/strchr instead of Strstr/strstr when searching for a single
character. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2f6a268e55
commit
1e19f11fdc
11 changed files with 38 additions and 38 deletions
|
|
@ -104,7 +104,7 @@ Wrapper_pretty_print(String *str, File *f) {
|
|||
} else if (c == ':') {
|
||||
Putc(c,ts);
|
||||
if ((c = Getc(str)) == '\n') {
|
||||
if (!empty && !strstr(Char(ts),"?")) label = 1;
|
||||
if (!empty && !strchr(Char(ts),'?')) label = 1;
|
||||
}
|
||||
Ungetc(c,str);
|
||||
} else if (c == '(') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue