the manual for lex says ..
lex -9
should generate a Plan9 compatible code with u.h and libc.h included,
otherwise 8c and 8l will generate error searching for vsprintf(...)

/Prem


On Mon, Nov 10, 2008 at 4:54 PM, erik quanstrom wrote:
>> %{
>> %}
>>
>> %%
>> stop print("Stop!! recievedn");
>> start print("Start -> recievedn");
>> %%

>
> the fix for this should be to add
> #include
> #include
>
> between %{ and %} but this doesn't work because
> lex includes stdio.h before it processes %{ %}.
> you'll need to write a shim, fixlex.c, that goes like this
>
> #include
> #include
> #include "lex.yy.c"
>
> that is unless you want to dive into the lex source. :-)
>
> - erik
>