# include "cscannerHelp.h"
# include "cscanner.h"
# include "cgrammar_tokens.h"
-# include "portab.h"
+# include "osd.h"
static int lminput (void);
static int s_tokLength = 0;
}
llassert (*tmp == '\"');
-
tmp++;
-
fname = tmp;
while (*tmp != '\"' && *tmp != '\0')
}
llassert (*tmp == '\"');
-
*tmp = '\0';
# if defined(OS2) || defined(MSDOS) || defined(WIN32)
int cscannerHelp_returnToken (int t)
{
- yylval.tok = lltok_create (t, fileloc_decColumn (g_currentloc, s_tokLength));
+ if (s_tokLength > fileloc_column (g_currentloc)) {
+ yylval.tok = lltok_create (t, fileloc_copy (g_currentloc));
+ } else {
+ yylval.tok = lltok_create (t, fileloc_decColumn (g_currentloc, s_tokLength));
+ }
+
s_tokLength = 0;
s_lastWasString = FALSE;
return (t);