Hello!
I'm trying to fix code of esnacc to compile it in gcc4.0. I've fixed
almost all c/c++ code, but I've completly no idea about yacc.
Can someone help me how to fix the following warnings:
core/parse-asn1.y: In function 'yyparse':
core/parse-asn1.y:1517: warning: format '%ld' expects type 'long int',
but argument 4 has type 'AsnInt'
core/parse-asn1.y: In function 'InitAsn1Parser':
core/parse-asn1.y:3537: warning: implicit declaration of function
'yyrestart'
Below is the code:
@1515:
else
{
PrintErrLoc (modulePtrG->asn1SrcFileName, $3->lineNo);
fprintf (errFileG, "ERROR - attempt to implicitly reference
untagged type\n");
smallErrG = 1;
}
@3535:
#ifdef FLEX_IN_USE
if (!firstTimeThroughG)
yyrestart (fPtr);
firstTimeThroughG = FALSE;
#endif
best regards
Jarek