On Thu, Sep 12, 2013 at 11:37 AM, Christopher Sean Morrison <[email protected]> wrote: ... > Still, the measure for migrating to C99 has been demonstrating (and making > the accommodations for) a strict C89 posix compilation baseline. Basically, > it's a > matter of setting the compilation flags to strict C89 mode and fixing the > warnings/errors that ensue. ... > The trick for portability is to turn off the GNU extensions and still have > code > that works reasonably well.
We now have a CMake build option "BRLCAD_ENABLE_STRICT_C89" that is supposed to do just that. > This should be doable without eliminating features > or using preprocessor platform definitions too. Using strict C89 exposes some kinds of problems that I don't know how to handle without using pre-processor macros. For example, the C key word "inline" is supported in C99 but not C89. tcl code uses "inline" (as will as other C99 capabilities). The way I would handle that one is use a C-only macro that DEFINEs "inline" as an empty string, but what is the approved solution? Best regards, -Tom ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
