[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] stdarg.h overhaul (was: /usr/include/syslog.h:68: err
Re: [Tinycc-devel] stdarg.h overhaul (was: /usr/include/syslog.h:68: error: invalid type)
Fri, 17 Apr 2020 13:24:08 +1000
I guess there's a new problem now 
It seems tcc -ar doesn't support the `x` command to extract an archive?
Building libressl borkes on this and I'm not sure hwo to get around it (yet).
I dunno what you guys did here but you've solved all my compilation problems related to syslog.h :D Thank you!
(I'm not a C dev by any stretch of the imagination!)
On Thu, Apr 16, 2020 at 8:23 AM Steffen Nurpmeso <address@hidden
Michael Matz wrote in
|On Wed, 15 Apr 2020, Michael Matz wrote:
|So, I've dusted off an old patch of mine that overhauls how TCC is doing
|stdarg.h support. mob at 2f943902 has it. In particular our own stdarg.h
+ if (!is_asm && s1->output_type != TCC_OUTPUT_PREPROCESS)
+ cstr_cat(&cstr, "#include \"tcc_predefs.h\"\n", -1);
That is it! Great! I tried to fool around to get the va thing
defined as a real type somewhere in the code base for an entire
afternoon, but simply enforcing the load of some special tcc
internal file is much easier.
I was hoping for some kind of #include_next indeed, without ever
being motivated enough to look in the codebase i have no plan
of. Like i said back in 2017 or so after grischka reverted that
tccinclude commit of mine, i never understood why compilers
install a tremendous load of internal headers which shadow or
provide standard headers, like stdarg.h, but if you sprinkle
#error's you note they never get even loaded. Either you need
it for proper functioning or not, i do not understand. But
granted the patch was much worse than what you are doing now!
|Would be nice if you could check that on ulinux and libressl :)
Works much better now, great! Thank you. I hope he gets it done,
ulinux could be a really easy VM server thing for me.
(Unfortunately he removed a shell confirmation prompt() function
that was really neat; at least that function was in a pasteboard
thing i have seen.)
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)