[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Inlcude the Squeak headers after the C headers. This hsould also help fix (47b8d52)

Eliot Miranda notifications at github.com
Tue Sep 29 03:47:15 UTC 2020


David, with respect, I am currently trying to deploy an extremely complex Squeak application that includes C++, Objective-C, and mixed C++/Objective-C plugin code, threads, etc, on both MacOS and Windows.  I am not trying to defeat autoconf or anything.  I am trying to get the VM to compile.  Trying to clean up inconsistencies, and breakages, so that our company can deploy a product and does not fail.  I don't have time to suffer major disturbances in the VM code right now.  Please Tobias, if you want to include config.h in front of ever file go ahead, but do it on a branch.  I will note that only some projects take this approach, and many complex ones include config.h *after* system headers.  And that this approach makes sense.

A given platform's headers provide an API, alas as a white box
Because the only guaranteed input to a platform's headers is compiler command-line switches, variations on the platform API, expressed through the system headers, are selected on the compiler command line (e.g. _GNU_SOURCE, POSIX, etc).

A config.h file from autoconf is a synopsis of a given variation of the system headers, defining to the program what facilities are available, without the rest of the program having to manually determine (often impossible at run-time, often hard to do so at compile-time).  It is a communication to the program, not a communication to the headers.

This isn't me being obstructive or trying to sabotage config.h or autoconf.  It is the architectural reality of C/C++/Objective-C, is it not?

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/47b8d5202b835b5d9d1556ed0cf0dda11e5b246c#commitcomment-42804536
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20200928/1ef6bb01/attachment.html>


More information about the Vm-dev mailing list