[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Skeleton C++ header bug
From: |
Hans Aberg |
Subject: |
Re: Skeleton C++ header bug |
Date: |
Mon, 24 Dec 2001 12:19:49 +0100 |
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.
Hans Aberg