Nice color modes in setup
authorArt Cancro <ajc@citadel.org>
Tue, 14 Jun 2022 23:55:33 +0000 (19:55 -0400)
committerArt Cancro <ajc@citadel.org>
Tue, 14 Jun 2022 23:55:33 +0000 (19:55 -0400)
21 files changed:
citadel/po/citadel-setup/ar.po
citadel/po/citadel-setup/citadel-setup.pot
citadel/po/citadel-setup/cs.po
citadel/po/citadel-setup/de.po
citadel/po/citadel-setup/en_GB.po
citadel/po/citadel-setup/es.po
citadel/po/citadel-setup/fi.po
citadel/po/citadel-setup/fr.po
citadel/po/citadel-setup/hu.po
citadel/po/citadel-setup/it.po
citadel/po/citadel-setup/ja.po
citadel/po/citadel-setup/kk.po
citadel/po/citadel-setup/ko.po
citadel/po/citadel-setup/pl.po
citadel/po/citadel-setup/pt.po
citadel/po/citadel-setup/pt_BR.po
citadel/po/citadel-setup/ru.po
citadel/po/citadel-setup/sv.po
citadel/po/citadel-setup/vi.po
citadel/server/parsedate.c
citadel/utils/setup.c

index 5404795acecd2436841a5a5cd222bd1716dda8bd..cda0435a45ff03da64c3049b5de24d797d127078 100644 (file)
@@ -359,7 +359,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index 95c9360579be6e46ef9756bea97e822879d64fcd..355a3a4406193f6400330a6b2b30c7eb03bd3448 100644 (file)
@@ -344,7 +344,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index 274f5f840f245a741caee3df8118186a3d7c559e..a4316c97fb06c0e0c03d1509975111101862e010 100644 (file)
@@ -436,7 +436,7 @@ msgstr ""
 "Zastavte jej prosím ručně a spusťte instalaci znovu."
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr "Program pro instalaci Citadely"
 
 #: ../utils/setup.c:1513
index cf503197f3b15d566e451915de1c95e876984e10..2b27e097a527c1600b43fbabbec8bb522680c20b 100644 (file)
@@ -441,7 +441,7 @@ msgstr ""
 "Bitte stoppen Sie in per Hand und starten das Setup erneut."
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr "Citadel Setup Programm"
 
 #: ../utils/setup.c:1513
index 80cb7324614079135de113b8e8f8a5434349ccef..c1971dd8d32af7c3d9b834205f6383d0627f82f2 100644 (file)
@@ -437,8 +437,8 @@ msgstr ""
 "Please stop the service manually and run setup again."
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
-msgstr "Citadel setup program"
+msgid "Citadel Server setup"
+msgstr "Citadel Server setup"
 
 #: ../utils/setup.c:1513
 msgid "This Citadel installation is too old to be upgraded."
index 18ca96489a8fb2d5093bc301d93779ea30b5c7ea..9d50bb95c7f9903c43b5efa69ff93097c250ef23 100644 (file)
@@ -459,7 +459,7 @@ msgstr ""
 "Por favor detenga el servicio manualmente y corra la configuración otra vez."
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr "Programa de configuración de Citadel"
 
 #: ../utils/setup.c:1513
index db93471efa70ab8ee597d16edb680077008ca21d..0a066a624623fe09db7bd30ff80455cc55d19d37 100644 (file)
@@ -350,7 +350,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index 581d0d44926ab8a3036d5d4218dc834c79ac422e..044e05ad7d86b51faac1e26da045591e59a57936 100644 (file)
@@ -454,7 +454,7 @@ msgstr ""
 "Arrêtez le service manuellement et relancer l'installation."
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr "Programme d'installation de Citadel"
 
 #: ../utils/setup.c:1513
index 03b4bc106575f4dcba97fe33bfa742221772d502..cd1c7891dc4018aec01e4e984132f8e974905c62 100644 (file)
@@ -344,7 +344,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index f77f806bb0ceee7f011d0c41c2c2da3e213ebc62..19fd6b62f2545639e71f7dbddd33c616e6ce86ef 100644 (file)
@@ -344,7 +344,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index 7139563ef12dc4b3e07021fec407daa73e500bb2..90f0e394843ebaeed9edb99012ca3e1faed47654 100644 (file)
@@ -349,7 +349,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index 901a329d19278fad9bacf6e8c23f938ab8000786..d65afa25be83ee9373270abda2c601554494bbe9 100644 (file)
@@ -344,7 +344,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index 18ec360cdf315e9f4ece081f9552e57f4868e5bf..97aebc131bffb0ff4a8b1ae799be7c87bf02d9c3 100644 (file)
@@ -344,7 +344,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index a06ac6a16660a7808bd9cd8c525fe1d7c10e8826..bb000284a29bc401c3296e0bf54c11fda78886d1 100644 (file)
@@ -344,7 +344,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index 4fd15e19cd0390069ccc152d4e1117f720bbe0ad..578b483705e28afbc3f3e0a5c2849d6916ebaece 100644 (file)
@@ -352,7 +352,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index bbb1598339710106c7ae7f90c0890522bf68007c..d1654a547daadce5c7958820e0cbc434d4be4a9e 100644 (file)
@@ -418,7 +418,7 @@ msgstr ""
 "Por favor, pare o serviço manualmente e execute a instalação novamente."
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr "Programa de instalação do Citadel"
 
 #: ../utils/setup.c:1513
index c3eab048a9a513d16072dab5a4966187ac70a8d8..dadf97cfeef5a2fbedb19865789974d37d2a0ce1 100644 (file)
@@ -434,7 +434,7 @@ msgstr ""
 "Остановите его и перезапустите программу setup."
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr "Программа setup"
 
 #: ../utils/setup.c:1513
index 7c0846b45eeb6cc2d910065ecc0c57154d436f3c..3145588d617adee8d1913c2da1801383ef74150b 100644 (file)
@@ -354,7 +354,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index 5d56fd4e60ffbc3e65fd37fa914932565654eb20..dbb5844c3953a045982a22d6cbc1c8b4be8dc6ef 100644 (file)
@@ -353,7 +353,7 @@ msgid ""
 msgstr ""
 
 #: ../utils/setup.c:1485
-msgid "Citadel setup program"
+msgid "Citadel Server setup"
 msgstr ""
 
 #: ../utils/setup.c:1513
index af4f0557859712367feffbd3d23bd984ad230d9a..fa907f3fba1b045f39be0308e762fad440f6ec3e 100644 (file)
@@ -1,8 +1,9 @@
-/* A Bison parser, made by GNU Bison 3.0.4.  */
+/* A Bison parser, made by GNU Bison 3.7.  */
 
 /* Bison implementation for Yacc-like parsers in C
 
-   Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
+   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 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
 /* C LALR(1) parser skeleton written by Richard Stallman, by
    simplifying the original so-called "semantic" parser.  */
 
+/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
+   especially those whose name start with YY_ or yy_.  They are
+   private implementation details that can be changed or removed.  */
+
 /* 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.
@@ -44,7 +49,7 @@
 #define YYBISON 1
 
 /* Bison version.  */
-#define YYBISON_VERSION "3.0.4"
+#define YYBISON_VERSION "3.7"
 
 /* Skeleton name.  */
 #define YYSKELETON_NAME "yacc.c"
@@ -61,8 +66,8 @@
 
 
 
-/* Copy the first part of user declarations.  */
-#line 1 "parsedate.y" /* yacc.c:339  */
+/* First part of user prologue.  */
+#line 1 "server/parsedate.y"
 
 /* $Revision$
 **
@@ -175,24 +180,29 @@ static time_t     yyRelSeconds;
 
 static void            date_error(char *);
 
-#line 179 "y.tab.c" /* yacc.c:339  */
+#line 184 "y.tab.c"
 
+# ifndef YY_CAST
+#  ifdef __cplusplus
+#   define YY_CAST(Type, Val) static_cast<Type> (Val)
+#   define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
+#  else
+#   define YY_CAST(Type, Val) ((Type) (Val))
+#   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
+#  endif
+# endif
 # ifndef YY_NULLPTR
-#  if defined __cplusplus && 201103L <= __cplusplus
-#   define YY_NULLPTR nullptr
+#  if defined __cplusplus
+#   if 201103L <= __cplusplus
+#    define YY_NULLPTR nullptr
+#   else
+#    define YY_NULLPTR 0
+#   endif
 #  else
-#   define YY_NULLPTR 0
+#   define YY_NULLPTR ((void*)0)
 #  endif
 # endif
 
