diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-13 20:09:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-08-13 20:09:42 (GMT) |
commit | e05045246f6a09ad6c214cd7045e431e7c07a9fd (patch) | |
tree | 6bbebfff4bfc6409ef2ebc9b64cc10894d5eb917 /generic/tclGetDate.y | |
parent | 6ba55114e28426856f8905b08e31340c268459d5 (diff) | |
parent | 343b0349d4d4b41ca86832298dead909b1ef055d (diff) | |
download | tcl-e05045246f6a09ad6c214cd7045e431e7c07a9fd.zip tcl-e05045246f6a09ad6c214cd7045e431e7c07a9fd.tar.gz tcl-e05045246f6a09ad6c214cd7045e431e7c07a9fd.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tclGetDate.y')
-rw-r--r-- | generic/tclGetDate.y | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/generic/tclGetDate.y b/generic/tclGetDate.y index 017f3c0..7046b9a 100644 --- a/generic/tclGetDate.y +++ b/generic/tclGetDate.y @@ -46,6 +46,14 @@ #endif /* _MSC_VER */ /* + * Meridian: am, pm, or 24-hour style. + */ + +typedef enum _MERIDIAN { + MERam, MERpm, MER24 +} MERIDIAN; + +/* * yyparse will accept a 'struct DateInfo' as its parameter; that's where the * parsed fields will be returned. */ @@ -63,7 +71,7 @@ typedef struct DateInfo { time_t dateHour; time_t dateMinutes; time_t dateSeconds; - int dateMeridian; + MERIDIAN dateMeridian; int dateHaveTime; time_t dateTimezone; @@ -150,14 +158,6 @@ typedef enum _DSTMODE { DSTon, DSToff, DSTmaybe } DSTMODE; -/* - * Meridian: am, pm, or 24-hour style. - */ - -typedef enum _MERIDIAN { - MERam, MERpm, MER24 -} MERIDIAN; - %} %union { |