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

Function symdump

v2/engine/scan.c:377–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375
376
377static char * symdump( YYSTYPE * s )
378{
379 static char buf[ BIGGEST_TOKEN + 20 ];
380 switch ( s->type )
381 {
382 case EOF : sprintf( buf, "EOF" ); break;
383 case 0 : sprintf( buf, "unknown symbol %s", object_str( s->string ) ); break;
384 case ARG : sprintf( buf, "argument %s" , object_str( s->string ) ); break;
385 case STRING: sprintf( buf, "string \"%s\"" , object_str( s->string ) ); break;
386 default : sprintf( buf, "keyword %s" , s->keyword ); break;
387 }
388 return buf;
389}
390
391
392/*

Callers 2

yyerrorFunction · 0.85
yylexFunction · 0.85

Calls 1

object_strFunction · 0.85

Tested by

no test coverage detected