lua-users home
lua-l archive

Re: bug in lpeg-0.5

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Also, my C compiler gave errors
> 
> <argument 1 to 'printcharset'>: qualifier-losing implicit cast of pointer
> 
> for lines 253, 257, and for the implicit casts in the NULL returned
> at lines 395, 405 in lpeg.c. I could deal with the first two by removing the
> "const" qualifiers in the formal parameters of printcharset and printinst
> and with the second two by inserting (const char *) coercions.
That is strange. Aren't these errors in the wrong direction?
> By the way, <wctype.h> is not part of ANSI C is it? I have to insert
> #ifdef WCTYPE directives around various bits if I want to use a strict
> ANCI compiler.
wctype.h is part of ANSI C. But I should have removed that stuff from
the code. It is just an example.
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /