Lots of cleanup

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-08-17 05:08:26 +00:00
commit e2dd37cb93
9 changed files with 507 additions and 1151 deletions

View file

@ -74,7 +74,27 @@ Wrapper_pretty_print(String *str, File *f) {
Seek(str,0, SEEK_SET);
Clear(ts);
while ((c = Getc(str)) != EOF) {
if (c == '{') {
if (c == '\"') {
Putc(c,ts);
while ((c = Getc(str)) != EOF) {
if (c == '\\') {
Putc(c,ts);
c = Getc(str);
}
Putc(c,ts);
if (c == '\"') break;
}
} else if (c == '\'') {
Putc(c,ts);
while ((c = Getc(str)) != EOF) {
if (c == '\\') {
Putc(c,ts);
c = Getc(str);
}
Putc(c,ts);
if (c == '\'') break;
}
} else if (c == '{') {
Putc(c,ts);
Putc('\n',ts);
for (i = 0; i < level; i++)