Fix typo in handling of /*@SWIG[...]*/ comments in the scanner. This just

meant we were only actually looking for /*@SWI at the start of the comment, so
was pretty harmless in practice.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2008-05-30 16:11:27 +00:00
commit eb50e9c4b9

View file

@ -423,7 +423,7 @@ int yylook(void) {
{
String *cmt = Scanner_text(scan);
char *loc = Char(cmt);
if ((strncmp(loc,"/*@SWIG@",6) == 0) && (loc[Len(cmt)-3] == '@')) {
if ((strncmp(loc,"/*@SWIG",7) == 0) && (loc[Len(cmt)-3] == '@')) {
scanner_locator(cmt);
}
}