[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bug in lpeg-0.5
- From: roberto@... (Roberto Ierusalimschy)
- Date: Thu, 22 Mar 2007 08:38:06 -0300
> 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