-/* Enabling verbose error messages.  */
-#ifdef YYERROR_VERBOSE
-# undef YYERROR_VERBOSE
-# define YYERROR_VERBOSE 1
-#else
-# define YYERROR_VERBOSE 0
-#endif
-
 
 /* Debug traces.  */
 #ifndef YYDEBUG
@@ -202,23 +212,31 @@ static void               date_error(char *);
 extern int yydebug;
 #endif
 
-/* Token type.  */
+/* Token kinds.  */
 #ifndef YYTOKENTYPE
 # define YYTOKENTYPE
   enum yytokentype
   {
-    tDAY = 258,
-    tDAYZONE = 259,
-    tMERIDIAN = 260,
-    tMONTH = 261,
-    tMONTH_UNIT = 262,
-    tSEC_UNIT = 263,
-    tSNUMBER = 264,
-    tUNUMBER = 265,
-    tZONE = 266
+    YYEMPTY = -2,
+    YYEOF = 0,                     /* "end of file"  */
+    YYerror = 256,                 /* error  */
+    YYUNDEF = 257,                 /* "invalid token"  */
+    tDAY = 258,                    /* tDAY  */
+    tDAYZONE = 259,                /* tDAYZONE  */
+    tMERIDIAN = 260,               /* tMERIDIAN  */
+    tMONTH = 261,                  /* tMONTH  */
+    tMONTH_UNIT = 262,             /* tMONTH_UNIT  */
+    tSEC_UNIT = 263,               /* tSEC_UNIT  */
+    tSNUMBER = 264,                /* tSNUMBER  */
+    tUNUMBER = 265,                /* tUNUMBER  */
+    tZONE = 266                    /* tZONE  */
   };
+  typedef enum yytokentype yytoken_kind_t;
 #endif
-/* Tokens.  */
+/* Token kinds.  */
+#define YYEOF 0
+#define YYerror 256
+#define YYUNDEF 257
 #define tDAY 258
 #define tDAYZONE 259
 #define tMERIDIAN 260
@@ -231,17 +249,16 @@ extern int yydebug;
 
 /* Value type.  */
 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-
 union YYSTYPE
 {
-#line 114 "parsedate.y" /* yacc.c:355  */
+#line 114 "server/parsedate.y"
 
     time_t             Number;
     enum _MERIDIAN     Meridian;
 
-#line 243 "y.tab.c" /* yacc.c:355  */
-};
+#line 260 "y.tab.c"
 
+};
 typedef union YYSTYPE YYSTYPE;
 # define YYSTYPE_IS_TRIVIAL 1
 # define YYSTYPE_IS_DECLARED 1
@@ -253,37 +270,113 @@ extern YYSTYPE yylval;
 int yyparse (void);
 
 
+/* Symbol kind.  */
+enum yysymbol_kind_t
+{
+  YYSYMBOL_YYEMPTY = -2,
+  YYSYMBOL_YYEOF = 0,                      /* "end of file"  */
+  YYSYMBOL_YYerror = 1,                    /* error  */
+  YYSYMBOL_YYUNDEF = 2,                    /* "invalid token"  */
+  YYSYMBOL_tDAY = 3,                       /* tDAY  */
+  YYSYMBOL_tDAYZONE = 4,                   /* tDAYZONE  */
+  YYSYMBOL_tMERIDIAN = 5,                  /* tMERIDIAN  */
+  YYSYMBOL_tMONTH = 6,                     /* tMONTH  */
+  YYSYMBOL_tMONTH_UNIT = 7,                /* tMONTH_UNIT  */
+  YYSYMBOL_tSEC_UNIT = 8,                  /* tSEC_UNIT  */
+  YYSYMBOL_tSNUMBER = 9,                   /* tSNUMBER  */
+  YYSYMBOL_tUNUMBER = 10,                  /* tUNUMBER  */
+  YYSYMBOL_tZONE = 11,                     /* tZONE  */
+  YYSYMBOL_12_ = 12,                       /* ':'  */
+  YYSYMBOL_13_ = 13,                       /* '/'  */
+  YYSYMBOL_14_ = 14,                       /* ','  */
+  YYSYMBOL_YYACCEPT = 15,                  /* $accept  */
+  YYSYMBOL_spec = 16,                      /* spec  */
+  YYSYMBOL_item = 17,                      /* item  */
+  YYSYMBOL_time = 18,                      /* time  */
+  YYSYMBOL_zone = 19,                      /* zone  */
+  YYSYMBOL_numzone = 20,                   /* numzone  */
+  YYSYMBOL_date = 21,                      /* date  */
+  YYSYMBOL_rel = 22,                       /* rel  */
+  YYSYMBOL_o_merid = 23                    /* o_merid  */
+};
+typedef enum yysymbol_kind_t yysymbol_kind_t;
+
 
-/* Copy the second part of user declarations.  */
 
-#line 260 "y.tab.c" /* yacc.c:358  */
 
 #ifdef short
 # undef short
 #endif
 
-#ifdef YYTYPE_UINT8
-typedef YYTYPE_UINT8 yytype_uint8;
-#else
-typedef unsigned char yytype_uint8;
+/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
+   <limits.h> and (if available) <stdint.h> are included
+   so that the code can choose integer types of a good width.  */
+
+#ifndef __PTRDIFF_MAX__
+# include <limits.h> /* INFRINGES ON USER NAME SPACE */
+# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
+#  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
+#  define YY_STDINT_H
+# endif
 #endif
 
-#ifdef YYTYPE_INT8
-typedef YYTYPE_INT8 yytype_int8;
+/* Narrow types that promote to a signed type and that can represent a
+   signed or unsigned integer of at least N bits.  In tables they can
+   save space and decrease cache pressure.  Promoting to a signed type
+   helps avoid bugs in integer arithmetic.  */
+
+#ifdef __INT_LEAST8_MAX__
+typedef __INT_LEAST8_TYPE__ yytype_int8;
+#elif defined YY_STDINT_H
+typedef int_least8_t yytype_int8;
 #else
 typedef signed char yytype_int8;
 #endif
 
-#ifdef YYTYPE_UINT16
-typedef YYTYPE_UINT16 yytype_uint16;
+#ifdef __INT_LEAST16_MAX__
+typedef __INT_LEAST16_TYPE__ yytype_int16;
+#elif defined YY_STDINT_H
+typedef int_least16_t yytype_int16;
+#else
+typedef short yytype_int16;
+#endif
+
+#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
+typedef __UINT_LEAST8_TYPE__ yytype_uint8;
+#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
+       && UINT_LEAST8_MAX <= INT_MAX)
+typedef uint_least8_t yytype_uint8;
+#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
+typedef unsigned char yytype_uint8;
 #else
-typedef unsigned short int yytype_uint16;
+typedef short yytype_uint8;
 #endif
 
-#ifdef YYTYPE_INT16
-typedef YYTYPE_INT16 yytype_int16;
+#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
+typedef __UINT_LEAST16_TYPE__ yytype_uint16;
+#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
+       && UINT_LEAST16_MAX <= INT_MAX)
+typedef uint_least16_t yytype_uint16;
+#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
+typedef unsigned short yytype_uint16;
 #else
-typedef short int yytype_int16;
+typedef int yytype_uint16;
+#endif
+
+#ifndef YYPTRDIFF_T
+# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
+#  define YYPTRDIFF_T __PTRDIFF_TYPE__
+#  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
+# elif defined PTRDIFF_MAX
+#  ifndef ptrdiff_t
+#   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+#  endif
+#  define YYPTRDIFF_T ptrdiff_t
+#  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
+# else
+#  define YYPTRDIFF_T long
+#  define YYPTRDIFF_MAXIMUM LONG_MAX
+# endif
 #endif
 
 #ifndef YYSIZE_T
@@ -291,15 +384,28 @@ typedef short int yytype_int16;
 #  define YYSIZE_T __SIZE_TYPE__
 # elif defined size_t
 #  define YYSIZE_T size_t
-# elif ! defined YYSIZE_T
+# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
 #  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
 #  define YYSIZE_T size_t
 # else
-#  define YYSIZE_T unsigned int
+#  define YYSIZE_T unsigned
 # endif
 #endif
 
-#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
+#define YYSIZE_MAXIMUM                                  \
+  YY_CAST (YYPTRDIFF_T,                                 \
+           (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
+            ? YYPTRDIFF_MAXIMUM                         \
+            : YY_CAST (YYSIZE_T, -1)))
+
+#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
+
+
+/* Stored state numbers (used for stacks). */
+typedef yytype_int8 yy_state_t;
+
+/* State numbers in computations.  */
+typedef int yy_state_fast_t;
 
 #ifndef YY_
 # if defined YYENABLE_NLS && YYENABLE_NLS
@@ -313,30 +419,20 @@ typedef short int yytype_int16;
 # endif
 #endif
 
-#ifndef YY_ATTRIBUTE
-# if (defined __GNUC__                                               \
-      && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__)))  \
-     || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
-#  define YY_ATTRIBUTE(Spec) __attribute__(Spec)
-# else
-#  define YY_ATTRIBUTE(Spec) /* empty */
-# endif
-#endif
 
 #ifndef YY_ATTRIBUTE_PURE
-# define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
+# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
+#  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
+# else
+#  define YY_ATTRIBUTE_PURE
+# endif
 #endif
 
 #ifndef YY_ATTRIBUTE_UNUSED
-# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
-#endif
-
-#if !defined _Noreturn \
-     && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
-# if defined _MSC_VER && 1200 <= _MSC_VER
-#  define _Noreturn __declspec (noreturn)
+# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
+#  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
 # else
-#  define _Noreturn YY_ATTRIBUTE ((__noreturn__))
+#  define YY_ATTRIBUTE_UNUSED
 # endif
 #endif
 
@@ -347,13 +443,13 @@ typedef short int yytype_int16;
 # define YYUSE(E) /* empty */
 #endif
 
-#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
+#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
 /* Suppress an incorrect diagnostic about yylval being uninitialized.  */
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
-    _Pragma ("GCC diagnostic push") \
-    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                            \
+    _Pragma ("GCC diagnostic push")                                     \
+    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
     _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
-# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
     _Pragma ("GCC diagnostic pop")
 #else
 # define YY_INITIAL_VALUE(Value) Value
@@ -366,8 +462,22 @@ typedef short int yytype_int16;
 # define YY_INITIAL_VALUE(Value) /* Nothing. */
 #endif
 
+#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
+# define YY_IGNORE_USELESS_CAST_BEGIN                          \
+    _Pragma ("GCC diagnostic push")                            \
+    _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
+# define YY_IGNORE_USELESS_CAST_END            \
+    _Pragma ("GCC diagnostic pop")
+#endif
+#ifndef YY_IGNORE_USELESS_CAST_BEGIN
+# define YY_IGNORE_USELESS_CAST_BEGIN
+# define YY_IGNORE_USELESS_CAST_END
+#endif
+
+
+#define YY_ASSERT(E) ((void) (0 && (E)))
 
-#if ! defined yyoverflow || YYERROR_VERBOSE
+#if !defined yyoverflow
 
 /* The parser invokes alloca or malloc; define the necessary symbols.  */
 
@@ -432,8 +542,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
 #   endif
 #  endif
 # endif
-#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
-
+#endif /* !defined yyoverflow */
 
 #if (! defined yyoverflow \
      && (! defined __cplusplus \
@@ -442,17 +551,17 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
 /* A type that is properly aligned for any stack member.  */
 union yyalloc
 {
-  yytype_int16 yyss_alloc;
+  yy_state_t yyss_alloc;
   YYSTYPE yyvs_alloc;
 };
 
 /* The size of the maximum gap between one aligned stack and the next.  */
-# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
+# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
 
 /* The size of an array large to enough to hold all stacks, each with
    N elements.  */
 # define YYSTACK_BYTES(N) \
-     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+     ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
       + YYSTACK_GAP_MAXIMUM)
 
 # define YYCOPY_NEEDED 1
@@ -465,11 +574,11 @@ union yyalloc
 # define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
     do                                                                  \
       {                                                                 \
-        YYSIZE_T yynewbytes;                                            \
+        YYPTRDIFF_T yynewbytes;                                         \
         YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
         Stack = &yyptr->Stack_alloc;                                    \
-        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
-        yyptr += yynewbytes / sizeof (*yyptr);                          \
+        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
+        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
       }                                                                 \
     while (0)
 
@@ -481,12 +590,12 @@ union yyalloc
 # ifndef YYCOPY
 #  if defined __GNUC__ && 1 < __GNUC__
 #   define YYCOPY(Dst, Src, Count) \
-      __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
+      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
 #  else
 #   define YYCOPY(Dst, Src, Count)              \
       do                                        \
         {                                       \
-          YYSIZE_T yyi;                         \
+          YYPTRDIFF_T yyi;                      \
           for (yyi = 0; yyi < (Count); yyi++)   \
             (Dst)[yyi] = (Src)[yyi];            \
         }                                       \
@@ -509,17 +618,20 @@ union yyalloc
 /* YYNSTATES -- Number of states.  */
 #define YYNSTATES  44
 
-/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
-   by yylex, with out-of-bounds checking.  */
-#define YYUNDEFTOK  2
+/* YYMAXUTOK -- Last valid token kind.  */
 #define YYMAXUTOK   266
 
-#define YYTRANSLATE(YYX)                                                \
-  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+
+/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
+   as returned by yylex, with out-of-bounds checking.  */
+#define YYTRANSLATE(YYX)                                \
+  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
+   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
+   : YYSYMBOL_YYUNDEF)
 
 /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
