Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/dist/ntpd - regen using byacc.



details:   https://anonhg.NetBSD.org/src/rev/135320ffd501
branches:  trunk
changeset: 325591:135320ffd501
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 30 19:06:45 2013 +0000

description:
- regen using byacc.
Now that we can generate the parser files we yacc, we could create a tool
keyword-gen so that we can generate all the files on the fly. It is not worth
it though.

diffstat:

 external/bsd/ntp/dist/ntpd/ntp_keyword.h |  1662 ++++----
 external/bsd/ntp/dist/ntpd/ntp_parser.c  |  5727 +++++++++++------------------
 external/bsd/ntp/dist/ntpd/ntp_parser.h  |   463 +-
 3 files changed, 3210 insertions(+), 4642 deletions(-)

diffs (truncated from 8129 to 300 lines):

diff -r 30949b8b995c -r 135320ffd501 external/bsd/ntp/dist/ntpd/ntp_keyword.h
--- a/external/bsd/ntp/dist/ntpd/ntp_keyword.h  Mon Dec 30 17:48:13 2013 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_keyword.h  Mon Dec 30 19:06:45 2013 +0000
@@ -1,247 +1,247 @@
-/*     $NetBSD: ntp_keyword.h,v 1.5 2013/12/28 03:20:14 christos Exp $ */
-
 /*
  * ntp_keyword.h
  * 
  * NOTE: edit this file with caution, it is generated by keyword-gen.c
- *      Generated 2013-08-04 04:56:14 UTC        diff_ignore_line
+ *      Generated 2013-12-30 19:01:20 UTC        diff_ignore_line
  *
  */
 #include "ntp_scanner.h"
 #include "ntp_parser.h"
 
-#define LOWEST_KEYWORD_ID 258
+#define LOWEST_KEYWORD_ID 257
 
-const char * const keyword_text[186] = {
-       /* 0       258             T_Abbrev */  "abbrev",
-       /* 1       259                T_Age */  "age",
-       /* 2       260                T_All */  "all",
-       /* 3       261              T_Allan */  "allan",
-       /* 4       262           T_Allpeers */  "allpeers",
-       /* 5       263               T_Auth */  "auth",
-       /* 6       264            T_Autokey */  "autokey",
-       /* 7       265            T_Automax */  "automax",
-       /* 8       266            T_Average */  "average",
-       /* 9       267            T_Bclient */  "bclient",
-       /* 10      268             T_Beacon */  "beacon",
-       /* 11      269          T_Broadcast */  "broadcast",
-       /* 12      270    T_Broadcastclient */  "broadcastclient",
-       /* 13      271     T_Broadcastdelay */  "broadcastdelay",
-       /* 14      272              T_Burst */  "burst",
-       /* 15      273          T_Calibrate */  "calibrate",
-       /* 16      274            T_Ceiling */  "ceiling",
-       /* 17      275         T_Clockstats */  "clockstats",
-       /* 18      276             T_Cohort */  "cohort",
-       /* 19      277         T_ControlKey */  "controlkey",
-       /* 20      278             T_Crypto */  "crypto",
-       /* 21      279        T_Cryptostats */  "cryptostats",
-       /* 22      280                T_Ctl */  "ctl",
-       /* 23      281                T_Day */  "day",
-       /* 24      282            T_Default */  "default",
-       /* 25      283             T_Digest */  "digest",
-       /* 26      284            T_Disable */  "disable",
-       /* 27      285            T_Discard */  "discard",
-       /* 28      286         T_Dispersion */  "dispersion",
-       /* 29      287             T_Double */  NULL,
-       /* 30      288          T_Driftfile */  "driftfile",
-       /* 31      289               T_Drop */  "drop",
-       /* 32      290           T_Ellipsis */  "...",
-       /* 33      291             T_Enable */  "enable",
-       /* 34      292                T_End */  "end",
-       /* 35      293              T_False */  NULL,
-       /* 36      294               T_File */  "file",
-       /* 37      295            T_Filegen */  "filegen",
-       /* 38      296            T_Filenum */  "filenum",
-       /* 39      297              T_Flag1 */  "flag1",
-       /* 40      298              T_Flag2 */  "flag2",
-       /* 41      299              T_Flag3 */  "flag3",
-       /* 42      300              T_Flag4 */  "flag4",
-       /* 43      301              T_Flake */  "flake",
-       /* 44      302              T_Floor */  "floor",
-       /* 45      303               T_Freq */  "freq",
-       /* 46      304              T_Fudge */  "fudge",
-       /* 47      305               T_Host */  "host",
-       /* 48      306           T_Huffpuff */  "huffpuff",
-       /* 49      307             T_Iburst */  "iburst",
-       /* 50      308              T_Ident */  "ident",
-       /* 51      309             T_Ignore */  "ignore",
-       /* 52      310           T_Incalloc */  "incalloc",
-       /* 53      311             T_Incmem */  "incmem",
-       /* 54      312          T_Initalloc */  "initalloc",
-       /* 55      313            T_Initmem */  "initmem",
-       /* 56      314        T_Includefile */  "includefile",
-       /* 57      315            T_Integer */  NULL,
-       /* 58      316          T_Interface */  "interface",
-       /* 59      317           T_Intrange */  NULL,
-       /* 60      318                 T_Io */  "io",
-       /* 61      319               T_Ipv4 */  "ipv4",
-       /* 62      320          T_Ipv4_flag */  "-4",
-       /* 63      321               T_Ipv6 */  "ipv6",
-       /* 64      322          T_Ipv6_flag */  "-6",
-       /* 65      323             T_Kernel */  "kernel",
-       /* 66      324                T_Key */  "key",
-       /* 67      325               T_Keys */  "keys",
-       /* 68      326            T_Keysdir */  "keysdir",
-       /* 69      327                T_Kod */  "kod",
-       /* 70      328             T_Mssntp */  "mssntp",
-       /* 71      329           T_Leapfile */  "leapfile",
-       /* 72      330            T_Limited */  "limited",
-       /* 73      331               T_Link */  "link",
-       /* 74      332             T_Listen */  "listen",
-       /* 75      333          T_Logconfig */  "logconfig",
-       /* 76      334            T_Logfile */  "logfile",
-       /* 77      335          T_Loopstats */  "loopstats",
-       /* 78      336        T_Lowpriotrap */  "lowpriotrap",
-       /* 79      337     T_Manycastclient */  "manycastclient",
-       /* 80      338     T_Manycastserver */  "manycastserver",
-       /* 81      339               T_Mask */  "mask",
-       /* 82      340             T_Maxage */  "maxage",
-       /* 83      341           T_Maxclock */  "maxclock",
-       /* 84      342           T_Maxdepth */  "maxdepth",
-       /* 85      343            T_Maxdist */  "maxdist",
-       /* 86      344             T_Maxmem */  "maxmem",
-       /* 87      345            T_Maxpoll */  "maxpoll",
-       /* 88      346                T_Mem */  "mem",
-       /* 89      347            T_Memlock */  "memlock",
-       /* 90      348           T_Minclock */  "minclock",
-       /* 91      349           T_Mindepth */  "mindepth",
-       /* 92      350            T_Mindist */  "mindist",
-       /* 93      351            T_Minimum */  "minimum",
-       /* 94      352            T_Minpoll */  "minpoll",
-       /* 95      353            T_Minsane */  "minsane",
-       /* 96      354               T_Mode */  "mode",
-       /* 97      355              T_Mode7 */  "mode7",
-       /* 98      356            T_Monitor */  "monitor",
-       /* 99      357              T_Month */  "month",
-       /* 100     358                T_Mru */  "mru",
-       /* 101     359    T_Multicastclient */  "multicastclient",
-       /* 102     360                T_Nic */  "nic",
-       /* 103     361             T_Nolink */  "nolink",
-       /* 104     362           T_Nomodify */  "nomodify",
-       /* 105     363          T_Nomrulist */  "nomrulist",
-       /* 106     364               T_None */  "none",
-       /* 107     365        T_Nonvolatile */  "nonvolatile",
-       /* 108     366             T_Nopeer */  "nopeer",
-       /* 109     367            T_Noquery */  "noquery",
-       /* 110     368           T_Noselect */  "noselect",
-       /* 111     369            T_Noserve */  "noserve",
-       /* 112     370             T_Notrap */  "notrap",
-       /* 113     371            T_Notrust */  "notrust",
-       /* 114     372                T_Ntp */  "ntp",
-       /* 115     373            T_Ntpport */  "ntpport",
-       /* 116     374     T_NtpSignDsocket */  "ntpsigndsocket",
-       /* 117     375             T_Orphan */  "orphan",
-       /* 118     376         T_Orphanwait */  "orphanwait",
-       /* 119     377              T_Panic */  "panic",
-       /* 120     378               T_Peer */  "peer",
-       /* 121     379          T_Peerstats */  "peerstats",
-       /* 122     380              T_Phone */  "phone",
-       /* 123     381                T_Pid */  "pid",
-       /* 124     382            T_Pidfile */  "pidfile",
-       /* 125     383               T_Pool */  "pool",
-       /* 126     384               T_Port */  "port",
-       /* 127     385            T_Preempt */  "preempt",
-       /* 128     386             T_Prefer */  "prefer",
-       /* 129     387         T_Protostats */  "protostats",
-       /* 130     388                 T_Pw */  "pw",
-       /* 131     389           T_Randfile */  "randfile",
-       /* 132     390           T_Rawstats */  "rawstats",
-       /* 133     391              T_Refid */  "refid",
-       /* 134     392         T_Requestkey */  "requestkey",
-       /* 135     393              T_Reset */  "reset",
-       /* 136     394           T_Restrict */  "restrict",
-       /* 137     395             T_Revoke */  "revoke",
-       /* 138     396             T_Rlimit */  "rlimit",
-       /* 139     397      T_Saveconfigdir */  "saveconfigdir",
-       /* 140     398             T_Server */  "server",
-       /* 141     399             T_Setvar */  "setvar",
-       /* 142     400             T_Source */  "source",
-       /* 143     401          T_Stacksize */  "stacksize",
-       /* 144     402         T_Statistics */  "statistics",
-       /* 145     403              T_Stats */  "stats",
-       /* 146     404           T_Statsdir */  "statsdir",
-       /* 147     405               T_Step */  "step",
-       /* 148     406            T_Stepout */  "stepout",
-       /* 149     407            T_Stratum */  "stratum",
-       /* 150     408             T_String */  NULL,
-       /* 151     409                T_Sys */  "sys",
-       /* 152     410           T_Sysstats */  "sysstats",
-       /* 153     411               T_Tick */  "tick",
-       /* 154     412              T_Time1 */  "time1",
-       /* 155     413              T_Time2 */  "time2",
-       /* 156     414              T_Timer */  "timer",
-       /* 157     415        T_Timingstats */  "timingstats",
-       /* 158     416             T_Tinker */  "tinker",
-       /* 159     417                T_Tos */  "tos",
-       /* 160     418               T_Trap */  "trap",
-       /* 161     419               T_True */  "true",
-       /* 162     420         T_Trustedkey */  "trustedkey",
-       /* 163     421                T_Ttl */  "ttl",
-       /* 164     422               T_Type */  "type",
-       /* 165     423              T_U_int */  NULL,
-       /* 166     424           T_Unconfig */  "unconfig",
-       /* 167     425             T_Unpeer */  "unpeer",
-       /* 168     426            T_Version */  "version",
-       /* 169     427    T_WanderThreshold */  NULL,
-       /* 170     428               T_Week */  "week",
-       /* 171     429           T_Wildcard */  "wildcard",
-       /* 172     430             T_Xleave */  "xleave",
-       /* 173     431               T_Year */  "year",
-       /* 174     432               T_Flag */  NULL,
-       /* 175     433                T_EOC */  NULL,
-       /* 176     434           T_Simulate */  "simulate",
-       /* 177     435         T_Beep_Delay */  "beep_delay",
-       /* 178     436       T_Sim_Duration */  "simulation_duration",
-       /* 179     437      T_Server_Offset */  "server_offset",
-       /* 180     438           T_Duration */  "duration",
-       /* 181     439        T_Freq_Offset */  "freq_offset",
-       /* 182     440             T_Wander */  "wander",
-       /* 183     441             T_Jitter */  "jitter",
-       /* 184     442         T_Prop_Delay */  "prop_delay",
+const char * const keyword_text[187] = {
+       /* 0       257                  257 */  "abbrev",
+       /* 1       258                  258 */  "age",
+       /* 2       259                  259 */  "all",
+       /* 3       260                  260 */  "allan",
+       /* 4       261                  261 */  "allpeers",
+       /* 5       262                  262 */  "auth",
+       /* 6       263                  263 */  "autokey",
+       /* 7       264                  264 */  "automax",
+       /* 8       265                  265 */  "average",
+       /* 9       266                  266 */  "bclient",
+       /* 10      267                  267 */  "beacon",
+       /* 11      268                  268 */  "broadcast",
+       /* 12      269                  269 */  "broadcastclient",
+       /* 13      270                  270 */  "broadcastdelay",
+       /* 14      271                  271 */  "burst",
+       /* 15      272                  272 */  "calibrate",
+       /* 16      273                  273 */  "ceiling",
+       /* 17      274                  274 */  "clockstats",
+       /* 18      275                  275 */  "cohort",
+       /* 19      276                  276 */  "controlkey",
+       /* 20      277                  277 */  "crypto",
+       /* 21      278                  278 */  "cryptostats",
+       /* 22      279                  279 */  "ctl",
+       /* 23      280                  280 */  "day",
+       /* 24      281                  281 */  "default",
+       /* 25      282                  282 */  "digest",
+       /* 26      283                  283 */  "disable",
+       /* 27      284                  284 */  "discard",
+       /* 28      285                  285 */  "dispersion",
+       /* 29      286                  286 */  NULL,
+       /* 30      287                  287 */  "driftfile",
+       /* 31      288                  288 */  "drop",
+       /* 32      289                  289 */  "...",
+       /* 33      290                  290 */  "enable",
+       /* 34      291                  291 */  "end",
+       /* 35      292                  292 */  NULL,
+       /* 36      293                  293 */  "file",
+       /* 37      294                  294 */  "filegen",
+       /* 38      295                  295 */  "filenum",
+       /* 39      296                  296 */  "flag1",
+       /* 40      297                  297 */  "flag2",
+       /* 41      298                  298 */  "flag3",
+       /* 42      299                  299 */  "flag4",
+       /* 43      300                  300 */  "flake",
+       /* 44      301                  301 */  "floor",
+       /* 45      302                  302 */  "freq",
+       /* 46      303                  303 */  "fudge",
+       /* 47      304                  304 */  "host",
+       /* 48      305                  305 */  "huffpuff",
+       /* 49      306                  306 */  "iburst",
+       /* 50      307                  307 */  "ident",
+       /* 51      308                  308 */  "ignore",
+       /* 52      309                  309 */  "incalloc",
+       /* 53      310                  310 */  "incmem",
+       /* 54      311                  311 */  "initalloc",
+       /* 55      312                  312 */  "initmem",
+       /* 56      313                  313 */  "includefile",
+       /* 57      314                  314 */  NULL,
+       /* 58      315                  315 */  "interface",
+       /* 59      316                  316 */  NULL,
+       /* 60      317                  317 */  "io",
+       /* 61      318                  318 */  "ipv4",
+       /* 62      319                  319 */  "-4",
+       /* 63      320                  320 */  "ipv6",
+       /* 64      321                  321 */  "-6",
+       /* 65      322                  322 */  "kernel",
+       /* 66      323                  323 */  "key",
+       /* 67      324                  324 */  "keys",
+       /* 68      325                  325 */  "keysdir",
+       /* 69      326                  326 */  "kod",
+       /* 70      327                  327 */  "mssntp",
+       /* 71      328                  328 */  "leapfile",
+       /* 72      329                  329 */  "limited",
+       /* 73      330                  330 */  "link",
+       /* 74      331                  331 */  "listen",
+       /* 75      332                  332 */  "logconfig",
+       /* 76      333                  333 */  "logfile",
+       /* 77      334                  334 */  "loopstats",
+       /* 78      335                  335 */  "lowpriotrap",
+       /* 79      336                  336 */  "manycastclient",
+       /* 80      337                  337 */  "manycastserver",
+       /* 81      338                  338 */  "mask",
+       /* 82      339                  339 */  "maxage",
+       /* 83      340                  340 */  "maxclock",
+       /* 84      341                  341 */  "maxdepth",
+       /* 85      342                  342 */  "maxdist",
+       /* 86      343                  343 */  "maxmem",
+       /* 87      344                  344 */  "maxpoll",
+       /* 88      345                  345 */  "mdnstries",
+       /* 89      346                  346 */  "mem",
+       /* 90      347                  347 */  "memlock",
+       /* 91      348                  348 */  "minclock",
+       /* 92      349                  349 */  "mindepth",



Home | Main Index | Thread Index | Old Index