This commit is contained in:
Ward Fisher 2012-09-07 16:38:03 +00:00
parent 54a3c8290a
commit c802a16c06
4 changed files with 215 additions and 230 deletions

View File

@ -401,7 +401,7 @@ CHECK_FUNCTION_EXISTS(sysconf HAVE_SYSCONF)
CHECK_FUNCTION_EXISTS(mremap HAVE_MREMAP)
CHECK_FUNCTION_EXISTS(getrlimit HAVE_GETRLIMIT)
CHECK_SYMBOL_EXISTS(RLIM_INFINITY "sys/resource.h;resource.h" HAVE_RLIM_INFINITY)
#CHECK_SYMBOL_EXISTS(RLIM_INFINITY "resource.h" HAVE_RLIM_INFINITY)
#INCLUDE_DIRECTORIES(${RESOURCE_H_PATH})
#####
# End system inspection checks.

View File

@ -202,12 +202,12 @@
/* Some linux systems have getrlimit, but
no definition of RLIM_INFINITY */
#cmakedefine HAVE_RLIM_INFINITY
#ifdef HAVE_RLIM_INFINITY
//#cmakedefine HAVE_RLIM_INFINITY
//#ifdef HAVE_RLIM_INFINITY
#cmakedefine HAVE_GETRLIMIT
#else
#undef HAVE_GETRLIMIT
#endif
//#else
// #undef HAVE_GETRLIMIT
//#endif
#cmakedefine HAVE_FSYNC
#cmakedefine HAVE_H5PGET_FAPL_MPIPOSIX 1

View File

