/* A Bison parser, made by GNU Bison 1.875d. */
/* Skeleton parser for Yacc-like parsing with Bison,
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, 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, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* As a special exception, when this file is copied by Bison into a
Bison output file, you may use that output file without restriction.
This special exception was added by the Free Software Foundation
in version 1.24 of Bison. */
/* 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. */
/* Skeleton name. */
/* Pure parsers. */
/* Using locations. */
#define YYLSP_NEEDED 0
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
};
#endif
/* Copy the first part of user declarations. */
#include <ctype.h>
#include <errno.h>
#include "k5-int.h"
struct param {
char *p;
};
/* An explanation of the tests being performed.
We do not want to overflow a 32 bit integer with out manipulations,
even for testing for overflow. Therefore we rely on the following:
The lex parser will not return a number > MAX_TIME (which is out 32
bit limit).
Therefore, seconds (s) will require
MIN_TIME < s < MAX_TIME
For subsequent tests, the logic is as follows:
If A < MAX_TIME and B < MAX_TIME
If we want to test if A+B < MAX_TIME, there are two cases
if (A > 0)
then A + B < MAX_TIME if B < MAX_TIME - A
else A + B < MAX_TIME always.
if we want to test if MIN_TIME < A + B
if A > 0 - then nothing to test
otherwise, we test if MIN_TIME - A < B.
We of course are testing for:
MIN_TIME < A + B < MAX_TIME
*/
res = (a) + (b)
#define DO(D,H,M,S) \
{ \
/* Overflow testing - this does not handle negative values well.. */ \
}
static int mylex (int *, char **);
static int yyparse (void *);
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
#else
# define YYERROR_VERBOSE 0
#endif
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
/* Line 191 of yacc.c. */
#endif
/* Copy the second part of user declarations. */
/* Line 214 of yacc.c. */
#if ! defined (yyoverflow) || YYERROR_VERBOSE
# ifndef YYFREE
# endif
# ifndef YYMALLOC
# endif
/* The parser invokes alloca or malloc; define the necessary symbols. */
# ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
# endif
# else
# else
# ifdef __GNUC__
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# else
# if defined (__STDC__) || defined (__cplusplus)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# endif
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
#if (! defined (yyoverflow) \
&& (! defined (__cplusplus) \
|| (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
short int yyss;
};
/* The size of the maximum gap between one aligned stack and the next. */
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
# else
do \
{ \
} \
while (0)
# endif
# endif
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
do \
{ \
} \
while (0)
#endif
#if defined (__STDC__) || defined (__cplusplus)
typedef signed char yysigned_char;
#else
typedef short int yysigned_char;
#endif
/* YYFINAL -- State number of the termination state. */
/* YYLAST -- Last index in YYTABLE. */
/* YYNTOKENS -- Number of terminals. */
/* YYNNTS -- Number of nonterminals. */
/* YYNRULES -- Number of rules. */
/* YYNRULES -- Number of states. */
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
static const unsigned char yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 6, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 7, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
8, 2, 2, 2, 9, 2, 2, 2, 2, 10,
2, 2, 2, 2, 2, 11, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 12
};
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
static const unsigned char yyprhs[] =
{
0, 0, 3, 5, 7, 9, 11, 14, 15, 17,
20, 23, 27, 31, 35, 38, 46, 52, 56, 58,
60, 64, 66, 70, 72
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
{
14, 0, -1, 19, -1, 3, -1, 4, -1, 15,
-1, 6, 15, -1, -1, 12, -1, 17, 16, -1,
17, 5, -1, 18, 8, 20, -1, 18, 9, 21,
-1, 18, 10, 22, -1, 18, 11, -1, 18, 6,
3, 7, 3, 7, 3, -1, 18, 7, 3, 7,
3, -1, 18, 7, 3, -1, 18, -1, 21, -1,
18, 9, 21, -1, 22, -1, 18, 10, 22, -1,
17, -1, 18, 11, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const unsigned char yyrline[] =
{
0, 136, 136, 137, 137, 138, 138, 139, 139, 140,
141, 143, 144, 145, 146, 147, 148, 149, 150, 154,
155, 158, 159, 162, 163
};
#endif
#if YYDEBUG || YYERROR_VERBOSE
/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
"$end", "error", "$undefined", "NUM", "LONGNUM", "OVERFLOW", "'-'",
"':'", "'d'", "'h'", "'m'", "'s'", "tok_WS", "$accept", "start",
"posnum", "num", "ws", "wsnum", "deltat", "opt_hms", "opt_ms", "opt_s", 0
};
#endif
# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
token YYLEX-NUM. */
static const unsigned short int yytoknum[] =
{
0, 256, 257, 258, 259, 260, 45, 58, 100, 104,
109, 115, 261
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const unsigned char yyr1[] =
{
0, 13, 14, 15, 15, 16, 16, 17, 17, 18,
18, 19, 19, 19, 19, 19, 19, 19, 19, 20,
20, 21, 21, 22, 22
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const unsigned char yyr2[] =
{
0, 2, 1, 1, 1, 1, 2, 0, 1, 2,
2, 3, 3, 3, 2, 7, 5, 3, 1, 1,
3, 1, 3, 1, 2
};
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
STATE-NUM when YYTABLE doesn't specify something else to do. Zero
means the default is an error. */
static const unsigned char yydefact[] =
{
7, 8, 0, 0, 18, 2, 1, 3, 4, 10,
0, 5, 9, 0, 0, 7, 7, 7, 14, 6,
0, 17, 23, 0, 11, 19, 21, 0, 12, 0,
13, 0, 0, 7, 7, 24, 0, 16, 20, 22,
0, 15
};
/* YYDEFGOTO[NTERM-NUM]. */
{
-1, 2, 11, 12, 22, 27, 5, 24, 25, 26
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
{
-10, -16, 14, 7, -2, -16, -16, -16, -16, -16,
21, -16, -16, 13, 25, -10, -10, -10, -16, -16,
22, 23, 7, 12, -16, -16, -16, 16, -16, 8,
-16, 28, 29, -10, -10, -16, 26, -16, -16, -16,
32, -16
};
/* YYPGOTO[NTERM-NUM]. */
{
-16, -16, 27, -16, 36, 0, -16, -16, -15, -14
};
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule which
number is the opposite. If zero, do what YYDEFACT says.
If YYTABLE_NINF, syntax error. */
static const unsigned char yytable[] =
{
4, 28, 1, 30, 13, 14, 15, 16, 17, 18,
7, 8, 9, 10, 6, 23, 20, 29, 38, 35,
39, 33, 34, 35, 7, 8, 34, 35, 21, 31,
32, 36, 37, 40, 29, 41, 3, 19
};
static const unsigned char yycheck[] =
{
0, 16, 12, 17, 6, 7, 8, 9, 10, 11,
3, 4, 5, 6, 0, 15, 3, 17, 33, 11,
34, 9, 10, 11, 3, 4, 10, 11, 3, 7,
7, 3, 3, 7, 34, 3, 0, 10
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const unsigned char yystos[] =
{
0, 12, 14, 17, 18, 19, 0, 3, 4, 5,
6, 15, 16, 6, 7, 8, 9, 10, 11, 15,
3, 3, 17, 18, 20, 21, 22, 18, 21, 18,
22, 7, 7, 9, 10, 11, 3, 3, 21, 22,
7, 3
};
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
#endif
#endif
#if ! defined (YYSIZE_T)
# if defined (__STDC__) || defined (__cplusplus)
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# endif
#endif
#if ! defined (YYSIZE_T)
# define YYSIZE_T unsigned int
#endif
#define YYEOF 0
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
Once GCC version 2 has supplanted version 1, this can go. */
do \
{ \
YYPOPSTACK; \
goto yybackup; \
} \
else \
{ \
yyerror ("syntax error: cannot back up");\
YYERROR; \
} \
while (0)
/* YYLLOC_DEFAULT -- Compute the default location (before the actions
are run). */
#ifndef YYLLOC_DEFAULT
#endif
/* YYLEX -- calling `yylex' with the right arguments. */
#ifdef YYLEX_PARAM
#else
#endif
/* Enable debugging if requested. */
#if YYDEBUG
# ifndef YYFPRINTF
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
# endif
do { \
if (yydebug) \
} while (0)
do { \
if (yydebug) \
yysymprint Args; \
} while (0)
do { \
if (yydebug) \
{ \
yysymprint (stderr, \
} \
} while (0)
/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included). |
`------------------------------------------------------------------*/
#if defined (__STDC__) || defined (__cplusplus)
static void
#else
static void
short int *bottom;
short int *top;
#endif
{
}
do { \
if (yydebug) \
} while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
#if defined (__STDC__) || defined (__cplusplus)
static void
#else
static void
int yyrule;
#endif
{
int yyi;
/* Print the symbols being reduced, and their result. */
}
do { \
if (yydebug) \
yy_reduce_print (Rule); \
} while (0)
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
int yydebug;
#else /* !YYDEBUG */
#endif /* !YYDEBUG */
/* YYINITDEPTH -- initial size of the parser's stacks. */
#ifndef YYINITDEPTH
#endif
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
if the built-in stack extension method is used).
Do not make this value too large; the results are undefined if
SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */
#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
#endif
#ifndef YYMAXDEPTH
#endif
#if YYERROR_VERBOSE
# ifndef yystrlen
# else
/* Return the length of YYSTR. */
static YYSIZE_T
# if defined (__STDC__) || defined (__cplusplus)
# else
const char *yystr;
# endif
{
while (*yys++ != '\0')
continue;
}
# endif
# endif
# ifndef yystpcpy
# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
static char *
# if defined (__STDC__) || defined (__cplusplus)
# else
char *yydest;
const char *yysrc;
# endif
{
continue;
return yyd - 1;
}
# endif
# endif
#endif /* !YYERROR_VERBOSE */
#if YYDEBUG
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
#if defined (__STDC__) || defined (__cplusplus)
static void
#else
static void
int yytype;
#endif
{
/* Pacify ``unused variable'' warnings. */
(void) yyvaluep;
{
# ifdef YYPRINT
# endif
}
else
switch (yytype)
{
default:
break;
}
}
#endif /* ! YYDEBUG */
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
#if defined (__STDC__) || defined (__cplusplus)
static void
#else
static void
int yytype;
#endif
{
/* Pacify ``unused variable'' warnings. */
(void) yyvaluep;
switch (yytype)
{
default:
break;
}
}
/* 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 */
/*----------.
| yyparse. |
`----------*/
#ifdef YYPARSE_PARAM
# if defined (__STDC__) || defined (__cplusplus)
# else
int yyparse (YYPARSE_PARAM)
void *YYPARSE_PARAM;
# endif
#else /* ! YYPARSE_PARAM */
#if defined (__STDC__) || defined (__cplusplus)
int
yyparse (void)
#else
int
yyparse ()
#endif
#endif
{
/* The lookahead symbol. */
int yychar;
/* The semantic value of the lookahead symbol. */
/* Number of syntax errors so far. */
int yynerrs;
register int yystate;
register int yyn;
int yyresult;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
/* Lookahead token as an internal (translated) token number. */
int yytoken = 0;
/* Three stacks and their tools:
`yyss': related to states,
`yyvs': related to semantic values,
`yyls': related to locations.
Refer to the stacks thru separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The state stack. */
register short int *yyssp;
/* The semantic value stack. */
/* The variables used to return semantic value and location from the
action routines. */
/* When reducing, the number of symbols on the RHS of the reduced
rule. */
int yylen;
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
/* Initialize stack pointers.
Waste one element of value and location stack
so that they stay on the same level as the state stack.
The wasted elements are never initialized. */
goto yysetstate;
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate. |
`------------------------------------------------------------*/
/* In all cases, when you get here, the value and location stacks
have just been pushed. so pushing a state here evens the stacks.
*/
yyssp++;
{
/* Get the current used size of the three stacks, in elements. */
#ifdef yyoverflow
{
/* Give user a chance to reallocate the stack. Use copies of
these so that the &'s don't force the real ones into
memory. */
/* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. This used to be a
conditional around just the two extra args, but that might
be undefined if yyoverflow is a macro. */
yyoverflow ("parser stack overflow",
&yystacksize);
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
goto yyoverflowlab;
# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
goto yyoverflowlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
{
if (! yyptr)
goto yyoverflowlab;
}
# endif
#endif /* no yyoverflow */
(unsigned long int) yystacksize));
}
goto yybackup;
/*-----------.
| yybackup. |
`-----------*/
/* Do appropriate processing given the current state. */
/* Read a lookahead token if we need one and don't already have one. */
/* yyresume: */
/* First try to decide what to do without reference to lookahead token. */
if (yyn == YYPACT_NINF)
goto yydefault;
/* Not known => get a lookahead token if don't already have one. */
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
{
}
{
}
else
{
}
/* If the proper action on seeing token YYTOKEN is to reduce or to
detect an error, take that action. */
goto yydefault;
if (yyn <= 0)
{
goto yyerrlab;
goto yyreduce;
}
/* Shift the lookahead token. */
/* Discard the token being shifted unless it is eof. */
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
goto yynewstate;
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
if (yyn == 0)
goto yyerrlab;
goto yyreduce;
/*-----------------------------.
| yyreduce -- Do a reduction. |
`-----------------------------*/
/* yyn is the number of a rule to reduce with. */
/* If YYLEN is nonzero, implement the default value of the action:
`$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */
switch (yyn)
{
case 6:
break;
case 9:
break;
case 10:
{ YYERROR; ;}
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
break;
case 16:
break;
case 17:
break;
case 18:
break;
case 20:
break;
case 22:
break;
case 23:
break;
}
/* Line 1010 of yacc.c. */
/* Now `shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
number reduced by. */
else
goto yynewstate;
/*------------------------------------.
| yyerrlab -- here on detecting error |
`------------------------------------*/
/* If not already recovering from an error, report this error. */
if (!yyerrstatus)
{
++yynerrs;
#if YYERROR_VERBOSE
{
const char* yyprefix;
char *yymsg;
int yyx;
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. */
/* Stay within bounds of both yycheck and yytname. */
int yycount = 0;
yyprefix = ", expecting ";
{
yycount += 1;
if (yycount == 5)
{
yysize = 0;
break;
}
}
yysize += (sizeof ("syntax error, unexpected ")
if (yymsg != 0)
{
if (yycount < 5)
{
yyprefix = ", expecting ";
{
yyprefix = " or ";
}
}
}
else
yyerror ("syntax error; also virtual memory exhausted");
}
else
#endif /* YYERROR_VERBOSE */
yyerror ("syntax error");
}
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
error, discard it. */
{
/* If at end of input, pop the error token,
then the rest of the stack, then return failure. */
for (;;)
{
}
}
else
{
}
}
/* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
#ifdef __GNUC__
/* Pacify GCC when the user code never invokes YYERROR and the label
yyerrorlab therefore never appears in user code. */
if (0)
goto yyerrorlab;
#endif
goto yyerrlab1;
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
for (;;)
{
if (yyn != YYPACT_NINF)
{
{
if (0 < yyn)
break;
}
}
/* Pop the current state because it cannot handle the error token. */
}
goto yynewstate;
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/
yyresult = 0;
goto yyreturn;
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
yyresult = 1;
goto yyreturn;
#ifndef yyoverflow
/*----------------------------------------------.
| yyoverflowlab -- parser overflow comes here. |
`----------------------------------------------*/
yyerror ("parser stack overflow");
yyresult = 2;
/* Fall through. */
#endif
#ifndef yyoverflow
YYSTACK_FREE (yyss);
#endif
return yyresult;
}
static int
{
int num, c;
#define P (*pp)
char *orig_p = P;
#ifdef isascii
if (!isascii (*P))
return 0;
#endif
switch (c = *P++) {
case '-':
case ':':
case 'd':
case 'h':
case 'm':
case 's':
return c;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
/* XXX assumes ASCII */
num = c - '0';
while (isdigit ((int) *P)) {
return OVERFLOW;
num *= 10;
return OVERFLOW;
num += *P++ - '0';
}
case ' ':
case '\t':
case '\n':
while (isspace ((int) *P))
P++;
return tok_WS;
default:
return YYEOF;
}
}
{
struct param p;
p.delta = 0;
p.p = string;
if (yyparse (&p))
return KRB5_DELTAT_BADFORMAT;
return 0;
}