-   as returned by yylex, without out-of-bounds checking.  */
-static const yytype_uint8 yytranslate[] =
+   as returned by yylex.  */
+static const yytype_int8 yytranslate[] =
 {
        0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
@@ -552,7 +664,7 @@ static const yytype_uint8 yytranslate[] =
 
 #if YYDEBUG
   /* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
-static const yytype_uint16 yyrline[] =
+static const yytype_int16 yyrline[] =
 {
        0,   128,   128,   129,   132,   141,   145,   148,   153,   165,
      171,   178,   184,   194,   198,   202,   210,   216,   237,   241,
@@ -561,36 +673,49 @@ static const yytype_uint16 yyrline[] =
 };
 #endif
 
-#if YYDEBUG || YYERROR_VERBOSE || 0
+/** Accessing symbol of state STATE.  */
+#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
+
+#if YYDEBUG || 0
+/* The user-facing name of the symbol whose (internal) number is
+   YYSYMBOL.  No bounds checking.  */
+static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
+
 /* YYTNAME[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", "tDAY", "tDAYZONE", "tMERIDIAN",
-  "tMONTH", "tMONTH_UNIT", "tSEC_UNIT", "tSNUMBER", "tUNUMBER", "tZONE",
-  "':'", "'/'", "','", "$accept", "spec", "item", "time", "zone",
-  "numzone", "date", "rel", "o_merid", YY_NULLPTR
+  "\"end of file\"", "error", "\"invalid token\"", "tDAY", "tDAYZONE",
+  "tMERIDIAN", "tMONTH", "tMONTH_UNIT", "tSEC_UNIT", "tSNUMBER",
+  "tUNUMBER", "tZONE", "':'", "'/'", "','", "$accept", "spec", "item",
+  "time", "zone", "numzone", "date", "rel", "o_merid", YY_NULLPTR
 };
+
+static const char *
+yysymbol_name (yysymbol_kind_t yysymbol)
+{
+  return yytname[yysymbol];
+}
 #endif
 
-# ifdef YYPRINT
+#ifdef YYPRINT
 /* YYTOKNUM[NUM] -- (External) token number corresponding to the
    (internal) symbol number NUM (which must be that of a token).  */
-static const yytype_uint16 yytoknum[] =
+static const yytype_int16 yytoknum[] =
 {
        0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
      265,   266,    58,    47,    44
 };
-# endif
+#endif
 
-#define YYPACT_NINF -29
+#define YYPACT_NINF (-29)
 
-#define yypact_value_is_default(Yystate) \
-  (!!((Yystate) == (-29)))
+#define yypact_value_is_default(Yyn) \
+  ((Yyn) == YYPACT_NINF)
 
-#define YYTABLE_NINF -1
+#define YYTABLE_NINF (-1)
 
-#define yytable_value_is_error(Yytable_value) \
+#define yytable_value_is_error(Yyn) \
   0
 
   /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
@@ -607,7 +732,7 @@ static const yytype_int8 yypact[] =
   /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
      Performed when YYTABLE does not specify something else to do.  Zero
      means the default is an error.  */
-static const yytype_uint8 yydefact[] =
+static const yytype_int8 yydefact[] =
 {
        2,     0,     1,     0,     0,     0,    29,     3,     4,     6,
        7,     0,    20,    27,    25,    30,    22,    28,    26,     0,
@@ -631,7 +756,7 @@ static const yytype_int8 yydefgoto[] =
   /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
      positive, shift that token.  If negative, reduce the rule whose
      number is the opposite.  If YYTABLE_NINF, syntax error.  */
-static const yytype_uint8 yytable[] =
+static const yytype_int8 yytable[] =
 {
       32,     2,    37,    11,     3,    15,    36,     4,    22,    23,
        5,     6,    43,    23,    23,    24,    42,    15,    16,    17,
@@ -651,7 +776,7 @@ static const yytype_int8 yycheck[] =
 
   /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
      symbol of state STATE-NUM.  */
-static const yytype_uint8 yystos[] =
+static const yytype_int8 yystos[] =
 {
        0,    16,     0,     3,     6,     9,    10,    17,    18,    21,
       22,    14,    10,     7,     8,     5,     6,     7,     8,    12,
@@ -661,7 +786,7 @@ static const yytype_uint8 yystos[] =
 };
 
   /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
-static const yytype_uint8 yyr1[] =
+static const yytype_int8 yyr1[] =
 {
        0,    15,    16,    16,    17,    17,    17,    17,    18,    18,
       18,    18,    18,    19,    19,    19,    19,    20,    21,    21,
@@ -670,7 +795,7 @@ static const yytype_uint8 yyr1[] =
 };
 
   /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.  */
-static const yytype_uint8 yyr2[] =
+static const yytype_int8 yyr2[] =
 {
        0,     2,     0,     2,     1,     2,     1,     1,     2,     4,
        4,     6,     6,     1,     1,     2,     1,     1,     3,     5,
@@ -679,10 +804,10 @@ static const yytype_uint8 yyr2[] =
 };
 
 
+enum { YYENOMEM = -2 };
+
 #define yyerrok         (yyerrstatus = 0)
 #define yyclearin       (yychar = YYEMPTY)
-#define YYEMPTY         (-2)
-#define YYEOF           0
 
 #define YYACCEPT        goto yyacceptlab
 #define YYABORT         goto yyabortlab
@@ -691,27 +816,26 @@ static const yytype_uint8 yyr2[] =
 
 #define YYRECOVERING()  (!!yyerrstatus)
 
-#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;                                                  \
-    }                                                           \
-while (0)
-
-/* Error token number */
-#define YYTERROR        1
-#define YYERRCODE       256
-
+#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;                                                  \
+      }                                                           \
+  while (0)
+
+/* Backward compatibility with an undocumented macro.
+   Use YYerror or YYUNDEF. */
+#define YYERRCODE YYUNDEF
 
 
 /* Enable debugging if requested.  */
@@ -729,54 +853,58 @@ do {                                            \
 } while (0)
 
 /* This macro is provided for backward compatibility. */
-#ifndef YY_LOCATION_PRINT
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
-#endif
+# ifndef YY_LOCATION_PRINT
+#  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
 
 
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
+# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
 do {                                                                      \
   if (yydebug)                                                            \
     {                                                                     \
       YYFPRINTF (stderr, "%s ", Title);                                   \
       yy_symbol_print (stderr,                                            \
-                  Type, Value); \
+                  Kind, Value); \
       YYFPRINTF (stderr, "\n");                                           \
     }                                                                     \
 } while (0)
 
 
-/*----------------------------------------.
-| Print this symbol's value on YYOUTPUT.  |
-`----------------------------------------*/
+/*-----------------------------------.
+| Print this symbol's value on YYO.  |
+`-----------------------------------*/
 
 static void
