LAL  7.5.0.1-bede9b2
getdate.c File Reference

Prototypes

static int yyerror (const char *s ATTRIBUTE_UNUSED)
 
static int yylex (YYSTYPE *lvalp, parser_control *pc)
 
static void yydestruct (char *yymsg, int yytype, YYSTYPE *yyvaluep) const
 
int yyparse ()
 
int yyparse (void *YYPARSE_PARAM)
 
static int to_hour (int hours, int meridian)
 
static int to_year (textint textyear)
 
static table const * lookup_zone (parser_control const *pc, char const *name)
 
static int tm_diff (struct tm const *a, struct tm const *b)
 
static table const * lookup_word (parser_control const *pc, char *word)
 
time_t get_date (const char *p, const time_t *now)
 

Go to the source code of this file.

Data Structures

struct  textint
 
struct  table
 
struct  parser_control
 
union  YYSTYPE
 
union  yyalloc
 

Macros

#define YYBISON   1
 
#define YYBISON_VERSION   "2.5"
 
#define YYSKELETON_NAME   "yacc.c"
 
#define YYPURE   1
 
#define YYPUSH   0
 
#define YYPULL   1
 
#define YYLSP_NEEDED   0
 
#define IN_CTYPE_DOMAIN(c)   1
 
#define ISSPACE(c)   (IN_CTYPE_DOMAIN (c) && isspace (c))
 
#define ISALPHA(c)   (IN_CTYPE_DOMAIN (c) && isalpha (c))
 
#define ISLOWER(c)   (IN_CTYPE_DOMAIN (c) && islower (c))
 
#define ISDIGIT_LOCALE(c)   (IN_CTYPE_DOMAIN (c) && isdigit (c))
 
#define ISDIGIT(c)   ((unsigned) (c) - '0' <= 9)
 
#define __attribute__(x)
 
#define ATTRIBUTE_UNUSED   __attribute__ ((__unused__))
 
#define EPOCH_YEAR   1970
 
#define TM_YEAR_BASE   1900
 
#define HOUR(x)   ((x) * 60)
 
#define PC   (* (parser_control *) parm)
 
#define YYLEX_PARAM   parm
 
#define YYPARSE_PARAM   parm
 
#define YYDEBUG   0
 
#define YYERROR_VERBOSE   0
 
#define YYTOKEN_TABLE   0
 
#define YYTOKENTYPE
 
#define YYSTYPE_IS_TRIVIAL   1
 
#define yystype   YYSTYPE /* obsolescent; will be withdrawn */
 
#define YYSTYPE_IS_DECLARED   1
 
#define YYSIZE_T   unsigned int
 
#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
 
#define YY_(msgid)   msgid
 
#define YYUSE(e)   ((void) (e))
 
#define YYID(n)   (n)
 
#define YYSTACK_ALLOC   YYMALLOC
 
#define YYSTACK_FREE   YYFREE
 
#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM
 
#define YYMALLOC   malloc
 
#define YYFREE   free
 
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
 
#define YYSTACK_BYTES(N)
 
#define YYCOPY_NEEDED   1
 
#define YYSTACK_RELOCATE(Stack_alloc, Stack)
 
#define YYCOPY(To, From, Count)
 
#define YYFINAL   2
 
#define YYLAST   57
 
#define YYNTOKENS   22
 
#define YYNNTS   12
 
#define YYNRULES   55
 
#define YYNSTATES   67
 
#define YYUNDEFTOK   2
 
#define YYMAXUTOK   273
 
#define YYTRANSLATE(YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
 
#define YYPACT_NINF   -17
 
#define YYTABLE_NINF   -1
 
#define yypact_value_is_default(yystate)    ((yystate) == (-17))
 
#define yytable_value_is_error(yytable_value)    YYID (0)
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYEMPTY   (-2)
 
#define YYEOF   0
 
#define YYACCEPT   goto yyacceptlab
 
#define YYABORT   goto yyabortlab
 
#define YYERROR   goto yyerrorlab
 
#define YYFAIL   goto yyerrlab
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(Token, Value)
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#define YYRHSLOC(Rhs, K)   ((Rhs)[K])
 
#define YYLLOC_DEFAULT(Current, Rhs, N)
 
#define YY_LOCATION_PRINT(File, Loc)   ((void) 0)
 
#define YYLEX   yylex (&yylval, YYLEX_PARAM)
 
#define YYDPRINTF(Args)
 
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
 
#define YY_STACK_PRINT(Bottom, Top)
 
#define YY_REDUCE_PRINT(Rule)
 
#define YYINITDEPTH   200
 
#define YYMAXDEPTH   10000
 
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 

Typedefs

typedef unsigned char yytype_uint8
 
typedef short int yytype_int8
 
typedef unsigned short int yytype_uint16
 
typedef short int yytype_int16
 

Enumerations

enum  { MERam , MERpm , MER24 }
 
enum  yytokentype {
  tAGO = 258 , tDST = 259 , tDAY = 260 , tDAY_UNIT = 261 ,
  tDAYZONE = 262 , tHOUR_UNIT = 263 , tLOCAL_ZONE = 264 , tMERIDIAN = 265 ,
  tMINUTE_UNIT = 266 , tMONTH = 267 , tMONTH_UNIT = 268 , tSEC_UNIT = 269 ,
  tYEAR_UNIT = 270 , tZONE = 271 , tSNUMBER = 272 , tUNUMBER = 273
}
 

Variables

static const yytype_uint8 yytranslate []
 
static const yytype_uint8 yyr1 []
 
static const yytype_uint8 yyr2 []
 
static const yytype_uint8 yydefact []
 
static const yytype_int8 yydefgoto []
 
static const yytype_int8 yypact []
 
static const yytype_int8 yypgoto []
 
static const yytype_uint8 yytable []
 
static const yytype_uint8 yycheck []
 
static const yytype_uint8 yystos []
 
static table const meridian_table []
 
static table const dst_table []
 
static table const month_and_day_table []
 
static table const time_units_table []
 
static table const relative_time_table []
 
static table const time_zone_table []
 
static table const military_table []
 

Macro Definition Documentation

◆ YYBISON

#define YYBISON   1

Definition at line 44 of file getdate.c.

◆ YYBISON_VERSION

#define YYBISON_VERSION   "2.5"

Definition at line 47 of file getdate.c.

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

Definition at line 50 of file getdate.c.

◆ YYPURE

#define YYPURE   1

Definition at line 53 of file getdate.c.

◆ YYPUSH

#define YYPUSH   0

Definition at line 56 of file getdate.c.

◆ YYPULL

#define YYPULL   1

Definition at line 59 of file getdate.c.

◆ YYLSP_NEEDED

#define YYLSP_NEEDED   0

Definition at line 62 of file getdate.c.

◆ IN_CTYPE_DOMAIN

#define IN_CTYPE_DOMAIN (   c)    1

Definition at line 121 of file getdate.c.

◆ ISSPACE

#define ISSPACE (   c)    (IN_CTYPE_DOMAIN (c) && isspace (c))

Definition at line 126 of file getdate.c.

◆ ISALPHA

#define ISALPHA (   c)    (IN_CTYPE_DOMAIN (c) && isalpha (c))

Definition at line 127 of file getdate.c.

◆ ISLOWER

#define ISLOWER (   c)    (IN_CTYPE_DOMAIN (c) && islower (c))

Definition at line 128 of file getdate.c.

◆ ISDIGIT_LOCALE

#define ISDIGIT_LOCALE (   c)    (IN_CTYPE_DOMAIN (c) && isdigit (c))

Definition at line 129 of file getdate.c.

◆ ISDIGIT

#define ISDIGIT (   c)    ((unsigned) (c) - '0' <= 9)

Definition at line 139 of file getdate.c.

◆ __attribute__

#define __attribute__ (   x)

Definition at line 146 of file getdate.c.

◆ ATTRIBUTE_UNUSED

#define ATTRIBUTE_UNUSED   __attribute__ ((__unused__))

Definition at line 150 of file getdate.c.

◆ EPOCH_YEAR

#define EPOCH_YEAR   1970

