The pretty printer gets confused by comments including unbalanced
single or double quotes, like in this interface file:
-------------
%typemap(perl5, check) size_t *SIZE_T_VECTORINOUT
{
/* NEXT LINE AND REST OF WRAPPER WILL BE MISSING. */
/* Do nothing (don't check for NULL pointer) */
}
void x(size_t *SIZE_T_VECTORINOUT);
-------------
The code tries to find the end of the character/string constant. When
it reaches EOF, nothing will get emitted because no \n is seen.
This is a change to emit the last line of a string. But the pretty
printer probably should be fixed to handle comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cbf217707f
commit
17692a2ef0
1 changed files with 1 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ Wrapper_pretty_print(String *str, File *f) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!empty) Printf(f,"%s",ts);
|
||||
Delete(ts);
|
||||
Printf(f,"\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue