This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] sys/io.h and g++


Andreas Schwab <schwab@suse.de> writes:

> But the syntax requires `:', not `::'.

It requires treating : as a token, not ::.  If the C++ parser cannto
do it it's not compatible with the C asm struct which is a declared
goal.

> Which braces?  I only see parenthesis, and they must contain valid C++
> expressions and string literals.

Wrong.  Anything can be between the parenthesis (thank you for
deliberately misunderstanding me).  Look at what the standard says.
If gcc currently uses the fact that these are strings and expressions
this is to make things easy.  But it does not mean it'll stay like
this.

> You cannot use C++ keywords as identifiers either.

Just another limitation.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]