mirror of
https://github.com/apache/httpd.git
synced 2025-11-06 16:49:32 +03:00
Make the ssl expression parser thread-safe. It now requires bison instead of
yacc. Also change the make file magic so that the real source file name is embedded in the debug info. The generated files have been created with flex 2.5.35/bison 2.4.1. The two 'no previous prototype' warnings are supposed to be fixed with the next flex version. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1002824 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,30 +1,90 @@
|
||||
#ifndef YYERRCODE
|
||||
#define YYERRCODE 256
|
||||
|
||||
/* A Bison parser, made by GNU Bison 2.4.1. */
|
||||
|
||||
/* Skeleton interface for Bison's Yacc-like parsers in C
|
||||
|
||||
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
/* As a special exception, you may create a larger work that contains
|
||||
part or all of the Bison parser skeleton and distribute that work
|
||||
under terms of your choice, so long as that work isn't itself a
|
||||
parser generator using the skeleton or a modified version thereof
|
||||
as a parser skeleton. Alternatively, if you modify or redistribute
|
||||
the parser skeleton itself, you may (at your option) remove this
|
||||
special exception, which will cause the skeleton and the resulting
|
||||
Bison output files to be licensed under the GNU General Public
|
||||
License without this special exception.
|
||||
|
||||
This special exception was added by the Free Software Foundation in
|
||||
version 2.2 of Bison. */
|
||||
|
||||
|
||||
/* Tokens. */
|
||||
#ifndef YYTOKENTYPE
|
||||
# define YYTOKENTYPE
|
||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
||||
know about them. */
|
||||
enum yytokentype {
|
||||
T_TRUE = 258,
|
||||
T_FALSE = 259,
|
||||
T_DIGIT = 260,
|
||||
T_ID = 261,
|
||||
T_STRING = 262,
|
||||
T_REGEX = 263,
|
||||
T_REGEX_I = 264,
|
||||
T_FUNC_FILE = 265,
|
||||
T_OP_EQ = 266,
|
||||
T_OP_NE = 267,
|
||||
T_OP_LT = 268,
|
||||
T_OP_LE = 269,
|
||||
T_OP_GT = 270,
|
||||
T_OP_GE = 271,
|
||||
T_OP_REG = 272,
|
||||
T_OP_NRE = 273,
|
||||
T_OP_IN = 274,
|
||||
T_OP_PEEREXTLIST = 275,
|
||||
T_OP_OR = 276,
|
||||
T_OP_AND = 277,
|
||||
T_OP_NOT = 278
|
||||
};
|
||||
#endif
|
||||
|
||||
#define T_TRUE 257
|
||||
#define T_FALSE 258
|
||||
#define T_DIGIT 259
|
||||
#define T_ID 260
|
||||
#define T_STRING 261
|
||||
#define T_REGEX 262
|
||||
#define T_REGEX_I 263
|
||||
#define T_FUNC_FILE 264
|
||||
#define T_OP_EQ 265
|
||||
#define T_OP_NE 266
|
||||
#define T_OP_LT 267
|
||||
#define T_OP_LE 268
|
||||
#define T_OP_GT 269
|
||||
#define T_OP_GE 270
|
||||
#define T_OP_REG 271
|
||||
#define T_OP_NRE 272
|
||||
#define T_OP_IN 273
|
||||
#define T_OP_PEEREXTLIST 274
|
||||
#define T_OP_OR 275
|
||||
#define T_OP_AND 276
|
||||
#define T_OP_NOT 277
|
||||
typedef union {
|
||||
|
||||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
{
|
||||
|
||||
/* Line 1676 of yacc.c */
|
||||
#line 45 "ssl_expr_parse.y"
|
||||
|
||||
char *cpVal;
|
||||
ssl_expr *exVal;
|
||||
|
||||
|
||||
|
||||
/* Line 1676 of yacc.c */
|
||||
#line 82 "ssl_expr_parse.h"
|
||||
} YYSTYPE;
|
||||
extern YYSTYPE ssl_expr_yylval;
|
||||
# define YYSTYPE_IS_TRIVIAL 1
|
||||
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
||||
# define YYSTYPE_IS_DECLARED 1
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user