[Info-vax] C99 updates to CRTL

John E. Malmberg wb8tyw at qsl.net_work
Mon Jul 29 20:23:36 EDT 2019


On 7/29/2019 8:49 AM, John Reagan wrote:
> 
> I'm talking about "clang as the C++ compiler", not "clang as the C
> compiler".  Our traditional DEC C frontend will remain the default C
> compiler for the foreseable future.  However, they all share headers
> so our headers will have to guard appropriately for DEC C things.
> Trying to use "clang as the C compiler" will indeed force people to
> scrub their code with a stiff wire brush.

> Open source code coming TO OpenVMS doesn't have any DEC C extensions
> in it.

Gnulib used by a lot of open source projects has trouble generating 
wrapper and replacement routines because of the DEC C extensions such as 
adding the additional "..." arguments to the prototype.

And turning off the DEC C extensions seems to cause other issues with 
the build.

So I routinely have to do things like:

#define foobar hide_foobar
#include "non_existent_logical/foobar.h"
int decc$foobar (arg1, arg2, ...)
#undef foobar

The non_existent_logical is a result of gnulib configure generating 
header files with the same name as the standard header files that must 
be included and these header files expect that configure will tell them 
the absolute path to the system provided header files.

Regards,
-John
wb8tyw at qsl.net_work



More information about the Info-vax mailing list