Definition at line 153 of file getdate.c.

◆ TM_YEAR_BASE

#define TM_YEAR_BASE   1900

Definition at line 154 of file getdate.c.

◆ HOUR

#define HOUR (   x)    ((x) * 60)

Definition at line 156 of file getdate.c.

◆ PC

#define PC   (* (parser_control *) parm)

Definition at line 226 of file getdate.c.

◆ YYLEX_PARAM

#define YYLEX_PARAM   parm

Definition at line 227 of file getdate.c.

◆ YYPARSE_PARAM

#define YYPARSE_PARAM   parm

Definition at line 228 of file getdate.c.

◆ YYDEBUG

#define YYDEBUG   0

Definition at line 237 of file getdate.c.

◆ YYERROR_VERBOSE

#define YYERROR_VERBOSE   0

Definition at line 245 of file getdate.c.

◆ YYTOKEN_TABLE

#define YYTOKEN_TABLE   0

Definition at line 250 of file getdate.c.

◆ YYTOKENTYPE

#define YYTOKENTYPE

Definition at line 256 of file getdate.c.

◆ YYSTYPE_IS_TRIVIAL

#define YYSTYPE_IS_TRIVIAL   1

Definition at line 296 of file getdate.c.

◆ yystype

#define yystype   YYSTYPE /* obsolescent; will be withdrawn */

Definition at line 297 of file getdate.c.

◆ YYSTYPE_IS_DECLARED

#define YYSTYPE_IS_DECLARED   1

Definition at line 298 of file getdate.c.

◆ YYSIZE_T

#define YYSIZE_T   unsigned int

Definition at line 355 of file getdate.c.

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 359 of file getdate.c.

◆ YY_

#define YY_ (   msgid)    msgid

Definition at line 369 of file getdate.c.

◆ YYUSE

#define YYUSE (   e)    ((void) (e))

Definition at line 375 of file getdate.c.

◆ YYID

#define YYID (   n)    (n)

Definition at line 382 of file getdate.c.

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 437 of file getdate.c.

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

Definition at line 438 of file getdate.c.

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 440 of file getdate.c.

◆ YYMALLOC

#define YYMALLOC   malloc

Definition at line 451 of file getdate.c.

◆ YYFREE

#define YYFREE   free

Definition at line 458 of file getdate.c.

◆ YYSTACK_GAP_MAXIMUM

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 480 of file getdate.c.

◆ YYSTACK_BYTES

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
short int yytype_int16
Definition: getdate.c:342
#define YYSTACK_GAP_MAXIMUM
Definition: getdate.c:480

Definition at line 484 of file getdate.c.

◆ YYCOPY_NEEDED

#define YYCOPY_NEEDED   1

Definition at line 488 of file getdate.c.

◆ YYSTACK_RELOCATE

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
#define YYID(n)
Definition: getdate.c:382

Definition at line 495 of file getdate.c.

◆ YYCOPY

#define YYCOPY (   To,
  From,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (0))

Definition at line 516 of file getdate.c.

◆ YYFINAL

#define YYFINAL   2

Definition at line 529 of file getdate.c.

◆ YYLAST

#define YYLAST   57

Definition at line 531 of file getdate.c.

◆ YYNTOKENS

#define YYNTOKENS   22

Definition at line 534 of file getdate.c.

◆ YYNNTS

#define YYNNTS   12

Definition at line 536 of file getdate.c.

◆ YYNRULES

#define YYNRULES   55

Definition at line 538 of file getdate.c.

◆ YYNSTATES

#define YYNSTATES   67

Definition at line 540 of file getdate.c.

◆ YYUNDEFTOK

#define YYUNDEFTOK   2

Definition at line 543 of file getdate.c.

◆ YYMAXUTOK

#define YYMAXUTOK   273

Definition at line 544 of file getdate.c.

◆ YYTRANSLATE

#define YYTRANSLATE (   YYX)     ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 546 of file getdate.c.

◆ YYPACT_NINF

#define YYPACT_NINF   -17

Definition at line 699 of file getdate.c.

◆ YYTABLE_NINF

#define YYTABLE_NINF   -1

Definition at line 721 of file getdate.c.

◆ yypact_value_is_default

#define yypact_value_is_default (   yystate)     ((yystate) == (-17))

Definition at line 732 of file getdate.c.

◆ yytable_value_is_error

#define yytable_value_is_error (   yytable_value)     YYID (0)

Definition at line 735 of file getdate.c.

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

Definition at line 761 of file getdate.c.

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

Definition at line 762 of file getdate.c.

◆ YYEMPTY

#define YYEMPTY   (-2)

Definition at line 763 of file getdate.c.

◆ YYEOF

#define YYEOF   0

Definition at line 764 of file getdate.c.

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

Definition at line 766 of file getdate.c.

◆ YYABORT

#define YYABORT   goto yyabortlab

Definition at line 767 of file getdate.c.

◆ YYERROR

#define YYERROR   goto yyerrorlab

Definition at line 768 of file getdate.c.

◆ YYFAIL

#define YYFAIL   goto yyerrlab

Definition at line 778 of file getdate.c.

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 786 of file getdate.c.

◆ YYBACKUP

#define YYBACKUP (   Token,
  Value 
)
Value:
do \
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (YYID (0))
#define YY_(msgid)
Definition: getdate.c:369
#define YYEMPTY
Definition: getdate.c:763

Definition at line 788 of file getdate.c.

◆ YYTERROR

#define YYTERROR   1

Definition at line 805 of file getdate.c.

◆ YYERRCODE

#define YYERRCODE   256

Definition at line 806 of file getdate.c.

◆ YYRHSLOC

#define YYRHSLOC (   Rhs,
 
)    ((Rhs)[K])

Definition at line 813 of file getdate.c.

◆ YYLLOC_DEFAULT

#define YYLLOC_DEFAULT (   Current,
  Rhs,
 
)
Value:
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))
#define YYRHSLOC(Rhs, K)
Definition: getdate.c:813

Definition at line 815 of file getdate.c.

◆ YY_LOCATION_PRINT

#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)

Definition at line 838 of file getdate.c.

◆ YYLEX

#define YYLEX   yylex (&yylval, YYLEX_PARAM)

Definition at line 845 of file getdate.c.

◆ YYDPRINTF

#define YYDPRINTF (   Args)

Definition at line 1007 of file getdate.c.

◆ YY_SYMBOL_PRINT

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)

Definition at line 1008 of file getdate.c.

◆ YY_STACK_PRINT

#define YY_STACK_PRINT (   Bottom,
  Top 
)

Definition at line 1009 of file getdate.c.

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

Definition at line 1010 of file getdate.c.

◆ YYINITDEPTH

#define YYINITDEPTH   200

Definition at line 1016 of file getdate.c.

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

Definition at line 1027 of file getdate.c.

◆ YYPOPSTACK

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))

Typedef Documentation

◆ yytype_uint8

typedef unsigned char yytype_uint8

Definition at line 321 of file getdate.c.

◆ yytype_int8

typedef short int yytype_int8

Definition at line 330 of file getdate.c.

◆ yytype_uint16

typedef unsigned short int yytype_uint16

Definition at line 336 of file getdate.c.

◆ yytype_int16

typedef short int yytype_int16

Definition at line 342 of file getdate.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MERam 
MERpm 
MER24 

Definition at line 175 of file getdate.c.

◆ yytokentype

Enumerator
tAGO 
tDST 
tDAY 
tDAY_UNIT 
tDAYZONE 
tHOUR_UNIT 
tLOCAL_ZONE 
tMERIDIAN 
tMINUTE_UNIT 
tMONTH 
tMONTH_UNIT 
tSEC_UNIT 
tYEAR_UNIT 
tZONE 
tSNUMBER 
tUNUMBER 

Definition at line 259 of file getdate.c.

Function Documentation

◆ yyerror()

static int yyerror ( const char *s  ATTRIBUTE_UNUSED)
static

Definition at line 2711 of file getdate.c.

◆ yylex()

static int yylex ( YYSTYPE lvalp,
parser_control pc 
)
static

Definition at line 2631 of file getdate.c.

◆ yydestruct()

static void yydestruct ( char *  yymsg,
int  yytype,
YYSTYPE yyvaluep 
) const
static

Definition at line 1280 of file getdate.c.

◆ yyparse() [1/2]

int yyparse ( )

◆ yyparse() [2/2]

int yyparse ( void *  YYPARSE_PARAM)

Definition at line 1328 of file getdate.c.

◆ to_hour()

static int to_hour ( int  hours,
int  meridian 
)
static

Definition at line 2485 of file getdate.c.

◆ to_year()

static int to_year ( textint  textyear)
static

Definition at line 2502 of file getdate.c.

◆ lookup_zone()

static table const* lookup_zone ( parser_control const *  pc,
char const *  name 
)
static

Definition at line 2518 of file getdate.c.

◆ tm_diff()

static int tm_diff ( struct tm const *  a,
struct tm const *  b 
)
static

Definition at line 2540 of file getdate.c.

◆ lookup_word()

static table const* lookup_word ( parser_control const *  pc,
char *  word 
)
static

Definition at line 2562 of file getdate.c.

◆ get_date()

time_t get_date ( const char *  p,
const time_t *  now 
)

Definition at line 2721 of file getdate.c.

Variable Documentation

◆ yytranslate

const yytype_uint8 yytranslate[]
static

Definition at line 550 of file getdate.c.

◆ yyr1

const yytype_uint8 yyr1[]
static
Initial value:
=
{
0, 22, 23, 23, 24, 24, 24, 24, 24, 24,
24, 24, 25, 25, 25, 25, 25, 26, 26, 27,
27, 27, 28, 28, 28, 29, 29, 29, 29, 29,
29, 29, 29, 30, 30, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 32, 33, 33
}

Definition at line 655 of file getdate.c.

◆ yyr2

const yytype_uint8 yyr2[]
static
Initial value:
=
{
0, 2, 0, 2, 1, 1, 1, 1, 1, 1,
1, 3, 2, 4, 4, 6, 6, 1, 2, 1,
1, 2, 1, 2, 2, 3, 5, 3, 3, 2,
4, 2, 3, 2, 1, 2, 2, 1, 2, 2,
1, 2, 2, 1, 2, 2, 1, 2, 2, 1,
2, 2, 1, 1, 0, 1
}

Definition at line 666 of file getdate.c.

◆ yydefact

const yytype_uint8 yydefact[]
static
Initial value:
=
{
2, 0, 1, 22, 43, 20, 46, 17, 49, 0,
40, 52, 37, 19, 0, 53, 3, 4, 5, 6,
8, 7, 9, 34, 10, 23, 18, 29, 21, 42,
45, 48, 39, 51, 36, 24, 41, 44, 12, 47,
31, 38, 50, 35, 0, 0, 0, 0, 33, 0,
28, 32, 27, 54, 25, 0, 11, 30, 55, 14,
0, 13, 0, 54, 26, 16, 15
}

Definition at line 679 of file getdate.c.

◆ yydefgoto

const yytype_int8 yydefgoto[]
static
Initial value:
=
{
-1, 1, 16, 17, 18, 19, 20, 21, 22, 23,
24, 61
}

Definition at line 691 of file getdate.c.

◆ yypact

const yytype_int8 yypact[]
static
Initial value:
=
{
-17, 0, -17, -16, -17, -17, -17, 17, -17, 18,
-17, -17, -17, 38, 26, 14, -17, -17, -17, -17,
-17, 27, -17, 41, -17, -17, -17, 29, -17, -17,
-17, -17, -17, -17, -17, -17, -17, -17, -17, -17,
-15, -17, -17, -17, 31, 32, 33, 34, -17, 35,
-17, -17, -17, 28, 25, -9, -17, -17, -17, -17,
36, -17, 37, 13, -17, -17, -17
}

Definition at line 700 of file getdate.c.

◆ yypgoto

const yytype_int8 yypgoto[]
static
Initial value:
=
{
-17, -17, -17, 9, -17, -17, -17, -17, -17, -17,
-17, -6
}

