tclDate.c File Reference#include "tclInt.h"
Go to the source code of this file.
|
Data Structures |
struct | DateInfo |
struct | _TABLE |
union | YYSTYPE |
union | yyalloc |
Defines |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.3" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYLSP_NEEDED 0 |
#define | yyparse TclDateparse |
#define | yylex TclDatelex |
#define | yyerror TclDateerror |
#define | yylval TclDatelval |
#define | yychar TclDatechar |
#define | yydebug TclDatedebug |
#define | yynerrs TclDatenerrs |
#define | tAGO 258 |
#define | tDAY 259 |
#define | tDAYZONE 260 |
#define | tID 261 |
#define | tMERIDIAN 262 |
#define | tMINUTE_UNIT 263 |
#define | tMONTH 264 |
#define | tMONTH_UNIT 265 |
#define | tSTARDATE 266 |
#define | tSEC_UNIT 267 |
#define | tSNUMBER 268 |
#define | tUNUMBER 269 |
#define | tZONE 270 |
#define | tEPOCH 271 |
#define | tDST 272 |
#define | tISOBASE 273 |
#define | tDAY_UNIT 274 |
#define | tNEXT 275 |
#define | YYPARSE_PARAM info |
#define | YYLEX_PARAM info |
#define | YYMALLOC ckalloc |
#define | YYFREE(x) (ckfree((void*) (x))) |
#define | yyDSTmode (((DateInfo *) info)->dateDSTmode) |
#define | yyDayOrdinal (((DateInfo *) info)->dateDayOrdinal) |
#define | yyDayNumber (((DateInfo *) info)->dateDayNumber) |
#define | yyMonthOrdinal (((DateInfo *) info)->dateMonthOrdinal) |
#define | yyHaveDate (((DateInfo *) info)->dateHaveDate) |
#define | yyHaveDay (((DateInfo *) info)->dateHaveDay) |
#define | yyHaveOrdinalMonth (((DateInfo *) info)->dateHaveOrdinalMonth) |
#define | yyHaveRel (((DateInfo *) info)->dateHaveRel) |
#define | yyHaveTime (((DateInfo *) info)->dateHaveTime) |
#define | yyHaveZone (((DateInfo *) info)->dateHaveZone) |
#define | yyTimezone (((DateInfo *) info)->dateTimezone) |
#define | yyDay (((DateInfo *) info)->dateDay) |
#define | yyMonth (((DateInfo *) info)->dateMonth) |
#define | yyYear (((DateInfo *) info)->dateYear) |
#define | yyHour (((DateInfo *) info)->dateHour) |
#define | yyMinutes (((DateInfo *) info)->dateMinutes) |
#define | yySeconds (((DateInfo *) info)->dateSeconds) |
#define | yyMeridian (((DateInfo *) info)->dateMeridian) |
#define | yyRelMonth (((DateInfo *) info)->dateRelMonth) |
#define | yyRelDay (((DateInfo *) info)->dateRelDay) |
#define | yyRelSeconds (((DateInfo *) info)->dateRelSeconds) |
#define | yyRelPointer (((DateInfo *) info)->dateRelPointer) |
#define | yyInput (((DateInfo *) info)->dateInput) |
#define | yyDigitCount (((DateInfo *) info)->dateDigitCount) |
#define | EPOCH 1970 |
#define | START_OF_TIME 1902 |
#define | END_OF_TIME 2037 |
#define | TM_YEAR_BASE 1900 |
#define | HOUR(x) ((int) (60 * x)) |
#define | SECSPERDAY (24L * 60L * 60L) |
#define | IsLeapYear(x) ((x % 4 == 0) && (x % 100 != 0 || x % 400 == 0)) |
#define | YYDEBUG 0 |
#define | YYERROR_VERBOSE 0 |
#define | YYTOKEN_TABLE 0 |
#define | yystype YYSTYPE |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSTYPE_IS_TRIVIAL 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 | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY(To, From, Count) |
#define | YYSTACK_RELOCATE(Stack) |
#define | YYFINAL 2 |
#define | YYLAST 79 |
#define | YYNTOKENS 27 |
#define | YYNNTS 16 |
#define | YYNRULES 56 |
#define | YYNSTATES 83 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 275 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -23 |
#define | YYTABLE_NINF -1 |
#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 (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 _TABLE | TABLE |
typedef enum _DSTMODE | DSTMODE |
typedef enum _MERIDIAN | MERIDIAN |
typedef unsigned char | yytype_uint8 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
Enumerations |
enum | yytokentype {
tAGO = 258,
tDAY = 259,
tDAYZONE = 260,
tID = 261,
tMERIDIAN = 262,
tMINUTE_UNIT = 263,
tMONTH = 264,
tMONTH_UNIT = 265,
tSTARDATE = 266,
tSEC_UNIT = 267,
tSNUMBER = 268,
tUNUMBER = 269,
tZONE = 270,
tEPOCH = 271,
tDST = 272,
tISOBASE = 273,
tDAY_UNIT = 274,
tNEXT = 275
} |
enum | _DSTMODE { DSTon,
DSToff,
DSTmaybe
} |
enum | _MERIDIAN { MERam,
MERpm,
MER24
} |
Functions |
MODULE_SCOPE int | yyparse (void *) |
int | yyparse () |
int | TclClockOldscanObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST *objv) |
Variables |
int | yychar |
YYSTYPE | yylval |
int | yynerrs |
MODULE_SCOPE int | yychar |
MODULE_SCOPE YYSTYPE | yylval |
MODULE_SCOPE int | yynerrs |
Define Documentation
#define HOUR |
( |
x |
|
) |
((int) (60 * x)) |
#define IsLeapYear |
( |
x |
|
) |
((x % 4 == 0) && (x % 100 != 0 || x % 400 == 0)) |
#define SECSPERDAY (24L * 60L * 60L) |
#define START_OF_TIME 1902 |
#define TM_YEAR_BASE 1900 |
#define YY_ |
( |
msgid |
|
) |
msgid |
#define YY_LOCATION_PRINT |
( |
File, |
|
|
Loc |
|
) |
((void) 0) |
#define YY_REDUCE_PRINT |
( |
Rule |
|
) |
|
#define YY_STACK_PRINT |
( |
Bottom, |
|
|
Top |
|
) |
|
#define YY_SYMBOL_PRINT |
( |
Title, |
|
|
Type, |
|
|
Value, |
|
|
Location |
|
) |
|
#define YYABORT goto yyabortlab |
#define YYACCEPT goto yyacceptlab |
#define YYBACKUP |
( |
Token, |
|
|
Value |
|
) |
|
#define YYBISON_VERSION "2.3" |
#define yyclearin (yychar = YYEMPTY) |
#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 494 of file tclDate.c.
#define yyDay (((DateInfo *) info)->dateDay) |
#define yyDayNumber (((DateInfo *) info)->dateDayNumber) |
#define yyDayOrdinal (((DateInfo *) info)->dateDayOrdinal) |
#define yydebug TclDatedebug |
#define yyDigitCount (((DateInfo *) info)->dateDigitCount) |
#define YYDPRINTF |
( |
Args |
|
) |
|
#define yyDSTmode (((DateInfo *) info)->dateDSTmode) |
#define yyerrok (yyerrstatus = 0) |
#define YYERROR goto yyerrorlab |
#define yyerror TclDateerror |
#define YYERROR_VERBOSE 0 |
#define YYFAIL goto yyerrlab |
#define YYFREE |
( |
x |
|
) |
(ckfree((void*) (x))) |
#define yyHaveDate (((DateInfo *) info)->dateHaveDate) |
#define yyHaveDay (((DateInfo *) info)->dateHaveDay) |
#define yyHaveOrdinalMonth (((DateInfo *) info)->dateHaveOrdinalMonth) |
#define yyHaveRel (((DateInfo *) info)->dateHaveRel) |
#define yyHaveTime (((DateInfo *) info)->dateHaveTime) |
#define yyHaveZone (((DateInfo *) info)->dateHaveZone) |
#define yyHour (((DateInfo *) info)->dateHour) |
#define yyInput (((DateInfo *) info)->dateInput) |
#define YYLEX yylex (YYLEX_PARAM) |
#define YYLLOC_DEFAULT |
( |
Current, |
|
|
Rhs, |
|
|
N |
|
) |
|
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))
Definition at line 809 of file tclDate.c.
#define yyMeridian (((DateInfo *) info)->dateMeridian) |
#define yyMinutes (((DateInfo *) info)->dateMinutes) |
#define yyMonth (((DateInfo *) info)->dateMonth) |
#define yyMonthOrdinal (((DateInfo *) info)->dateMonthOrdinal) |
#define yyparse TclDateparse |
#define YYPARSE_PARAM info |
#define YYPOPSTACK |
( |
N |
|
) |
(yyvsp -= (N), yyssp -= (N)) |
#define YYRECOVERING |
( |
|
) |
(!!yyerrstatus) |
#define yyRelDay (((DateInfo *) info)->dateRelDay) |
#define yyRelMonth (((DateInfo *) info)->dateRelMonth) |
#define yyRelPointer (((DateInfo *) info)->dateRelPointer) |
#define yyRelSeconds (((DateInfo *) info)->dateRelSeconds) |
#define YYRHSLOC |
( |
Rhs, |
|
|
K |
|
) |
((Rhs)[K]) |
#define yySeconds (((DateInfo *) info)->dateSeconds) |
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define YYSIZE_T unsigned int |
#define YYSKELETON_NAME "yacc.c" |
#define YYSTACK_ALLOC YYMALLOC |
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define YYSTACK_BYTES |
( |
N |
|
) |
|
#define YYSTACK_FREE YYFREE |
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define YYSTACK_RELOCATE |
( |
Stack |
|
) |
|
Value: do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack, Stack, yysize); \
Stack = &yyptr->Stack; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
Definition at line 510 of file tclDate.c.
Referenced by yyparse().
#define YYSTYPE_IS_DECLARED 1 |
#define YYSTYPE_IS_TRIVIAL 1 |
#define yyTimezone (((DateInfo *) info)->dateTimezone) |
#define YYTRANSLATE |
( |
YYX |
|
) |
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define YYUSE |
( |
e |
|
) |
((void) (e)) |
#define yyYear (((DateInfo *) info)->dateYear) |
Typedef Documentation
Enumeration Type Documentation
- Enumerator:
-
tAGO |
|
tDAY |
|
tDAYZONE |
|
tID |
|
tMERIDIAN |
|
tMINUTE_UNIT |
|
tMONTH |
|
tMONTH_UNIT |
|
tSTARDATE |
|
tSEC_UNIT |
|
tSNUMBER |
|
tUNUMBER |
|
tZONE |
|
tEPOCH |
|
tDST |
|
tISOBASE |
|
tDAY_UNIT |
|
tNEXT |
|
Definition at line 76 of file tclDate.c.
Function Documentation
int TclClockOldscanObjCmd |
( |
ClientData |
clientData, |
|
|
Tcl_Interp * |
interp, |
|
|
int |
objc, |
|
|
Tcl_Obj *CONST * |
objv | |
|
) |
| | |
Definition at line 2678 of file tclDate.c.
References DSTmaybe, MER24, TCL_ERROR, Tcl_GetIntFromObj(), Tcl_GetString(), Tcl_ListObjAppendElement(), Tcl_NewIntObj(), Tcl_NewObj(), Tcl_NewStringObj(), TCL_OK, Tcl_SetObjResult(), Tcl_WrongNumArgs(), yyDay, yyDayNumber, yyDayOrdinal, yyDSTmode, yyHaveDate, yyHaveDay, yyHaveOrdinalMonth, yyHaveRel, yyHaveTime, yyHaveZone, yyHour, yyMeridian, yyMinutes, yyMonth, yyMonthOrdinal, yyparse, yyRelDay, yyRelMonth, yyRelPointer, yyRelSeconds, yySeconds, yyTimezone, and yyYear.
Definition at line 1315 of file tclDate.c.
References DSToff, DSTon, EPOCH, HOUR, IsLeapYear, MER24, YYSTYPE::Meridian, YYSTYPE::Number, YY_, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yyDay, yyDayNumber, yyDayOrdinal, yyDigitCount, YYDPRINTF, yyDSTmode, YYEMPTY, YYEOF, yyerror, YYFINAL, yyHaveDate, yyHaveDay, yyHaveOrdinalMonth, yyHaveRel, yyHaveTime, yyHaveZone, yyHour, YYID, YYINITDEPTH, YYLAST, YYLEX, yylval, YYMAXDEPTH, yyMeridian, yyMinutes, yyMonth, yyMonthOrdinal, YYNTOKENS, YYPACT_NINF, YYPOPSTACK, yyRelDay, yyRelMonth, yyRelPointer, yyRelSeconds, yySeconds, YYSIZE_T, YYSTACK_ALLOC, YYSTACK_ALLOC_MAXIMUM, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, YYTABLE_NINF, YYTERROR, yyTimezone, YYTRANSLATE, yyalloc::yyvs, and yyYear.
Variable Documentation
Generated on Wed Mar 12 12:18:29 2008 by
1.5.1
|