AST headers and C++ compatibility / was: Re:[ksh93-integration-discuss] libcmd/*/include/ast/cmd.h

Roland Mainz roland.mainz at nrubsig.org
Tue Sep 12 14:10:15 PDT 2006


Roland Mainz wrote:
> Glenn Fowler wrote:
> > the default ast build places all installed and generated files in the
> > $PACKAGEROOT/arch/$HOSTTYPE subtree
> >
> > generated headers will contain the grep pattern
> >         ' : : generated from '
> > these may (and probably will) differ between $HOSTTYPEs
> >
> > installed headers are passed through the ast proto command
> > (for KnR and C++ compatibility) and contain the grep pattern
> >         ' : : generated by '
> 
> I do not see any |extern "C"| constructs in the generated AST headers...
> is that a bug ?

Grumpf...
... I suggest to ignore me... the C++ support is working fine since
"ast_common.h" has the following piece of code:
-- snip --
/* extern symbols must be protected against C++ name mangling */
#ifndef _BEGIN_EXTERNS_
#       if __cplusplus || c_plusplus
#               define _BEGIN_EXTERNS_  extern "C" {
#               define _END_EXTERNS_    }
#       else
#               define _BEGIN_EXTERNS_
#               define _END_EXTERNS_
#       endif
#endif
-- snip --
My fault... ;-/

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)



More information about the ksh93-integration-discuss mailing list