On Fri, Jan 28, 2011 at 1:22 PM, Stephan Beal <sgb...@googlemail.com> wrote:
> On Fri, Jan 28, 2011 at 7:13 PM, Stephan Beal <sgb...@googlemail.com>wrote: > >> i'm trying to add cson_amalgamation.[ch] to the src dir in fossil. i've >> updated makemake.tcl, but when i build, >> main.mk is generating a cson_amalgamation.h which is stripped of typedefs >> for opaque struct types which the API needs, so it won't compile. >> > > i worked around it by combining both files into 1 .c file, but this might > cause me problems down-stream because the filtering does some really > unwanted things: > > - macros defined internally in my .c file are being called (but not > #defined) in the generated .h file. > - public macros from my .h file are not in the generated .h file, so i > can't use them in, e.g. timeline.c. > - The CSON_ENABLE_SQLITE3 config option, which is hard-coded to 1 for this > purpose, doesn't get published in the generated .h file. > Please read http://www.fossil-scm.org/fossil/doc/trunk/src/makeheaders.htmlwhich explains the motiation and operation of makeheaders. Once you see how it works, the solution to the problems above will be trivial. > > i'll take a look at the special-case option. My primary concern is that i > can't use the typedefs i need from timeline.c and friends. > > -- > ----- stephan beal > http://wanderinghorse.net/home/stephan/ > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > > -- D. Richard Hipp d...@sqlite.org
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users