Newer
Older
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation 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. */
Kevin P. Fleming
committed
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
/* Identify Bison output. */
#define YYBISON 1
#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 1
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* Using locations. */
#define YYLSP_NEEDED 1
#define yyparse ast_yyparse
#define yylex ast_yylex
#define yyerror ast_yyerror
#define yylval ast_yylval
#define yychar ast_yychar
#define yydebug ast_yydebug
#define yynerrs ast_yynerrs
#define yylloc ast_yylloc
/* Copy the first part of user declarations. */
/* Line 189 of yacc.c */
/* Written by Pace Willisson (pace@blitz.com)
* and placed in the public domain.
*
* Largely rewritten by J.T. Conklin (jtc@wimsey.com)
*
* And then overhauled twice by Steve Murphy (murf@digium.com)
* to add double-quoted strings, allow mult. spaces, improve
* error messages, and then to fold in a flex scanner for the
* yylex operation.
*
* $FreeBSD: src/bin/expr/expr.y,v 1.16 2000/07/22 10:59:36 se Exp $
*/
#define ASTMM_LIBC ASTMM_REDIRECT
#include "asterisk.h"
#include <sys/types.h>
#include <stdio.h>
#if defined(STANDALONE) || defined(STANDALONE2)
#ifndef __USE_ISOC99
#define __USE_ISOC99 1
#endif
#endif
Kevin P. Fleming
committed
#ifdef __USE_ISOC99
#define FP___PRINTF "%.18Lg"
#define FP___TYPE long double
#else
#define FP___PRINTF "%.16g"
#define FP___TYPE double
#endif
#ifdef HAVE_COSL
#define FUNC_COS cosl
#elif defined(HAVE_COS)
#define FUNC_COS (long double)cos
#ifdef HAVE_SINL
#define FUNC_SIN sinl
#elif defined(HAVE_SIN)
#define FUNC_SIN (long double)sin
#endif
#ifdef HAVE_TANL
#define FUNC_TAN tanl
#elif defined(HAVE_TAN)
#define FUNC_TAN (long double)tan
#endif
#ifdef HAVE_ACOSL
#define FUNC_ACOS acosl
#elif defined(HAVE_ACOS)
#define FUNC_ACOS (long double)acos
#endif
#ifdef HAVE_ASINL
#define FUNC_ASIN asinl
#elif defined(HAVE_ASIN)
#define FUNC_ASIN (long double)asin
#endif
#ifdef HAVE_ATANL
#define FUNC_ATAN atanl
#elif defined(HAVE_ATAN)
#define FUNC_ATAN (long double)atan
#endif
#ifdef HAVE_ATAN2L
#define FUNC_ATAN2 atan2l
#elif defined(HAVE_ATAN2)
#define FUNC_ATAN2 (long double)atan2
#endif
#ifdef HAVE_POWL
#define FUNC_POW powl
#elif defined(HAVE_POW)
#define FUNC_POW (long double)pow
#endif
#ifdef HAVE_SQRTL
#define FUNC_SQRT sqrtl
#elif defined(HAVE_SQRT)
#define FUNC_SQRT (long double)sqrt
#endif
#ifdef HAVE_RINTL
#define FUNC_RINT rintl
#elif defined(HAVE_RINT)
#define FUNC_RINT (long double)rint
#endif
#ifdef HAVE_EXPL
#define FUNC_EXP expl
#elif defined(HAVE_EXP)
#define FUNC_EXP (long double)exp
#endif
#ifdef HAVE_LOGL
#define FUNC_LOG logl
#elif defined(HAVE_LOG)
#define FUNC_LOG (long double)log
#endif
#ifdef HAVE_REMAINDERL
#define FUNC_REMAINDER remainderl
#elif defined(HAVE_REMAINDER)
#define FUNC_REMAINDER (long double)remainder
#endif
#ifdef HAVE_FMODL
#define FUNC_FMOD fmodl
#elif defined(HAVE_FMOD)
#define FUNC_FMOD (long double)fmod
#endif
#ifdef HAVE_STRTOLD
#define FUNC_STRTOD strtold
Loading
Loading full blame...