Ken Linder wrote:
YES! It worked! I have successfully built the compiler! I know, this may be a minor thing for some of you out there, but for me, this is a large accomplishment!
Congratulations! :-) For the first time, it can be a bit difficult. Once you've figured it out, you can automate it rather easily -- particularly on Linux... :-)
Since this don't work too well in a fcn prototype, I just coded the proto as int; __va_ellipsis. Is this portable? I think it is on Intel based hardware but otherwise no. I base this on the fact that there are many #defines for va_dcl in the va-*.h files in the gcc-2.8.1/include dir. Why can't there be something like va_dclp, generated in the varargs.h that will allow protos to be portable? Maybe there is & I just missed it. Definitely possible at this time of night! ;-)
If you find something portable, let me know. Otherwise, it will not be *too* bad, since the varargs functions are intended to be replaced by non-varargs functions sooner or later...
Frank