-/* Generated by re2c 0.14.1.dev on Fri Feb 27 23:44:24 2015*/
+/* Generated by re2c 0.14.3.dev on Wed May 20 12:51:33 2015 */
/* $Id$ */
#include <stdlib.h>
#include <string.h>
{
if (!ignore_eoc && !DFlag)
{
- out.write((const char*)(tok), (const char*)(cursor) - (const char*)(tok) - 1);
+ out.write(tok, cursor - tok - 1);
// -1 so we don't write out the \0
}
if(cursor == eof)
}
else if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(cursor) - (const char*)(tok));
+ out.write(tok, cursor - tok);
}
tok = pos = cursor;
cline++;
}
if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(&cursor[-7]) - (const char*)(tok));
+ const size_t lexeme_len = cursor[-1] == '{'
+ ? sizeof ("%{") - 1
+ : sizeof ("/*!re2c") - 1;
+ out.write(tok, cursor - tok - lexeme_len);
}
tok = cursor;
RETURN(Parse);
}
if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(&cursor[-11]) - (const char*)(tok));
+ const size_t lexeme_len = sizeof ("/*!use:re2c") - 1;
+ out.write(tok, cursor - tok - lexeme_len);
}
tok = cursor;
RETURN(Reuse);
}
else if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(cursor) - (const char*)(tok));
+ out.write(tok, cursor - tok);
}
tok = pos = cursor;
goto echo;
}
else if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(cursor) - (const char*)(tok));
+ out.write(tok, cursor - tok);
}
tok = pos = cursor;
goto echo;
}
if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(&cursor[-7]) - (const char*)(tok));
+ const size_t lexeme_len = cursor[-1] == '{'
+ ? sizeof ("%{") - 1
+ : sizeof ("/*!re2c") - 1;
+ out.write(tok, cursor - tok - lexeme_len);
}
tok = cursor;
RETURN(Parse);
}
if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(&cursor[-11]) - (const char*)(tok));
+ const size_t lexeme_len = sizeof ("/*!use:re2c") - 1;
+ out.write(tok, cursor - tok - lexeme_len);
}
tok = cursor;
RETURN(Reuse);
}
else if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(cursor) - (const char*)(tok));
+ out.write(tok, cursor - tok);
}
tok = pos = cursor;
goto echo;
}
else if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(cursor) - (const char*)(tok));
+ out.write(tok, cursor - tok);
}
tok = pos = cursor;
goto echo;
}
else if (!DFlag)
{
- out.write((const char*)(tok), (const char*)(cursor) - (const char*)(tok));
+ out.write(tok, cursor - tok);
}
tok = pos = cursor;
cline++;
zero {
if (!ignore_eoc && !DFlag)
{
- out.write((const char*)(tok), (const char*)(cursor) - (const char*)(tok) - 1);
+ out.write(tok, cursor - tok - 1);
// -1 so we don't write out the \0
}
if(cursor == eof)