Files
mcde/motif/tools
lotherk 634fb60fde motif: wml's parser declares yylex and yyerror, and casts the token value the boolean rules pass
With the real prototypes in wml.h the grammar's boolean rules no longer compile:
they hand the token value (ATTRTRUE/ATTRFALSE, an int) to a function whose
parameter is char* -- wmlsynbld.c casts it back to long for EXCLUDE ('val ...
must be ATTRTRUE | ATTRFALSE').  The cast says so now, and the four call sites
are the only ones (grep yytknval1, yytknval2 in wmlparse.y).

The generated parser also calls yylex (wmllex.c) and yyerror (Uil.c) without a
declaration; GCC 14 and later refuse that in C99 and later, where the 1990s build
only warned (build/logs/userland-2026-11-13w.log:3620ff).
2026-11-13 23:18:04 +00:00
..