[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Skeleton C++ header bug
From: |
Akim Demaille |
Subject: |
Re: Skeleton C++ header bug |
Date: |
27 Dec 2001 19:41:44 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) |
| ACtually, the whole segment in bison.simple should be:
| # ifndef YYFPRINTF
| # ifdef __cplusplus
| # include <cstdio> /* INFRINGES ON USER NAME SPACE */
| # else
| # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
| # endif
| # define YYFPRINTF YYSTD (fprintf)
| # define YYSTDERR stderr
| # endif
|
| -- In view of that "stderr" is a macro, not a part of the C++ language, it
| cannot be put in a C++ "namespace" construct.
That stderr is a macro or not is irrelevant and only bound to your
libc and how you use it. It's just C, and there is no such thing as
namespaces in C.
I'll do that.