Hello, all,
First, forgive me if this is the wrong medium for submitting this, but I'm
rather new at this patch submission business. Anyway, I was using Lemon to
generate a few parsers for a program I'm writing (which uses SQLite, too,
for storage), and I noticed that the files I used to call the parser were
giving me a strange "Pointer made from integer without a cast" on
ParseAlloc(), which is strange, since ParseAlloc() returns a void *. It
took me a while to figure out that ParseAlloc(), ParseFree() and Parse()
weren't actually declared anywhere, so the compiler was assuming they
received no parameters and returned int. Since I have more than one parser
to work with, I decided to have lemon emit the function prototypes on the
header file upon a new (-f) flag. Then I decided that I might as well
submit this back to the community and let it decide whether the inclusion
is useful or not.
This patch works against the current version of lemon.c, as linked to by
the Lemon page. This is probably not correct, as the file is amalgamated
from other sources, but still might be useful to somebody.
Thanks for reading,
-Tiago
--
In those days, in those distant days, in those nights, in those remote
nights, in those years, in those distant years...
- Gilgamesh, Enkidu and the Underworld
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users