hamei wrote:
man cc wrote:
* The gcc compiler allows variadic macros; the MIPSpro 7.4 compilers
support these macros in c99 mode. If you have code that uses
ellipses (...) as part of a macro definition and you are not
compiling with c99, you will need to rewrite the macro. Two possible
approaches are to replace the macro with a new variadic function, or
to create a family of macros, each taking different (fixed) numbers
of arguments.
Worth a try with c99 ?
I did that and some other difficulty arose that can't remember just now. Anyway, I diddled with it some more last night and managed to get a bunch of it to compile[1] but ran into a show stopper in dialog.cc:
Code:
Select all
cc-1028 CC: ERROR File = dialog.cc, Line = 180
The expression used must have a constant value.
memset(pm, '\0', sizeof(Fl_Menu_Item[n_it+1]));
^
Which I have emailed the development list about.
[1] for the curious, here's what I've been able to compile so far: auth.o, bitvec.o, bookmark.o, bw.o, cache.o, capi.o, chain.o, colors.o, cookies.o, css.o, decode.o, dicache.o, digest.o, dillo.o, dns.o, dpiapi.o, gif.o, history.o, jpeg.o, keys.o, klist.o, md5.o, misc.o, paths.o, png.o, prefs.o, prefsparser.o, timeout.o, ui.o, uicmd.o, url.o, utf8.o