[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bizarre ifdef logic in generated parser
From: |
Aharon Robbins |
Subject: |
bizarre ifdef logic in generated parser |
Date: |
Mon, 27 Jan 2003 12:33:54 +0200 |
Greetings.
I note the following:
# if YYSTACK_USE_ALLOCA
# define YYSTACK_ALLOC alloca
# else
---> # ifndef YYSTACK_USE_ALLOCA
# if defined (alloca) || defined (_ALLOCA_H)
# define YYSTACK_ALLOC alloca
# else
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# endif
# endif
---> # endif
# endif
It seems that the marked test can be omitted, given that it's already
in the else part of `if YYSTACK_USE_ALLOCA', we know it's not
defined.
Arnold
- bizarre ifdef logic in generated parser,
Aharon Robbins <=