On Fri, Jan 28, 2011 at 7:13 PM, Stephan Beal <[email protected]> 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.

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
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to