@ -1,8 +1,8 @@
/* A Bison parser, made by GNU Bison 2.5. */
/* A Bison parser, made by GNU Bison 2.6.2. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
Copyright (C) 1984, 1989-1990, 2000-2012 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
@ -44,7 +44,7 @@
#define YYBISON 1
/* Bison version. */
#define YYBISON_VERSION "2.5"
#define YYBISON_VERSION "2.6.2"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@ -58,8 +58,6 @@
/* Pull parsers. */
#define YYPULL 1
/* Using locations. */
#define YYLSP_NEEDED 0
/* Substitute the variable and function names. */
#define yyparse ncgparse
@ -70,11 +68,9 @@
#define yydebug ncgdebug
#define yynerrs ncgnerrs
/* Copy the first part of user declarations. */
/* Line 268 of yacc.c */
#line 9 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 336 of yacc.c */
#line 9 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
#ifdef sccs
static char SccsId[] = "$Id: ncgen.y,v 1.34 2010/03/31 18:18:41 dmh Exp $";
@ -147,14 +143,16 @@ void yyerror(char*);
int yyerror(char*);
#endif
/* Line 336 of yacc.c */
#line 148 "ncgen.tab.c"
/* Line 268 of yacc.c */
#line 153 "ncgen.tab.c"
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
# ifndef YY_NULL
# if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULL nullptr
# else
# define YY_NULL 0
# endif
# endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
@ -164,11 +162,17 @@ int yyerror(char*);
# define YYERROR_VERBOSE 0
#endif
/* Enabling the token table. */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
/* In a future release of Bison, this section will be replaced
by #include "ncgen.tab.h". */
#ifndef NCG_NCGEN_TAB_H
# define NCG_NCGEN_TAB_H
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int ncgdebug;
#endif
/* Tokens. */
#ifndef YYTOKENTYPE
@ -200,7 +204,6 @@ int yyerror(char*);
#endif
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
@ -208,12 +211,28 @@ typedef int YYSTYPE;
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE ncglval;
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int ncgparse (void *YYPARSE_PARAM);
#else
int ncgparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int ncgparse (void);
#else
int ncgparse ();
#endif
#endif /* ! YYPARSE_PARAM */
#endif /* !NCG_NCGEN_TAB_H */
/* Copy the second part of user declarations. */
/* Line 343 of yacc.c */
#line 217 "ncgen.tab.c"
/* Line 353 of yacc.c */
#line 236 "ncgen.tab.c"
#ifdef short
# undef short
@ -319,6 +338,7 @@ YYID (yyi)
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
@ -410,20 +430,20 @@ union yyalloc
#endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from FROM to TO. The source and destination do
/* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
# else
# define YYCOPY(To, From, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
# define YYCOPY(Dst, Src, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (YYID (0))
# endif
# endif
@ -538,7 +558,7 @@ static const yytype_uint16 yyrline[] =
};
#endif
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
#if YYDEBUG || YYERROR_VERBOSE || 0
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
@ -553,7 +573,7 @@ static const char *const yytname[] =
"vardecl", "type", "varlist", "varspec", "$@3", "var", "dimspec",
"dimlist", "vdim", "attdecl", "$@4", "gattdecl", "$@5", "att", "gatt",
"avar", "attr", "attvallist", "aconst", "attconst", "datasection",
"datadecls", "datadecl", "$@6", "constlist", "dconst", "$@7", "const", 0
"datadecls", "datadecl", "$@6", "constlist", "dconst", "$@7", "const", YY_NULL
};
#endif
@ -732,17 +752,18 @@ static const yytype_uint8 yystos[] =
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
@ -752,32 +773,33 @@ while (YYID (0))
#define YYTERROR 1
#define YYERRCODE 256
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
If N is 0, then set CURRENT to the empty location which ends
the previous symbol: RHS[0] (always defined). */
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
# define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (YYID (0))
#endif
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
/* This macro is provided for backward compatibility. */
@ -837,6 +859,8 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep)
YYSTYPE const * const yyvaluep;
#endif
{
FILE *yyo = yyoutput;
YYUSE (yyo);
if (!yyvaluep)
return;
# ifdef YYPRINT
@ -1088,12 +1112,12 @@ static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
yytype_int16 *yyssp, int yytoken)
{
YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]);
YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
YYSIZE_T yysize = yysize0;
YYSIZE_T yysize1;
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
/* Internationalized format string. */
const char *yyformat = 0;
const char *yyformat = YY_NULL;
/* Arguments of yyformat. */
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
/* Number of reported tokens (one for the "unexpected", one per
@ -1153,7 +1177,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
break;
}
yyarg[yycount++] = yytname[yyx];
yysize1 = yysize + yytnamerr (0, yytname[yyx]);
yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
if (! (yysize <= yysize1
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
@ -1245,20 +1269,6 @@ yydestruct (yymsg, yytype, yyvaluep)
}
/* Prevent warnings from -Wmissing-prototypes. */
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int yyparse (void *YYPARSE_PARAM);
#else
int yyparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int yyparse (void);
#else
int yyparse ();
#endif
#endif /* ! YYPARSE_PARAM */
/* The lookahead symbol. */
@ -1305,7 +1315,7 @@ yyparse ()
`yyss': related to states.
`yyvs': related to semantic values.
Refer to the stacks thru separate pointers, to allow yyoverflow
Refer to the stacks through separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The state stack. */
@ -1359,7 +1369,6 @@ yyparse ()
The wasted elements are never initialized. */
yyssp = yyss;
yyvsp = yyvs;
goto yysetstate;
/*------------------------------------------------------------.
@ -1537,16 +1546,14 @@ yyreduce:
switch (yyn)
{
case 2:
/* Line 1806 of yacc.c */
#line 114 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 114 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ init_netcdf(); }
break;
case 3:
/* Line 1806 of yacc.c */
#line 117 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 117 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
if (derror_count == 0)
define_netcdf(netcdfname);
@ -1556,9 +1563,8 @@ yyreduce:
break;
case 4:
/* Line 1806 of yacc.c */
#line 125 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 125 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
if (derror_count == 0)
close_netcdf();
@ -1566,9 +1572,8 @@ yyreduce:
break;
case 11:
/* Line 1806 of yacc.c */
#line 140 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 140 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ if (int_val <= 0)
derror("dimension length must be positive");
dims[ndims].size = int_val;
@ -1577,9 +1582,8 @@ yyreduce:
break;
case 12:
/* Line 1806 of yacc.c */
#line 146 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 146 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ /* for rare case where 2^31 < dimsize < 2^32 */
if (double_val <= 0)
derror("dimension length must be positive");
@ -1593,9 +1597,8 @@ yyreduce:
break;
case 13:
/* Line 1806 of yacc.c */
#line 157 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 157 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ if (rec_dim != -1)
derror("only one NC_UNLIMITED dimension allowed");
rec_dim = ndims; /* the unlimited (record) dimension */
@ -1605,9 +1608,8 @@ yyreduce:
break;
case 14:
/* Line 1806 of yacc.c */
#line 165 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 165 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
if ((yyvsp[(1) - (1)])->is_dim == 1) {
derror( "duplicate dimension declaration for %s",
@ -1626,51 +1628,44 @@ yyreduce:
break;
case 27:
/* Line 1806 of yacc.c */
#line 197 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 197 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ type_code = NC_BYTE; }
break;
case 28:
/* Line 1806 of yacc.c */
#line 198 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 198 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ type_code = NC_CHAR; }
break;
case 29:
/* Line 1806 of yacc.c */
#line 199 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 199 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ type_code = NC_SHORT; }
break;
case 30:
/* Line 1806 of yacc.c */
#line 200 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 200 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ type_code = NC_INT; }
break;
case 31:
/* Line 1806 of yacc.c */
#line 201 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 201 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ type_code = NC_FLOAT; }
break;
case 32:
/* Line 1806 of yacc.c */
#line 202 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 202 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ type_code = NC_DOUBLE; }
break;
case 35:
/* Line 1806 of yacc.c */
#line 208 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 208 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
static struct vars dummyvar;
@ -1706,9 +1701,8 @@ yyreduce:
break;
case 36:
/* Line 1806 of yacc.c */
#line 241 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 241 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
vars[nvars].ndims = nvdims;
nvars++;
@ -1716,9 +1710,8 @@ yyreduce:
break;
case 42:
/* Line 1806 of yacc.c */
#line 255 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 255 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
if (nvdims >= NC_MAX_VAR_DIMS) {
derror("%s has too many dimensions",vars[nvars].name);
@ -1741,54 +1734,48 @@ yyreduce:
break;
case 43:
/* Line 1806 of yacc.c */
#line 276 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 276 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
defatt();
}
break;
case 44:
/* Line 1806 of yacc.c */
#line 280 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 280 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
equalatt();
}
break;
case 45:
/* Line 1806 of yacc.c */
#line 285 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 285 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
defatt();
}
break;
case 46:
/* Line 1806 of yacc.c */
#line 289 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 289 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
equalatt();
}
break;
case 48:
/* Line 1806 of yacc.c */
#line 297 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 297 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
varnum = NC_GLOBAL; /* handle of "global" attribute */
}
break;
case 49:
/* Line 1806 of yacc.c */
#line 303 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 303 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{ if ((yyvsp[(1) - (1)])->is_var == 1)
varnum = (yyvsp[(1) - (1)])->vnum;
else {
@ -1800,9 +1787,8 @@ yyreduce:
break;
case 50:
/* Line 1806 of yacc.c */
#line 313 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 313 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
/* make sure atts array will hold attributes */
grow_aarray(natts, /* must hold natts+1 atts */
@ -1815,9 +1801,8 @@ yyreduce:
break;
case 53:
/* Line 1806 of yacc.c */
#line 327 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 327 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
if (valtype == NC_UNSPECIFIED)
valtype = atype_code;
@ -1827,9 +1812,8 @@ yyreduce:
break;
case 54:
/* Line 1806 of yacc.c */
#line 336 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 336 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_CHAR;
*char_valp++ = char_val;
@ -1838,9 +1822,8 @@ yyreduce:
break;
case 55:
/* Line 1806 of yacc.c */
#line 342 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 342 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_CHAR;
{
@ -1856,9 +1839,8 @@ yyreduce:
break;
case 56:
/* Line 1806 of yacc.c */
#line 355 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 355 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_BYTE;
*byte_valp++ = byte_val;
@ -1867,9 +1849,8 @@ yyreduce:
break;
case 57:
/* Line 1806 of yacc.c */
#line 361 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 361 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_SHORT;
*short_valp++ = short_val;
@ -1878,9 +1859,8 @@ yyreduce:
break;
case 58:
/* Line 1806 of yacc.c */
#line 367 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 367 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_INT;
*int_valp++ = int_val;
@ -1889,9 +1869,8 @@ yyreduce:
break;
case 59:
/* Line 1806 of yacc.c */
#line 373 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 373 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_FLOAT;
*float_valp++ = float_val;
@ -1900,9 +1879,8 @@ yyreduce:
break;
case 60:
/* Line 1806 of yacc.c */
#line 379 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 379 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_DOUBLE;
*double_valp++ = double_val;
@ -1911,9 +1889,8 @@ yyreduce:
break;
case 66:
/* Line 1806 of yacc.c */
#line 395 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 395 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
valtype = vars[varnum].type; /* variable type */
valnum = 0; /* values accumulated for variable */
@ -1967,9 +1944,8 @@ yyreduce:
break;
case 67:
/* Line 1806 of yacc.c */
#line 446 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 446 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
if (valnum < var_len) { /* leftovers */
nc_fill(valtype,
@ -1987,9 +1963,8 @@ yyreduce:
break;
case 70:
/* Line 1806 of yacc.c */
#line 465 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 465 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
if(valnum >= var_len) {
if (vars[varnum].dims[0] != rec_dim) { /* not recvar */
@ -2017,9 +1992,8 @@ yyreduce:
break;
case 71:
/* Line 1806 of yacc.c */
#line 490 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 490 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
if (not_a_string) {
switch (valtype) {
@ -2048,9 +2022,8 @@ yyreduce:
break;
case 72:
/* Line 1806 of yacc.c */
#line 518 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 518 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_CHAR;
switch (valtype) {
@ -2079,9 +2052,8 @@ yyreduce:
break;
case 73:
/* Line 1806 of yacc.c */
#line 544 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 544 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
not_a_string = 0;
atype_code = NC_CHAR;
@ -2139,9 +2111,8 @@ yyreduce:
break;
case 74:
/* Line 1806 of yacc.c */
#line 599 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 599 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_BYTE;
switch (valtype) {
@ -2170,9 +2141,8 @@ yyreduce:
break;
case 75:
/* Line 1806 of yacc.c */
#line 625 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 625 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_SHORT;
switch (valtype) {
@ -2201,9 +2171,8 @@ yyreduce:
break;
case 76:
/* Line 1806 of yacc.c */
#line 651 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 651 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_INT;
switch (valtype) {
@ -2232,9 +2201,8 @@ yyreduce:
break;
case 77:
/* Line 1806 of yacc.c */
#line 677 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 677 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_FLOAT;
switch (valtype) {
@ -2263,9 +2231,8 @@ yyreduce:
break;
case 78:
/* Line 1806 of yacc.c */
#line 703 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 703 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
atype_code = NC_DOUBLE;
switch (valtype) {
@ -2297,9 +2264,8 @@ yyreduce:
break;
case 79:
/* Line 1806 of yacc.c */
#line 732 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 1787 of yacc.c */
#line 732 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
{
/* store fill_value */
switch (valtype) {
@ -2334,9 +2300,8 @@ yyreduce:
break;
/* Line 1806 of yacc.c */
#line 2340 "ncgen.tab.c"
/* Line 1787 of yacc.c */
#line 2305 "ncgen.tab.c"
default: break;
}
/* User semantic actions sometimes alter yychar, and that requires
@ -2523,7 +2488,7 @@ yyabortlab:
yyresult = 1;
goto yyreturn;
#if !defined(yyoverflow) || YYERROR_VERBOSE
#if !defined yyoverflow || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
@ -2565,9 +2530,8 @@ yyreturn:
}
/* Line 2067 of yacc.c */
#line 767 "/home/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* Line 2048 of yacc.c */
#line 767 "/Users/wfisher/Desktop/win_netcdf/ncgen3/ncgen.y"
/* HELPER PROGRAMS */
@ -2697,4 +2661,3 @@ clearout(void) /* reset symbol table to empty */
#define YY_NO_INPUT
#include "ncgenyy.c"

View File

@ -1,8 +1,8 @@
/* A Bison parser, made by GNU Bison 2.5. */
/* A Bison parser, made by GNU Bison 2.6.2. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
Copyright (C) 1984, 1989-1990, 2000-2012 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
@ -30,6 +30,15 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef NCG_NCGEN_TAB_H
# define NCG_NCGEN_TAB_H
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int ncgdebug;
#endif
/* Tokens. */
#ifndef YYTOKENTYPE
@ -61,7 +70,6 @@
#endif
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
@ -71,4 +79,18 @@ typedef int YYSTYPE;
extern YYSTYPE ncglval;
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int ncgparse (void *YYPARSE_PARAM);
#else
int ncgparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int ncgparse (void);
#else
int ncgparse ();
#endif
#endif /* ! YYPARSE_PARAM */
#endif /* !NCG_NCGEN_TAB_H */