re PR c++/24979 (DECL_MAIN_P is declared twice in cp-tree.h)

PR c++/24979
	* cp-tree.h (DECL_MAIN_P): Remove duplicate definition.

From-SVN: r107578
This commit is contained in:
Volker Reichelt 2005-11-27 22:37:06 +00:00 committed by Volker Reichelt
parent a0ba8cb101
commit bebcccaef2
2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2005-11-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/24979
* cp-tree.h (DECL_MAIN_P): Remove duplicate definition.
2005-11-26 Richard Henderson <rth@redhat.com>
* lex.c: Update for pragma_lex rename.

View File

@ -3274,13 +3274,6 @@ extern GTY(()) VEC(tree,gc) *local_classes;
&& IDENTIFIER_POINTER (ID_NODE)[1] == '_')
#endif /* !defined(NO_DOLLAR_IN_LABEL) || !defined(NO_DOT_IN_LABEL) */
/* Returns nonzero iff NODE is a declaration for the global function
`main'. */
#define DECL_MAIN_P(NODE) \
(DECL_EXTERN_C_FUNCTION_P (NODE) \
&& DECL_NAME (NODE) != NULL_TREE \
&& MAIN_NAME_P (DECL_NAME (NODE)))
/* Nonzero if we're done parsing and into end-of-file activities. */