Definition at line 712 of file getdate.c.

◆ yytable

const yytype_uint8 yytable[]
static
Initial value:
=
{
2, 38, 50, 51, 25, 3, 4, 5, 6, 7,
45, 8, 9, 10, 11, 12, 13, 14, 15, 35,
36, 26, 37, 58, 38, 39, 40, 41, 42, 43,
65, 44, 29, 45, 30, 46, 27, 31, 58, 32,
33, 34, 28, 47, 48, 59, 62, 60, 52, 49,
53, 54, 55, 57, 63, 64, 56, 66
}

Definition at line 722 of file getdate.c.

◆ yycheck

const yytype_uint8 yycheck[]
static
Initial value:
=
{
0, 10, 17, 18, 20, 5, 6, 7, 8, 9,
19, 11, 12, 13, 14, 15, 16, 17, 18, 5,
6, 4, 8, 10, 10, 11, 12, 13, 14, 15,
17, 17, 6, 19, 8, 21, 18, 11, 10, 13,
14, 15, 4, 16, 3, 17, 21, 19, 17, 20,
18, 18, 18, 18, 18, 18, 47, 63
}

Definition at line 738 of file getdate.c.

◆ yystos

const yytype_uint8 yystos[]
static
Initial value:
=
{
0, 23, 0, 5, 6, 7, 8, 9, 11, 12,
13, 14, 15, 16, 17, 18, 24, 25, 26, 27,
28, 29, 30, 31, 32, 20, 4, 18, 4, 6,
8, 11, 13, 14, 15, 5, 6, 8, 10, 11,
12, 13, 14, 15, 17, 19, 21, 16, 3, 20,
17, 18, 17, 18, 18, 18, 25, 18, 10, 17,
19, 33, 21, 18, 18, 17, 33
}

Definition at line 750 of file getdate.c.

◆ meridian_table

table const meridian_table[]
static
Initial value:
=
{
{ "AM", tMERIDIAN, MERam },
{ "A.M.", tMERIDIAN, MERam },
{ "PM", tMERIDIAN, MERpm },
{ "P.M.", tMERIDIAN, MERpm },
{ 0, 0, 0 }
}
@ MERam
Definition: getdate.c:175
@ MERpm
Definition: getdate.c:175
@ tMERIDIAN
Definition: getdate.c:267

Definition at line 2307 of file getdate.c.

◆ dst_table

table const dst_table[]
static
Initial value:
=
{
{ "DST", tDST, 0 }
}
@ tDST
Definition: getdate.c:261

Definition at line 2316 of file getdate.c.

◆ month_and_day_table

table const month_and_day_table[]
static
Initial value:
=
{
{ "JANUARY", tMONTH, 1 },
{ "FEBRUARY", tMONTH, 2 },
{ "MARCH", tMONTH, 3 },
{ "APRIL", tMONTH, 4 },
{ "MAY", tMONTH, 5 },
{ "JUNE", tMONTH, 6 },
{ "JULY", tMONTH, 7 },
{ "AUGUST", tMONTH, 8 },
{ "SEPTEMBER",tMONTH, 9 },
{ "SEPT", tMONTH, 9 },
{ "OCTOBER", tMONTH, 10 },
{ "NOVEMBER", tMONTH, 11 },
{ "DECEMBER", tMONTH, 12 },
{ "SUNDAY", tDAY, 0 },
{ "MONDAY", tDAY, 1 },
{ "TUESDAY", tDAY, 2 },
{ "TUES", tDAY, 2 },
{ "WEDNESDAY",tDAY, 3 },
{ "WEDNES", tDAY, 3 },
{ "THURSDAY", tDAY, 4 },
{ "THUR", tDAY, 4 },
{ "THURS", tDAY, 4 },
{ "FRIDAY", tDAY, 5 },
{ "SATURDAY", tDAY, 6 },
{ 0, 0, 0 }
}
@ tMONTH
Definition: getdate.c:269
@ tDAY
Definition: getdate.c:262

Definition at line 2321 of file getdate.c.

◆ time_units_table