-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+yy_symbol_value_print (FILE *yyo,
+                       yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
 {
-  FILE *yyo = yyoutput;
-  YYUSE (yyo);
+  FILE *yyoutput = yyo;
+  YYUSE (yyoutput);
   if (!yyvaluep)
     return;
 # ifdef YYPRINT
-  if (yytype < YYNTOKENS)
-    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+  if (yykind < YYNTOKENS)
+    YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
 # endif
-  YYUSE (yytype);
+  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+  YYUSE (yykind);
+  YY_IGNORE_MAYBE_UNINITIALIZED_END
 }
 
 
-/*--------------------------------.
-| Print this symbol on YYOUTPUT.  |
-`--------------------------------*/
+/*---------------------------.
+| Print this symbol on YYO.  |
+`---------------------------*/
 
 static void
-yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+yy_symbol_print (FILE *yyo,
+                 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
 {
-  YYFPRINTF (yyoutput, "%s %s (",
-             yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
+  YYFPRINTF (yyo, "%s %s (",
+             yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
 
-  yy_symbol_value_print (yyoutput, yytype, yyvaluep);
-  YYFPRINTF (yyoutput, ")");
+  yy_symbol_value_print (yyo, yykind, yyvaluep);
+  YYFPRINTF (yyo, ")");
 }
 
 /*------------------------------------------------------------------.
@@ -785,7 +913,7 @@ yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
 `------------------------------------------------------------------*/
 
 static void
-yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
+yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
 {
   YYFPRINTF (stderr, "Stack now");
   for (; yybottom <= yytop; yybottom++)
@@ -808,21 +936,21 @@ do {                                                            \
 `------------------------------------------------*/
 
 static void
-yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
+yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
+                 int yyrule)
 {
-  unsigned long int yylno = yyrline[yyrule];
+  int yylno = yyrline[yyrule];
   int yynrhs = yyr2[yyrule];
   int yyi;
-  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
+  YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
              yyrule - 1, yylno);
   /* The symbols being reduced.  */
   for (yyi = 0; yyi < yynrhs; yyi++)
     {
       YYFPRINTF (stderr, "   $%d = ", yyi + 1);
       yy_symbol_print (stderr,
-                       yystos[yyssp[yyi + 1 - yynrhs]],
-                       &(yyvsp[(yyi + 1) - (yynrhs)])
-                                              );
+                       YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
+                       &yyvsp[(yyi + 1) - (yynrhs)]);
       YYFPRINTF (stderr, "\n");
     }
 }
@@ -837,8 +965,8 @@ do {                                    \
    multiple parsers can coexist.  */
 int yydebug;
 #else /* !YYDEBUG */
-# define YYDPRINTF(Args)
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
+# define YYDPRINTF(Args) ((void) 0)
+# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
 # define YY_STACK_PRINT(Bottom, Top)
 # define YY_REDUCE_PRINT(Rule)
 #endif /* !YYDEBUG */
@@ -861,249 +989,30 @@ int yydebug;
 #endif
 
 
-#if YYERROR_VERBOSE
-
-# ifndef yystrlen
-#  if defined __GLIBC__ && defined _STRING_H
-#   define yystrlen strlen
-#  else
-/* Return the length of YYSTR.  */
-static YYSIZE_T
-yystrlen (const char *yystr)
-{
-  YYSIZE_T yylen;
-  for (yylen = 0; yystr[yylen]; yylen++)
-    continue;
-  return yylen;
-}
-#  endif
-# endif
-
-# ifndef yystpcpy
-#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
-#   define yystpcpy stpcpy
-#  else
-/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
-   YYDEST.  */
-static char *
-yystpcpy (char *yydest, const char *yysrc)
-{
-  char *yyd = yydest;
-  const char *yys = yysrc;
-
-  while ((*yyd++ = *yys++) != '\0')
-    continue;
-
-  return yyd - 1;
-}
-#  endif
-# endif
-
-# ifndef yytnamerr
-/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
-   quotes and backslashes, so that it's suitable for yyerror.  The
-   heuristic is that double-quoting is unnecessary unless the string
-   contains an apostrophe, a comma, or backslash (other than
-   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
-   null, do not copy; instead, return the length of what the result
-   would have been.  */
-static YYSIZE_T
-yytnamerr (char *yyres, const char *yystr)
-{
-  if (*yystr == '"')
-    {
-      YYSIZE_T yyn = 0;
-      char const *yyp = yystr;
-
-      for (;;)
-        switch (*++yyp)
-          {
-          case '\'':
-          case ',':
-            goto do_not_strip_quotes;
-
-          case '\\':
-            if (*++yyp != '\\')
-              goto do_not_strip_quotes;
-            /* Fall through.  */
-          default:
-            if (yyres)
-              yyres[yyn] = *yyp;
-            yyn++;
-            break;
-
-          case '"':
-            if (yyres)
-              yyres[yyn] = '\0';
-            return yyn;
-          }
-    do_not_strip_quotes: ;
-    }
-
-  if (! yyres)
-    return yystrlen (yystr);
-
-  return yystpcpy (yyres, yystr) - yyres;
-}
-# endif
-
-/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
-   about the unexpected token YYTOKEN for the state stack whose top is
-   YYSSP.
-
-   Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
-   not large enough to hold the message.  In that case, also set
-   *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
-   required number of bytes is too large to store.  */
-static int
-yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
-                yytype_int16 *yyssp, int yytoken)
-{
-  YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
-  YYSIZE_T yysize = yysize0;
-  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
-  /* Internationalized format string. */
-  const char *yyformat = YY_NULLPTR;
-  /* Arguments of yyformat. */
-  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
-  /* Number of reported tokens (one for the "unexpected", one per
-     "expected"). */
-  int yycount = 0;
-
-  /* There are many possibilities here to consider:
-     - If this state is a consistent state with a default action, then
-       the only way this function was invoked is if the default action
-       is an error action.  In that case, don't check for expected
-       tokens because there are none.
-     - The only way there can be no lookahead present (in yychar) is if
-       this state is a consistent state with a default action.  Thus,
-       detecting the absence of a lookahead is sufficient to determine
-       that there is no unexpected or expected token to report.  In that
-       case, just report a simple "syntax error".
-     - Don't assume there isn't a lookahead just because this state is a
-       consistent state with a default action.  There might have been a
-       previous inconsistent state, consistent state with a non-default
-       action, or user semantic action that manipulated yychar.
-     - Of course, the expected token list depends on states to have
-       correct lookahead information, and it depends on the parser not
-       to perform extra reductions after fetching a lookahead from the
-       scanner and before detecting a syntax error.  Thus, state merging
-       (from LALR or IELR) and default reductions corrupt the expected
-       token list.  However, the list is correct for canonical LR with
-       one exception: it will still contain any token that will not be
-       accepted due to an error action in a later state.
-  */
-  if (yytoken != YYEMPTY)
-    {
-      int yyn = yypact[*yyssp];
-      yyarg[yycount++] = yytname[yytoken];
-      if (!yypact_value_is_default (yyn))
-        {
-          /* Start YYX at -YYN if negative to avoid negative indexes in
-             YYCHECK.  In other words, skip the first -YYN actions for
-             this state because they are default actions.  */
-          int yyxbegin = yyn < 0 ? -yyn : 0;
-          /* Stay within bounds of both yycheck and yytname.  */
-          int yychecklim = YYLAST - yyn + 1;
-          int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
-          int yyx;
-
-          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
-            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
-                && !yytable_value_is_error (yytable[yyx + yyn]))
-              {
-                if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
-                  {
-                    yycount = 1;
-                    yysize = yysize0;
-                    break;
-                  }
-                yyarg[yycount++] = yytname[yyx];
-                {
-                  YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
-                  if (! (yysize <= yysize1
-                         && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
-                    return 2;
-                  yysize = yysize1;
-                }
-              }
-        }
-    }
-
-  switch (yycount)
-    {
-# define YYCASE_(N, S)                      \
-      case N:                               \
-        yyformat = S;                       \
-      break
-      YYCASE_(0, YY_("syntax error"));
-      YYCASE_(1, YY_("syntax error, unexpected %s"));
-      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
-      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
-      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
-      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
-# undef YYCASE_
-    }
 
-  {
-    YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
-    if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
-      return 2;
-    yysize = yysize1;
-  }
 
-  if (*yymsg_alloc < yysize)
-    {
-      *yymsg_alloc = 2 * yysize;
-      if (! (yysize <= *yymsg_alloc
-             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
-        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
-      return 1;
-    }
 
-  /* Avoid sprintf, as that infringes on the user's name space.
-     Don't have undefined behavior even if the translation
-     produced a string with the wrong number of "%s"s.  */
-  {
-    char *yyp = *yymsg;
-    int yyi = 0;
-    while ((*yyp = *yyformat) != '\0')
-      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
-        {
-          yyp += yytnamerr (yyp, yyarg[yyi++]);
-          yyformat += 2;
-        }
-      else
-        {
-          yyp++;
-          yyformat++;
-        }
-  }
-  return 0;
-}
-#endif /* YYERROR_VERBOSE */
 
 /*-----------------------------------------------.
 | Release the memory associated to this symbol.  |
 `-----------------------------------------------*/
 
 static void
-yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
+yydestruct (const char *yymsg,
+            yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
 {
   YYUSE (yyvaluep);
   if (!yymsg)
     yymsg = "Deleting";
-  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
+  YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
 
   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-  YYUSE (yytype);
+  YYUSE (yykind);
   YY_IGNORE_MAYBE_UNINITIALIZED_END
 }
 
 
-
-
-/* The lookahead symbol.  */
+/* Lookahead token kind.  */
 int yychar;
 
 /* The semantic value of the lookahead symbol.  */
@@ -1112,6 +1021,8 @@ YYSTYPE yylval;
 int yynerrs;
 
 
+
+
 /*----------.
 | yyparse.  |
 `----------*/
@@ -1119,43 +1030,36 @@ int yynerrs;
 int
 yyparse (void)
 {
-    int yystate;
+    yy_state_fast_t yystate = 0;
     /* Number of tokens to shift before error messages enabled.  */
-    int yyerrstatus;
-
-    /* The stacks and their tools:
-       'yyss': related to states.
-       'yyvs': related to semantic values.
+    int yyerrstatus = 0;
 
-       Refer to the stacks through separate pointers, to allow yyoverflow
+    /* Refer to the stacks through separate pointers, to allow yyoverflow
        to reallocate them elsewhere.  */
 
-    /* The state stack.  */
-    yytype_int16 yyssa[YYINITDEPTH];
-    yytype_int16 *yyss;
-    yytype_int16 *yyssp;
+    /* Their size.  */
+    YYPTRDIFF_T yystacksize = YYINITDEPTH;
 
-    /* The semantic value stack.  */
-    YYSTYPE yyvsa[YYINITDEPTH];
-    YYSTYPE *yyvs;
-    YYSTYPE *yyvsp;
+    /* The state stack: array, bottom, top.  */
+    yy_state_t yyssa[YYINITDEPTH];
+    yy_state_t *yyss = yyssa;
+    yy_state_t *yyssp = yyss;
 
-    YYSIZE_T yystacksize;
+    /* The semantic value stack: array, bottom, top.  */
+    YYSTYPE yyvsa[YYINITDEPTH];
+    YYSTYPE *yyvs = yyvsa;
+    YYSTYPE *yyvsp = yyvs;
 
   int yyn;
+  /* The return value of yyparse.  */
   int yyresult;
-  /* Lookahead token as an internal (translated) token number.  */
-  int yytoken = 0;
+  /* Lookahead symbol kind.  */
+  yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
   /* The variables used to return semantic value and location from the
      action routines.  */
   YYSTYPE yyval;
 
-#if YYERROR_VERBOSE
-  /* Buffer for error messages, and its allocated size.  */
-  char yymsgbuf[128];
-  char *yymsg = yymsgbuf;
-  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
-#endif
+
 
 #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
 
@@ -1163,58 +1067,60 @@ yyparse (void)
      Keep to zero when no symbol should be popped.  */
   int yylen = 0;
 
-  yyssp = yyss = yyssa;
-  yyvsp = yyvs = yyvsa;
-  yystacksize = YYINITDEPTH;
-
   YYDPRINTF ((stderr, "Starting parse\n"));
 
-  yystate = 0;
-  yyerrstatus = 0;
-  yynerrs = 0;
   yychar = YYEMPTY; /* Cause a token to be read.  */
   goto yysetstate;
 
+
 /*------------------------------------------------------------.
-| yynewstate -- Push a new state, which is found in yystate.  |
+| yynewstate -- push a new state, which is found in yystate.  |
 `------------------------------------------------------------*/
- yynewstate:
+yynewstate:
   /* 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++;
 
- yysetstate:
-  *yyssp = yystate;
+
+/*--------------------------------------------------------------------.
+| yysetstate -- set current state (the top of the stack) to yystate.  |
+`--------------------------------------------------------------------*/
+yysetstate:
+  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
+  YY_IGNORE_USELESS_CAST_BEGIN
+  *yyssp = YY_CAST (yy_state_t, yystate);
+  YY_IGNORE_USELESS_CAST_END
+  YY_STACK_PRINT (yyss, yyssp);
 
   if (yyss + yystacksize - 1 <= yyssp)
+#if !defined yyoverflow && !defined YYSTACK_RELOCATE
+    goto yyexhaustedlab;
+#else
     {
       /* Get the current used size of the three stacks, in elements.  */
-      YYSIZE_T yysize = yyssp - yyss + 1;
+      YYPTRDIFF_T yysize = yyssp - yyss + 1;
 
-#ifdef yyoverflow
+# if defined 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.  */
+        yy_state_t *yyss1 = yyss;
         YYSTYPE *yyvs1 = yyvs;
-        yytype_int16 *yyss1 = yyss;
 
         /* 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 (YY_("memory exhausted"),
-                    &yyss1, yysize * sizeof (*yyssp),
-                    &yyvs1, yysize * sizeof (*yyvsp),
+                    &yyss1, yysize * YYSIZEOF (*yyssp),
+                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
                     &yystacksize);
-
         yyss = yyss1;
         yyvs = yyvs1;
       }
-#else /* no yyoverflow */
-# ifndef YYSTACK_RELOCATE
-      goto yyexhaustedlab;
-# else
+# else /* defined YYSTACK_RELOCATE */
       /* Extend the stack our own way.  */
       if (YYMAXDEPTH <= yystacksize)
         goto yyexhaustedlab;
@@ -1223,9 +1129,10 @@ yyparse (void)
         yystacksize = YYMAXDEPTH;
 
       {
-        yytype_int16 *yyss1 = yyss;
+        yy_state_t *yyss1 = yyss;
         union yyalloc *yyptr =
-          (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+          YY_CAST (union yyalloc *,
+                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
         if (! yyptr)
           goto yyexhaustedlab;
         YYSTACK_RELOCATE (yyss_alloc, yyss);
@@ -1235,30 +1142,30 @@ yyparse (void)
           YYSTACK_FREE (yyss1);
       }
 # endif
-#endif /* no yyoverflow */
 
       yyssp = yyss + yysize - 1;
       yyvsp = yyvs + yysize - 1;
 
-      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
-                  (unsigned long int) yystacksize));
+      YY_IGNORE_USELESS_CAST_BEGIN
+      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
+                  YY_CAST (long, yystacksize)));
+      YY_IGNORE_USELESS_CAST_END
 
       if (yyss + yystacksize - 1 <= yyssp)
         YYABORT;
     }
-
-  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
 
   if (yystate == YYFINAL)
     YYACCEPT;
 
   goto yybackup;
 
+
 /*-----------.
 | yybackup.  |
 `-----------*/
 yybackup:
-
   /* Do appropriate processing given the current state.  Read a
      lookahead token if we need one and don't already have one.  */
 
@@ -1269,18 +1176,29 @@ yybackup:
 
   /* Not known => get a lookahead token if don't already have one.  */
 
-  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
+  /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
   if (yychar == YYEMPTY)
     {
-      YYDPRINTF ((stderr, "Reading a token"));
+      YYDPRINTF ((stderr, "Reading a token\n"));
       yychar = yylex ();
     }
 
   if (yychar <= YYEOF)
     {
-      yychar = yytoken = YYEOF;
+      yychar = YYEOF;
+      yytoken = YYSYMBOL_YYEOF;
       YYDPRINTF ((stderr, "Now at end of input.\n"));
     }
+  else if (yychar == YYerror)
+    {
+      /* The scanner already issued an error message, process directly
+         to error recovery.  But do not keep the error token as
+         lookahead, it is too special and may lead us to an endless
+         loop in error recovery. */
+      yychar = YYUNDEF;
+      yytoken = YYSYMBOL_YYerror;
+      goto yyerrlab1;
+    }
   else
     {
       yytoken = YYTRANSLATE (yychar);
@@ -1308,15 +1226,13 @@ yybackup:
 
   /* Shift the lookahead token.  */
   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
-
-  /* Discard the shifted token.  */
-  yychar = YYEMPTY;
-
   yystate = yyn;
   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
   *++yyvsp = yylval;
   YY_IGNORE_MAYBE_UNINITIALIZED_END
 
+  /* Discard the shifted token.  */
+  yychar = YYEMPTY;
   goto yynewstate;
 
 
@@ -1331,7 +1247,7 @@ yydefault:
 
 
 /*-----------------------------.
-| yyreduce -- Do a reduction.  |
+| yyreduce -- do a reduction.  |
 `-----------------------------*/
 yyreduce:
   /* yyn is the number of a rule to reduce with.  */
@@ -1351,9 +1267,9 @@ yyreduce:
   YY_REDUCE_PRINT (yyn);
   switch (yyn)
     {
-        case 4:
-#line 132 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 4: /* item: time  */
+#line 132 "server/parsedate.y"
+               {
            yyHaveTime++;
 #ifdef lint
            /* I am compulsive about lint natterings... */
@@ -1362,37 +1278,37 @@ yyreduce:
            }
 #endif /* lint */
        }
-#line 1366 "y.tab.c" /* yacc.c:1646  */
+#line 1282 "y.tab.c"
     break;
 
-  case 5:
-#line 141 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 5: /* item: time zone  */
+#line 141 "server/parsedate.y"
+                    {
            yyHaveTime++;
            yyTimezone = (yyvsp[0].Number);
        }
-#line 1375 "y.tab.c" /* yacc.c:1646  */
+#line 1291 "y.tab.c"
     break;
 
-  case 6:
-#line 145 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 6: /* item: date  */
+#line 145 "server/parsedate.y"
+               {
            yyHaveDate++;
        }
-#line 1383 "y.tab.c" /* yacc.c:1646  */
+#line 1299 "y.tab.c"
     break;
 
-  case 7:
-#line 148 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 7: /* item: rel  */
+#line 148 "server/parsedate.y"
+              {
            yyHaveRel = 1;
        }
-#line 1391 "y.tab.c" /* yacc.c:1646  */
+#line 1307 "y.tab.c"
     break;
 
-  case 8:
-#line 153 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 8: /* time: tUNUMBER o_merid  */
+#line 153 "server/parsedate.y"
+                           {
            if ((yyvsp[-1].Number) < 100) {
                yyHour = (yyvsp[-1].Number);
                yyMinutes = 0;
@@ -1404,46 +1320,46 @@ yyreduce:
            yySeconds = 0;
            yyMeridian = (yyvsp[0].Meridian);
        }
-#line 1408 "y.tab.c" /* yacc.c:1646  */
+#line 1324 "y.tab.c"
     break;
 
-  case 9:
-#line 165 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 9: /* time: tUNUMBER ':' tUNUMBER o_merid  */
+#line 165 "server/parsedate.y"
+                                        {
            yyHour = (yyvsp[-3].Number);
            yyMinutes = (yyvsp[-1].Number);
            yySeconds = 0;
            yyMeridian = (yyvsp[0].Meridian);
        }
-#line 1419 "y.tab.c" /* yacc.c:1646  */
+#line 1335 "y.tab.c"
     break;
 
-  case 10:
-#line 171 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 10: /* time: tUNUMBER ':' tUNUMBER numzone  */
+#line 171 "server/parsedate.y"
+                                        {
            yyHour = (yyvsp[-3].Number);
            yyMinutes = (yyvsp[-1].Number);
            yyTimezone = (yyvsp[0].Number);
            yyMeridian = MER24;
            yyDSTmode = DSToff;
        }
-#line 1431 "y.tab.c" /* yacc.c:1646  */
+#line 1347 "y.tab.c"
     break;
 
-  case 11:
-#line 178 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 11: /* time: tUNUMBER ':' tUNUMBER ':' tUNUMBER o_merid  */
+#line 178 "server/parsedate.y"
+                                                     {
            yyHour = (yyvsp[-5].Number);
            yyMinutes = (yyvsp[-3].Number);
            yySeconds = (yyvsp[-1].Number);
            yyMeridian = (yyvsp[0].Meridian);
        }
-#line 1442 "y.tab.c" /* yacc.c:1646  */
+#line 1358 "y.tab.c"
     break;
 
-  case 12:
-#line 184 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 12: /* time: tUNUMBER ':' tUNUMBER ':' tUNUMBER numzone  */
+#line 184 "server/parsedate.y"
+                                                     {
            yyHour = (yyvsp[-5].Number);
            yyMinutes = (yyvsp[-3].Number);
            yySeconds = (yyvsp[-1].Number);
@@ -1451,30 +1367,30 @@ yyreduce:
            yyMeridian = MER24;
            yyDSTmode = DSToff;
        }
-#line 1455 "y.tab.c" /* yacc.c:1646  */
+#line 1371 "y.tab.c"
     break;
 
-  case 13:
-#line 194 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 13: /* zone: tZONE  */
+#line 194 "server/parsedate.y"
+                {
            (yyval.Number) = (yyvsp[0].Number);
            yyDSTmode = DSToff;
        }
-#line 1464 "y.tab.c" /* yacc.c:1646  */
+#line 1380 "y.tab.c"
     break;
 
-  case 14:
-#line 198 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 14: /* zone: tDAYZONE  */
+#line 198 "server/parsedate.y"
+                   {
            (yyval.Number) = (yyvsp[0].Number);
            yyDSTmode = DSTon;
        }
-#line 1473 "y.tab.c" /* yacc.c:1646  */
+#line 1389 "y.tab.c"
     break;
 
-  case 15:
-#line 202 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 15: /* zone: tZONE numzone  */
+#line 202 "server/parsedate.y"
+                        {
            /* Only allow "GMT+300" and "GMT-0800" */
            if ((yyvsp[-1].Number) != 0) {
                YYABORT;
@@ -1482,21 +1398,21 @@ yyreduce:
            (yyval.Number) = (yyvsp[0].Number);
            yyDSTmode = DSToff;
        }
-#line 1486 "y.tab.c" /* yacc.c:1646  */
+#line 1402 "y.tab.c"
     break;
 
-  case 16:
-#line 210 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 16: /* zone: numzone  */
+#line 210 "server/parsedate.y"
+                  {
            (yyval.Number) = (yyvsp[0].Number);
            yyDSTmode = DSToff;
        }
-#line 1495 "y.tab.c" /* yacc.c:1646  */
+#line 1411 "y.tab.c"
     break;
 
-  case 17:
-#line 216 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 17: /* numzone: tSNUMBER  */
+#line 216 "server/parsedate.y"
+                   {
            int         i;
 
            /* Unix and GMT and numeric timezones -- a little confusing. */
@@ -1515,21 +1431,21 @@ yyreduce:
                (yyval.Number) = -(((yyvsp[0].Number) / 100) * 60 + i);
            }
        }
-#line 1519 "y.tab.c" /* yacc.c:1646  */
+#line 1435 "y.tab.c"
     break;
 
-  case 18:
-#line 237 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 18: /* date: tUNUMBER '/' tUNUMBER  */
+#line 237 "server/parsedate.y"
+                                {
            yyMonth = (yyvsp[-2].Number);
            yyDay = (yyvsp[0].Number);
        }
-#line 1528 "y.tab.c" /* yacc.c:1646  */
+#line 1444 "y.tab.c"
     break;
 
-  case 19:
-#line 241 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 19: /* date: tUNUMBER '/' tUNUMBER '/' tUNUMBER  */
+#line 241 "server/parsedate.y"
+                                             {
            if ((yyvsp[-4].Number) > 100) {
                yyYear = (yyvsp[-4].Number);
                yyMonth = (yyvsp[-2].Number);
@@ -1541,107 +1457,108 @@ yyreduce:
                yyYear = (yyvsp[0].Number);
            }
        }
-#line 1545 "y.tab.c" /* yacc.c:1646  */
+#line 1461 "y.tab.c"
     break;
 
-  case 20:
-#line 253 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 20: /* date: tMONTH tUNUMBER  */
+#line 253 "server/parsedate.y"
+                          {
            yyMonth = (yyvsp[-1].Number);
            yyDay = (yyvsp[0].Number);
        }
-#line 1554 "y.tab.c" /* yacc.c:1646  */
+#line 1470 "y.tab.c"
     break;
 
-  case 21:
-#line 257 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 21: /* date: tMONTH tUNUMBER ',' tUNUMBER  */
+#line 257 "server/parsedate.y"
+                                       {
            yyMonth = (yyvsp[-3].Number);
            yyDay = (yyvsp[-2].Number);
            yyYear = (yyvsp[0].Number);
        }
-#line 1564 "y.tab.c" /* yacc.c:1646  */
+#line 1480 "y.tab.c"
     break;
 
-  case 22:
-#line 262 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 22: /* date: tUNUMBER tMONTH  */
+#line 262 "server/parsedate.y"
+                          {
            yyDay = (yyvsp[-1].Number);
            yyMonth = (yyvsp[0].Number);
        }
-#line 1573 "y.tab.c" /* yacc.c:1646  */
+#line 1489 "y.tab.c"
     break;
 
-  case 23:
-#line 266 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 23: /* date: tUNUMBER tMONTH tUNUMBER  */
+#line 266 "server/parsedate.y"
+                                   {
            yyDay = (yyvsp[-2].Number);
            yyMonth = (yyvsp[-1].Number);
            yyYear = (yyvsp[0].Number);
        }
-#line 1583 "y.tab.c" /* yacc.c:1646  */
+#line 1499 "y.tab.c"
     break;
 
-  case 24:
-#line 271 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 24: /* date: tDAY ',' tUNUMBER tMONTH tUNUMBER  */
+#line 271 "server/parsedate.y"
+                                            {
            yyDay = (yyvsp[-2].Number);
            yyMonth = (yyvsp[-1].Number);
            yyYear = (yyvsp[0].Number);
        }
-#line 1593 "y.tab.c" /* yacc.c:1646  */
+#line 1509 "y.tab.c"
     break;
 
-  case 25:
-#line 278 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 25: /* rel: tSNUMBER tSEC_UNIT  */
+#line 278 "server/parsedate.y"
+                             {
            yyRelSeconds += (yyvsp[-1].Number) * (yyvsp[0].Number);
        }
-#line 1601 "y.tab.c" /* yacc.c:1646  */
+#line 1517 "y.tab.c"
     break;
 
-  case 26:
-#line 281 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 26: /* rel: tUNUMBER tSEC_UNIT  */
+#line 281 "server/parsedate.y"
+                             {
            yyRelSeconds += (yyvsp[-1].Number) * (yyvsp[0].Number);
        }
-#line 1609 "y.tab.c" /* yacc.c:1646  */
+#line 1525 "y.tab.c"
     break;
 
-  case 27:
-#line 284 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 27: /* rel: tSNUMBER tMONTH_UNIT  */
+#line 284 "server/parsedate.y"
+                               {
            yyRelMonth += (yyvsp[-1].Number) * (yyvsp[0].Number);
        }
-#line 1617 "y.tab.c" /* yacc.c:1646  */
+#line 1533 "y.tab.c"
     break;
 
-  case 28:
-#line 287 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 28: /* rel: tUNUMBER tMONTH_UNIT  */
+#line 287 "server/parsedate.y"
+                               {
            yyRelMonth += (yyvsp[-1].Number) * (yyvsp[0].Number);
        }
-#line 1625 "y.tab.c" /* yacc.c:1646  */
+#line 1541 "y.tab.c"
     break;
 
-  case 29:
-#line 292 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 29: /* o_merid: %empty  */
+#line 292 "server/parsedate.y"
+                     {
            (yyval.Meridian) = MER24;
        }
-#line 1633 "y.tab.c" /* yacc.c:1646  */
+#line 1549 "y.tab.c"
     break;
 
-  case 30:
-#line 295 "parsedate.y" /* yacc.c:1646  */
-    {
+  case 30: /* o_merid: tMERIDIAN  */
+#line 295 "server/parsedate.y"
+                    {
            (yyval.Meridian) = (yyvsp[0].Meridian);
        }
-#line 1641 "y.tab.c" /* yacc.c:1646  */
+#line 1557 "y.tab.c"
     break;
 
 
-#line 1645 "y.tab.c" /* yacc.c:1646  */
+#line 1561 "y.tab.c"
+
       default: break;
     }
   /* User semantic actions sometimes alter yychar, and that requires
@@ -1655,25 +1572,23 @@ yyreduce:
      case of YYERROR or YYBACKUP, subsequent parser actions might lead
      to an incorrect destructor call or verbose syntax error message
      before the lookahead is translated.  */
-  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
+  YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
 
   YYPOPSTACK (yylen);
   yylen = 0;
-  YY_STACK_PRINT (yyss, yyssp);
 
   *++yyvsp = yyval;
 
   /* 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.  */
-
-  yyn = yyr1[yyn];
-
-  yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
-  if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
-    yystate = yytable[yystate];
-  else
-    yystate = yydefgoto[yyn - YYNTOKENS];
+  {
+    const int yylhs = yyr1[yyn] - YYNTOKENS;
+    const int yyi = yypgoto[yylhs] + *yyssp;
+    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
+               ? yytable[yyi]
+               : yydefgoto[yylhs]);
+  }
 
   goto yynewstate;
 
@@ -1684,50 +1599,14 @@ yyreduce:
 yyerrlab:
   /* Make sure we have latest lookahead translation.  See comments at
      user semantic actions for why this is necessary.  */
-  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
-
+  yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
   /* If not already recovering from an error, report this error.  */
   if (!yyerrstatus)
     {
       ++yynerrs;
-#if ! YYERROR_VERBOSE
       yyerror (YY_("syntax error"));
-#else
-# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
-                                        yyssp, yytoken)
-      {
-        char const *yymsgp = YY_("syntax error");
-        int yysyntax_error_status;
-        yysyntax_error_status = YYSYNTAX_ERROR;
-        if (yysyntax_error_status == 0)
-          yymsgp = yymsg;
-        else if (yysyntax_error_status == 1)
-          {
-            if (yymsg != yymsgbuf)
-              YYSTACK_FREE (yymsg);
-            yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
-            if (!yymsg)
-              {
-                yymsg = yymsgbuf;
-                yymsg_alloc = sizeof yymsgbuf;
-                yysyntax_error_status = 2;
-              }
-            else
-              {
-                yysyntax_error_status = YYSYNTAX_ERROR;
-                yymsgp = yymsg;
-              }
-          }
-        yyerror (yymsgp);
-        if (yysyntax_error_status == 2)
-          goto yyexhaustedlab;
-      }
-# undef YYSYNTAX_ERROR
-#endif
     }
 
-
-
   if (yyerrstatus == 3)
     {
       /* If just tried and failed to reuse lookahead token after an
@@ -1756,12 +1635,10 @@ yyerrlab:
 | yyerrorlab -- error raised explicitly by YYERROR.  |
 `---------------------------------------------------*/
 yyerrorlab:
-
-  /* Pacify compilers like GCC when the user code never invokes
-     YYERROR and the label yyerrorlab therefore never appears in user
-     code.  */
-  if (/*CONSTCOND*/ 0)
-     goto yyerrorlab;
+  /* Pacify compilers when the user code never invokes YYERROR and the
+     label yyerrorlab therefore never appears in user code.  */
+  if (0)
+    YYERROR;
 
   /* Do not reclaim the symbols of the rule whose action triggered
      this YYERROR.  */
@@ -1778,13 +1655,14 @@ yyerrorlab:
 yyerrlab1:
   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
 
+  /* Pop stack until we find a state that shifts the error token.  */
   for (;;)
     {
       yyn = yypact[yystate];
       if (!yypact_value_is_default (yyn))
         {
-          yyn += YYTERROR;
-          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+          yyn += YYSYMBOL_YYerror;
+          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
             {
               yyn = yytable[yyn];
               if (0 < yyn)
@@ -1798,7 +1676,7 @@ yyerrlab1:
 
 
       yydestruct ("Error: popping",
-                  yystos[yystate], yyvsp);
+                  YY_ACCESSING_SYMBOL (yystate), yyvsp);
       YYPOPSTACK (1);
       yystate = *yyssp;
       YY_STACK_PRINT (yyss, yyssp);
@@ -1810,7 +1688,7 @@ yyerrlab1:
 
 
   /* Shift the error token.  */
-  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
+  YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
 
   yystate = yyn;
   goto yynewstate;
@@ -1823,6 +1701,7 @@ yyacceptlab:
   yyresult = 0;
   goto yyreturn;
 
+
 /*-----------------------------------.
 | yyabortlab -- YYABORT comes here.  |
 `-----------------------------------*/
@@ -1830,16 +1709,21 @@ yyabortlab:
   yyresult = 1;
   goto yyreturn;
 
-#if !defined yyoverflow || YYERROR_VERBOSE
+
+#if !defined yyoverflow
 /*-------------------------------------------------.
 | yyexhaustedlab -- memory exhaustion comes here.  |
 `-------------------------------------------------*/
 yyexhaustedlab:
   yyerror (YY_("memory exhausted"));
   yyresult = 2;
-  /* Fall through.  */
+  goto yyreturn;
 #endif
 
+
+/*-------------------------------------------------------.
+| yyreturn -- parsing is finished, clean up and return.  |
+`-------------------------------------------------------*/
 yyreturn:
   if (yychar != YYEMPTY)
     {
@@ -1856,20 +1740,18 @@ yyreturn:
   while (yyssp != yyss)
     {
       yydestruct ("Cleanup: popping",
-                  yystos[*yyssp], yyvsp);
+                  YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
       YYPOPSTACK (1);
     }
 #ifndef yyoverflow
   if (yyss != yyssa)
     YYSTACK_FREE (yyss);
 #endif
-#if YYERROR_VERBOSE
-  if (yymsg != yymsgbuf)
-    YYSTACK_FREE (yymsg);
-#endif
+
   return yyresult;
 }
-#line 300 "parsedate.y" /* yacc.c:1906  */
+
+#line 300 "server/parsedate.y"
 
 
 /* Month and day table. */
index 2099418bf765d1d3017c65576e4235a05532d537..7cb2f811d6db3678247d03acebb6cb21a68de11c 100644 (file)
@@ -178,7 +178,7 @@ void SetTitles(void) {
 " 2. External LDAP - RFC 2307 POSIX schema\n"
 " 3. External LDAP - MS Active Directory schema\n"
 "\n"
-"For help: http://www.citadel.org/doku.php/faq:installation:authmodes\n"
+"For help: http://www.citadel.org/authmodes.html\n"
 "\n"
 "ANSWER \"0\" UNLESS YOU COMPLETELY UNDERSTAND THIS OPTION.\n");
 
@@ -206,24 +206,20 @@ void SetTitles(void) {
 "If you entered a Bind DN in the previous question, you must now enter\n"
 "the password associated with that account.  Otherwise, you can leave this\n"
 "blank.\n");
+}
 
-#if 0
-// Debug loading of locales... Strace does a better job though.
-       printf("Message catalog directory: %s\n", bindtextdomain("citadel-setup", LOCALEDIR"/locale"));
-       printf("Text domain: %s\n", textdomain("citadel-setup"));
-       printf("Text domain Charset: %s\n", bind_textdomain_codeset("citadel-setup","UTF8"));
-       {
-               int i;
-               for (i = 0; i < eMaxQuestions; i++)
-                       printf("%s - %s\n", setup_titles[i], _(setup_titles[i]));
-               exit(0);
-       }
-#endif
+
+void cls(void) {
+       printf("\033[2J\033[H\033[44m\033[1m\033[K\n");
+       printf("  %s  \033[K\n", program_title);
+       printf("\033[K\n");
+       printf("\033[0m\n");
 }
 
 
 void title(const char *text) {
-       printf("\n\033[1m\033[32m<\033[33m%s\033[32m>\033[0m\n", text);
+       cls();
+       printf("\033[1m\033[32m<\033[33m%s\033[32m>\033[0m\n", text);
 }
 
 
@@ -253,7 +249,8 @@ int yesno(const char *question, int default_value) {
 void important_message(const char *title, const char *msgtext) {
        char buf[SIZ];
 
-       printf("\n%s\n%s\n\n", title, msgtext);
+       cls();
+       printf("%s\n%s\n\n", title, msgtext);
        printf("%s", _("Press return to continue..."));
        if (fgets(buf, sizeof buf, stdin)) {
                ;
@@ -285,6 +282,7 @@ void progress(char *text, long int curr, long int cmax) {
        long i = 0;
 
        if (curr == 0) {
+               cls();
                printf("%s\n", text);
                printf("\033[1m\033[33m[\033[32m............................................................................\033[33m]\033[0m\r");
        }
@@ -670,7 +668,7 @@ int main(int argc, char *argv[]) {
        char *activity = NULL;
        
        // Keep a mild groove on
-       program_title = _("Citadel setup program");
+       program_title = _("Citadel Server setup");
 
        // set an invalid setup type
        setup_type = (-1);
@@ -730,9 +728,7 @@ int main(int argc, char *argv[]) {
        while (serv_gets(buf), strcmp(buf, "000")) {
                if (a == 5) {
                        if (atoi(buf) != REV_LEVEL) {
-                               display_error("%s\n",
-                               _("Your setup program and Citadel server are from different versions.")
-                               );
+                               display_error("%s\n", _("Your setup program and Citadel server are from different versions."));
                                exit(4);
                        }
                }