/* Counter for error reporting */
static unsigned long lex_linenum = 1;
extern char *strdup(const char *s1);
extern int fileno(FILE *stream);
%}
%option nounput
%%
\n lex_linenum++;
getGdoCtx(ctx)->font,
x,
y - gdoTextHeight(ctx),
string,
(char *)string,
getGdoPen(ctx));
}
else if(strcmp(gOutType, "ismap") == 0)
{
outType = ADRAW_FMT_PNG;
outImage = tempnam(NULL, "png");
outImage = (char *)tmpfile();
if(!outImage)
perror("tempnam() failed");
perror("tmpfile() failed");
return EXIT_FAILURE;