table const time_units_table[]
static
Initial value:
=
{
{ "YEAR", tYEAR_UNIT, 1 },
{ "MONTH", tMONTH_UNIT, 1 },
{ "FORTNIGHT",tDAY_UNIT, 14 },
{ "WEEK", tDAY_UNIT, 7 },
{ "DAY", tDAY_UNIT, 1 },
{ "HOUR", tHOUR_UNIT, 1 },
{ "MINUTE", tMINUTE_UNIT, 1 },
{ "MIN", tMINUTE_UNIT, 1 },
{ "SECOND", tSEC_UNIT, 1 },
{ "SEC", tSEC_UNIT, 1 },
{ 0, 0, 0 }
}
@ tYEAR_UNIT
Definition: getdate.c:272
@ tSEC_UNIT
Definition: getdate.c:271
@ tMINUTE_UNIT
Definition: getdate.c:268
@ tDAY_UNIT
Definition: getdate.c:263
@ tMONTH_UNIT
Definition: getdate.c:270
@ tHOUR_UNIT
Definition: getdate.c:265

Definition at line 2350 of file getdate.c.

◆ relative_time_table

table const relative_time_table[]
static
Initial value:
=
{
{ "TOMORROW", tMINUTE_UNIT, 24 * 60 },
{ "YESTERDAY",tMINUTE_UNIT, - (24 * 60) },
{ "TODAY", tMINUTE_UNIT, 0 },
{ "NOW", tMINUTE_UNIT, 0 },
{ "LAST", tUNUMBER, -1 },
{ "THIS", tUNUMBER, 0 },
{ "NEXT", tUNUMBER, 1 },
{ "FIRST", tUNUMBER, 1 },
{ "THIRD", tUNUMBER, 3 },
{ "FOURTH", tUNUMBER, 4 },
{ "FIFTH", tUNUMBER, 5 },
{ "SIXTH", tUNUMBER, 6 },
{ "SEVENTH", tUNUMBER, 7 },
{ "EIGHTH", tUNUMBER, 8 },
{ "NINTH", tUNUMBER, 9 },
{ "TENTH", tUNUMBER, 10 },
{ "ELEVENTH", tUNUMBER, 11 },
{ "TWELFTH", tUNUMBER, 12 },
{ "AGO", tAGO, 1 },
{ 0, 0, 0 }
}
@ tAGO
Definition: getdate.c:260
@ tUNUMBER
Definition: getdate.c:275

Definition at line 2366 of file getdate.c.

◆ time_zone_table

table const time_zone_table[]
static

Definition at line 2396 of file getdate.c.

◆ military_table

table const military_table[]
static
Initial value:
=
{
{ "A", tZONE, -HOUR ( 1) },
{ "B", tZONE, -HOUR ( 2) },
{ "C", tZONE, -HOUR ( 3) },
{ "D", tZONE, -HOUR ( 4) },
{ "E", tZONE, -HOUR ( 5) },
{ "F", tZONE, -HOUR ( 6) },
{ "G", tZONE, -HOUR ( 7) },
{ "H", tZONE, -HOUR ( 8) },
{ "I", tZONE, -HOUR ( 9) },
{ "K", tZONE, -HOUR (10) },
{ "L", tZONE, -HOUR (11) },
{ "M", tZONE, -HOUR (12) },
{ "N", tZONE, HOUR ( 1) },
{ "O", tZONE, HOUR ( 2) },
{ "P", tZONE, HOUR ( 3) },
{ "Q", tZONE, HOUR ( 4) },
{ "R", tZONE, HOUR ( 5) },
{ "S", tZONE, HOUR ( 6) },
{ "T", tZONE, HOUR ( 7) },
{ "U", tZONE, HOUR ( 8) },
{ "V", tZONE, HOUR ( 9) },
{ "W", tZONE, HOUR (10) },
{ "X", tZONE, HOUR (11) },
{ "Y", tZONE, HOUR (12) },
{ "Z", tZONE, HOUR ( 0) },
{ 0, 0, 0 }
}
@ tZONE
Definition: getdate.c:273
#define HOUR(x)
Definition: getdate.c:156

Definition at line 2452 of file getdate.c.