MCPcopy Create free account
hub / github.com/boostorg/build / yyerror

Function yyerror

v2/engine/scan.c:63–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63void yyerror( char const * s )
64{
65 /* We use yylval instead of incp to access the error location information as
66 * the incp pointer will already be reset to 0 in case the error occurred at
67 * EOF.
68 *
69 * The two may differ only if ran into an unexpected EOF or we get an error
70 * while reading a lexical token spanning multiple lines, e.g. a multi-line
71 * string literal or action body, in which case yylval location information
72 * will hold the information about where the token started while incp will
73 * hold the information about where reading it broke.
74 */
75 printf( "%s:%d: %s at %s\n", object_str( yylval.file ), yylval.line, s,
76 symdump( &yylval ) );
77 ++anyerrors;
78}
79
80
81int yyanyerrors()

Callers 2

jamgram.cFile · 0.85
yylexFunction · 0.85

Calls 2

object_strFunction · 0.85
symdumpFunction · 0.85

Tested by

no test coverage detected