~ubuntu-branches/ubuntu/trusty/syslog-ng/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/parser-expr-grammar.c

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS), Gergely Nagy
  • Date: 2011-10-11 14:30:48 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20111011143048-r1iljux9xbvj3lwh
Tags: 3.3.1.dfsg-1
* New upstream release with important fixes from upstream git tree with
  non-free manpages removed.
* Drop syslog-ng.conf(5) (closes: #496521).
* syslog-ng(8) is generated, and does not mention -Q anymore
  (closes: #616069).
* Supports CAP_SYSLOG on recent kernels (closes: #630172).
* Does not use g_timeout_add_seconds anymore (closes: #609154).

[ Gergely Nagy <algernon@madhouse-project.org> ]
* Update debian/copyright to DEP-5 format.
* Simplified the logrotate file by merging identical entries.
* Include local configuration files from /etc/syslog-ng/conf.d/ (Closes:
  #609050).
* Update syslog-ng.conf to be fully 3.3 compliant.
* Compress both source and binaries (except the syslog-ng meta
  package) with xz, instead of gzip.
* Use dpkg triggers to restart syslog-ng when appropriate.
* Include DFSG-free manual pages for all binaries.
* Build with Hardening enabled.
* Mention syslog(3) in /etc/default/syslog-ng, instead of
  <linux/kernel.h> (Closes: #608605)
* Support 'status' in the init script.
  Patch from Peter Eisentraut <petere@debian.org> (Closes: #644458)
* Build-Depend on libevtlog-dev (>= 0.2.12-5~) for correct shlibs.
* Use [linux-any] in Build-Depends instead of hardcoded links.
  (Closes: #634715)
* Use $SYSLOGNG_OPTS in the init script when reloading syslog-ng.
  (Closes: #589081)

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
     LL_CONTEXT_PRAGMA = 11,
131
131
     LL_CONTEXT_FORMAT = 12,
132
132
     LL_CONTEXT_TEMPLATE_FUNC = 13,
 
133
     LL_CONTEXT_INNER_DEST = 14,
 
134
     LL_CONTEXT_INNER_SRC = 15,
133
135
     KW_SOURCE = 10000,
134
136
     KW_FILTER = 10001,
135
137
     KW_PARSER = 10002,
189
191
     KW_PROGRAM_OVERRIDE = 10165,
190
192
     KW_HOST_OVERRIDE = 10166,
191
193
     KW_THROTTLE = 10170,
 
194
     KW_THREADED = 10171,
192
195
     KW_FLAGS = 10190,
193
196
     KW_PAD_SIZE = 10200,
194
197
     KW_TIME_ZONE = 10201,
238
241
     LL_BLOCK = 10426,
239
242
     LL_PRAGMA = 10427,
240
243
     LL_EOL = 10428,
241
 
     LL_ERROR = 10429
 
244
     LL_ERROR = 10429,
 
245
     KW_VALUE_PAIRS = 10500,
 
246
     KW_SELECT = 10501,
 
247
     KW_EXCLUDE = 10502,
 
248
     KW_PAIR = 10503,
 
249
     KW_KEY = 10504,
 
250
     KW_SCOPE = 10505
242
251
   };
243
252
#endif
244
253
/* Tokens.  */
255
264
#define LL_CONTEXT_PRAGMA 11
256
265
#define LL_CONTEXT_FORMAT 12
257
266
#define LL_CONTEXT_TEMPLATE_FUNC 13
 
267
#define LL_CONTEXT_INNER_DEST 14
 
268
#define LL_CONTEXT_INNER_SRC 15
258
269
#define KW_SOURCE 10000
259
270
#define KW_FILTER 10001
260
271
#define KW_PARSER 10002
314
325
#define KW_PROGRAM_OVERRIDE 10165
315
326
#define KW_HOST_OVERRIDE 10166
316
327
#define KW_THROTTLE 10170
 
328
#define KW_THREADED 10171
317
329
#define KW_FLAGS 10190
318
330
#define KW_PAD_SIZE 10200
319
331
#define KW_TIME_ZONE 10201
364
376
#define LL_PRAGMA 10427
365
377
#define LL_EOL 10428
366
378
#define LL_ERROR 10429
 
379
#define KW_VALUE_PAIRS 10500
 
380
#define KW_SELECT 10501
 
381
#define KW_EXCLUDE 10502
 
382
#define KW_PAIR 10503
 
383
#define KW_KEY 10504
 
384
#define KW_SCOPE 10505
367
385
 
368
386
 
369
387
 
392
410
 
393
411
 
394
412
/* Line 264 of yacc.c  */
395
 
#line 396 "parser-expr-grammar.c"
 
413
#line 414 "parser-expr-grammar.c"
396
414
/* Unqualified %code blocks.  */
397
415
 
398
416
/* Line 265 of yacc.c  */
408
426
 
409
427
 
410
428
/* Line 265 of yacc.c  */
411
 
#line 57 "parser-expr-grammar.y"
 
429
#line 58 "parser-expr-grammar.y"
412
430
 
413
431
 
414
432
# define YYLLOC_DEFAULT(Current, Rhs, N)                                \
438
456
          {                                                             \
439
457
            gchar __buf[256];                                           \
440
458
            g_snprintf(__buf, sizeof(__buf), errorfmt ? errorfmt : "x", ## __VA_ARGS__); \
441
 
            yyerror(& (token), lexer, NULL, __buf);                     \
 
459
            yyerror(& (token), lexer, NULL, NULL, __buf);               \
442
460
          }                                                             \
443
461
        YYERROR;                                                        \
444
462
      }                                                                 \
451
469
 
452
470
 
453
471
/* Line 265 of yacc.c  */
454
 
#line 455 "parser-expr-grammar.c"
 
472
#line 473 "parser-expr-grammar.c"
455
473
 
456
474
#ifdef short
457
475
# undef short
668
686
/* YYFINAL -- State number of the termination state.  */
669
687
#define YYFINAL  8
670
688
/* YYLAST -- Last index in YYTABLE.  */
671
 
#define YYLAST   9
 
689
#define YYLAST   15
672
690
 
673
691
/* YYNTOKENS -- Number of terminals.  */
674
 
#define YYNTOKENS  128
 
692
#define YYNTOKENS  138
675
693
/* YYNNTS -- Number of nonterminals.  */
676
694
#define YYNNTS  5
677
695
/* YYNRULES -- Number of rules.  */
681
699
 
682
700
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
683
701
#define YYUNDEFTOK  2
684
 
#define YYMAXUTOK   10430
 
702
#define YYMAXUTOK   10506
685
703
 
686
704
#define YYTRANSLATE(YYX)                                                \
687
705
  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
690
708
static const yytype_uint8 yytranslate[] =
691
709
{
692
710
       0,     3,     4,     5,     6,     7,     8,     9,    10,    11,
693
 
      12,    13,    14,    15,     2,     2,     2,     2,     2,     2,
694
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
695
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
696
 
     126,   127,     2,     2,     2,     2,     2,     2,     2,     2,
697
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,   125,
 
711
      12,    13,    14,    15,    16,    17,     2,     2,     2,     2,
 
712
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
713
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
714
     135,   136,     2,     2,     2,     2,     2,     2,     2,     2,
 
715
       2,     2,     2,     2,     2,     2,     2,     2,   137,   134,
698
716
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
699
717
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
700
718
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1689
1707
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1690
1708
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1691
1709
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1692
 
      16,    17,    18,    19,    20,    21,    22,    23,     2,     2,
1693
 
      24,    25,     2,     2,     2,     2,     2,     2,     2,     2,
1694
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1695
 
      26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
1696
 
      36,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1697
 
      37,    38,    39,    40,     2,     2,     2,     2,     2,     2,
1698
 
      41,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1699
 
       2,    42,    43,    44,    45,    46,    47,    48,    49,    50,
1700
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1701
 
      51,    52,    53,    54,    55,     2,     2,     2,     2,     2,
1702
 
      56,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1703
 
      57,    58,     2,     2,     2,     2,     2,     2,     2,     2,
 
1710
      18,    19,    20,    21,    22,    23,    24,    25,     2,     2,
 
1711
      26,    27,     2,     2,     2,     2,     2,     2,     2,     2,
 
1712
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1713
      28,    29,    30,    31,    32,    33,    34,    35,    36,    37,
 
1714
      38,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1715
      39,    40,    41,    42,     2,     2,     2,     2,     2,     2,
 
1716
      43,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1717
       2,    44,    45,    46,    47,    48,    49,    50,    51,    52,
 
1718
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1719
      53,    54,    55,    56,    57,     2,     2,     2,     2,     2,
 
1720
      58,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1704
1721
      59,    60,     2,     2,     2,     2,     2,     2,     2,     2,
1705
 
      61,    62,    63,     2,     2,     2,     2,     2,     2,     2,
1706
 
      64,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1707
 
      65,    66,    67,     2,     2,     2,     2,     2,     2,     2,
1708
 
      68,     2,    69,    70,    71,    72,    73,     2,     2,     2,
1709
 
      74,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1722
      61,    62,     2,     2,     2,     2,     2,     2,     2,     2,
 
1723
      63,    64,    65,     2,     2,     2,     2,     2,     2,     2,
 
1724
      66,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1725
      67,    68,    69,     2,     2,     2,     2,     2,     2,     2,
 
1726
      70,     2,    71,    72,    73,    74,    75,     2,     2,     2,
 
1727
      76,    77,     2,     2,     2,     2,     2,     2,     2,     2,
1710
1728
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1711
 
      75,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1712
 
      76,    77,    78,    79,    80,    81,     2,     2,     2,     2,
1713
 
      82,    83,    84,     2,     2,     2,     2,     2,     2,     2,
1714
 
      85,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1715
 
      86,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1716
 
      87,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1717
 
      88,    89,    90,     2,     2,     2,     2,     2,     2,     2,
 
1729
      78,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1730
      79,    80,    81,    82,    83,    84,     2,     2,     2,     2,
 
1731
      85,    86,    87,     2,     2,     2,     2,     2,     2,     2,
 
1732
      88,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1733
      89,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1734
      90,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1718
1735
      91,    92,    93,     2,     2,     2,     2,     2,     2,     2,
1719
 
      94,    95,     2,     2,     2,     2,     2,     2,     2,     2,
1720
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1721
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1722
 
      96,    97,     2,     2,     2,     2,     2,     2,     2,     2,
1723
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1724
 
       2,     2,     2,    98,     2,     2,     2,     2,     2,     2,
1725
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1726
 
      99,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1727
 
     100,   101,   102,   103,   104,   105,   106,     2,     2,     2,
1728
 
       2,   107,     2,     2,     2,     2,     2,     2,     2,     2,
1729
 
     108,   109,   110,     2,     2,     2,     2,     2,     2,     2,
1730
 
     111,   112,     2,     2,     2,     2,     2,     2,     2,     2,
1731
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1732
 
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
1733
 
     113,   114,     2,     2,     2,     2,     2,     2,     2,     2,
1734
 
     115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
1735
 
       2
 
1736
      94,    95,    96,     2,     2,     2,     2,     2,     2,     2,
 
1737
      97,    98,     2,     2,     2,     2,     2,     2,     2,     2,
 
1738
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1739
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1740
      99,   100,     2,     2,     2,     2,     2,     2,     2,     2,
 
1741
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1742
       2,     2,     2,   101,     2,     2,     2,     2,     2,     2,
 
1743
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1744
     102,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1745
     103,   104,   105,   106,   107,   108,   109,     2,     2,     2,
 
1746
       2,   110,     2,     2,     2,     2,     2,     2,     2,     2,
 
1747
     111,   112,   113,     2,     2,     2,     2,     2,     2,     2,
 
1748
     114,   115,     2,     2,     2,     2,     2,     2,     2,     2,
 
1749
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1750
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1751
     116,   117,     2,     2,     2,     2,     2,     2,     2,     2,
 
1752
     118,   119,   120,   121,   122,   123,   124,   125,   126,   127,
 
1753
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1754
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1755
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1756
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1757
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1758
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1759
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
 
1760
     128,   129,   130,   131,   132,   133,     2
1736
1761
};
1737
1762
 
1738
1763
#if YYDEBUG
1746
1771
/* YYRHS -- A `-1'-separated list of the rules' RHS.  */
1747
1772
static const yytype_int16 yyrhs[] =
1748
1773
{
1749
 
     129,     0,    -1,   130,    -1,   131,    -1,   132,   125,   131,
1750
 
      -1,   125,   131,    -1,    -1,   116,    -1
 
1774
     139,     0,    -1,   140,    -1,   141,    -1,   142,   134,   141,
 
1775
      -1,   134,   141,    -1,    -1,   119,    -1
1751
1776
};
1752
1777
 
1753
1778
/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
1754
1779
static const yytype_uint16 yyrline[] =
1755
1780
{
1756
 
       0,   291,   291,   295,   299,   300,   301,   306
 
1781
       0,   304,   304,   308,   312,   313,   314,   319
1757
1782
};
1758
1783
#endif
1759
1784
 
1767
1792
  "LL_CONTEXT_REWRITE", "LL_CONTEXT_FILTER", "LL_CONTEXT_LOG",
1768
1793
  "LL_CONTEXT_BLOCK_DEF", "LL_CONTEXT_BLOCK_REF",
1769
1794
  "LL_CONTEXT_BLOCK_CONTENT", "LL_CONTEXT_PRAGMA", "LL_CONTEXT_FORMAT",
1770
 
  "LL_CONTEXT_TEMPLATE_FUNC", "KW_SOURCE", "KW_FILTER", "KW_PARSER",
 
1795
  "LL_CONTEXT_TEMPLATE_FUNC", "LL_CONTEXT_INNER_DEST",
 
1796
  "LL_CONTEXT_INNER_SRC", "KW_SOURCE", "KW_FILTER", "KW_PARSER",
1771
1797
  "KW_DESTINATION", "KW_LOG", "KW_OPTIONS", "KW_INCLUDE", "KW_BLOCK",
1772
1798
  "KW_INTERNAL", "KW_FILE", "KW_SQL", "KW_TYPE", "KW_COLUMNS",
1773
1799
  "KW_INDEXES", "KW_VALUES", "KW_PASSWORD", "KW_DATABASE", "KW_USERNAME",
1782
1808
  "KW_DNS_CACHE_HOSTS", "KW_PERSIST_ONLY", "KW_TZ_CONVERT", "KW_TS_FORMAT",
1783
1809
  "KW_FRAC_DIGITS", "KW_LOG_FIFO_SIZE", "KW_LOG_FETCH_LIMIT",
1784
1810
  "KW_LOG_IW_SIZE", "KW_LOG_PREFIX", "KW_PROGRAM_OVERRIDE",
1785
 
  "KW_HOST_OVERRIDE", "KW_THROTTLE", "KW_FLAGS", "KW_PAD_SIZE",
1786
 
  "KW_TIME_ZONE", "KW_RECV_TIME_ZONE", "KW_SEND_TIME_ZONE",
 
1811
  "KW_HOST_OVERRIDE", "KW_THROTTLE", "KW_THREADED", "KW_FLAGS",
 
1812
  "KW_PAD_SIZE", "KW_TIME_ZONE", "KW_RECV_TIME_ZONE", "KW_SEND_TIME_ZONE",
1787
1813
  "KW_LOCAL_TIME_ZONE", "KW_FORMAT", "KW_TIME_REOPEN", "KW_TIME_REAP",
1788
1814
  "KW_TIME_SLEEP", "KW_TMPL_ESCAPE", "KW_OPTIONAL", "KW_CREATE_DIRS",
1789
1815
  "KW_OWNER", "KW_GROUP", "KW_PERM", "KW_DIR_OWNER", "KW_DIR_GROUP",
1793
1819
  "KW_MESSAGE", "KW_NETMASK", "KW_TAGS", "KW_VALUE", "KW_REWRITE",
1794
1820
  "KW_SET", "KW_SUBST", "KW_YES", "KW_NO", "KW_IFDEF", "KW_ENDIF",
1795
1821
  "LL_DOTDOT", "LL_IDENTIFIER", "LL_NUMBER", "LL_FLOAT", "LL_STRING",
1796
 
  "LL_TOKEN", "LL_BLOCK", "LL_PRAGMA", "LL_EOL", "LL_ERROR", "';'", "'('",
1797
 
  "')'", "$accept", "start", "parser_expr_list", "parser_expr_list_build",
1798
 
  "parser_expr", 0
 
1822
  "LL_TOKEN", "LL_BLOCK", "LL_PRAGMA", "LL_EOL", "LL_ERROR",
 
1823
  "KW_VALUE_PAIRS", "KW_SELECT", "KW_EXCLUDE", "KW_PAIR", "KW_KEY",
 
1824
  "KW_SCOPE", "';'", "'('", "')'", "':'", "$accept", "start",
 
1825
  "parser_expr_list", "parser_expr_list_build", "parser_expr", 0
1799
1826
};
1800
1827
#endif
1801
1828
 
1804
1831
   token YYLEX-NUM.  */
1805
1832
static const yytype_uint16 yytoknum[] =
1806
1833
{
1807
 
       0,   256, 10430,     1,     2,     3,     4,     5,     6,     7,
1808
 
       8,     9,    10,    11,    12,    13, 10000, 10001, 10002, 10003,
1809
 
   10004, 10005, 10006, 10007, 10010, 10011, 10030, 10031, 10032, 10033,
1810
 
   10034, 10035, 10036, 10037, 10038, 10039, 10040, 10050, 10051, 10052,
1811
 
   10053, 10060, 10071, 10072, 10073, 10074, 10075, 10076, 10077, 10078,
1812
 
   10079, 10090, 10091, 10092, 10093, 10094, 10100, 10110, 10111, 10120,
1813
 
   10121, 10130, 10131, 10132, 10140, 10150, 10151, 10152, 10160, 10162,
1814
 
   10163, 10164, 10165, 10166, 10170, 10190, 10200, 10201, 10202, 10203,
1815
 
   10204, 10205, 10210, 10211, 10212, 10220, 10230, 10240, 10250, 10251,
1816
 
   10252, 10260, 10261, 10262, 10270, 10271, 10300, 10301, 10323, 10340,
1817
 
   10350, 10351, 10352, 10353, 10354, 10355, 10356, 10361, 10370, 10371,
1818
 
   10372, 10380, 10381, 10410, 10411, 10420, 10421, 10422, 10423, 10424,
1819
 
   10425, 10426, 10427, 10428, 10429,    59,    40,    41
 
1834
       0,   256, 10506,     1,     2,     3,     4,     5,     6,     7,
 
1835
       8,     9,    10,    11,    12,    13,    14,    15, 10000, 10001,
 
1836
   10002, 10003, 10004, 10005, 10006, 10007, 10010, 10011, 10030, 10031,
 
1837
   10032, 10033, 10034, 10035, 10036, 10037, 10038, 10039, 10040, 10050,
 
1838
   10051, 10052, 10053, 10060, 10071, 10072, 10073, 10074, 10075, 10076,
 
1839
   10077, 10078, 10079, 10090, 10091, 10092, 10093, 10094, 10100, 10110,
 
1840
   10111, 10120, 10121, 10130, 10131, 10132, 10140, 10150, 10151, 10152,
 
1841
   10160, 10162, 10163, 10164, 10165, 10166, 10170, 10171, 10190, 10200,
 
1842
   10201, 10202, 10203, 10204, 10205, 10210, 10211, 10212, 10220, 10230,
 
1843
   10240, 10250, 10251, 10252, 10260, 10261, 10262, 10270, 10271, 10300,
 
1844
   10301, 10323, 10340, 10350, 10351, 10352, 10353, 10354, 10355, 10356,
 
1845
   10361, 10370, 10371, 10372, 10380, 10381, 10410, 10411, 10420, 10421,
 
1846
   10422, 10423, 10424, 10425, 10426, 10427, 10428, 10429, 10500, 10501,
 
1847
   10502, 10503, 10504, 10505,    59,    40,    41,    58
1820
1848
};
1821
1849
# endif
1822
1850
 
1823
1851
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
1824
1852
static const yytype_uint8 yyr1[] =
1825
1853
{
1826
 
       0,   128,   129,   130,   131,   131,   131,   132
 
1854
       0,   138,   139,   140,   141,   141,   141,   142
1827
1855
};
1828
1856
 
1829
1857
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
1849
1877
 
1850
1878
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
1851
1879
   STATE-NUM.  */
1852
 
#define YYPACT_NINF -123
1853
 
static const yytype_int8 yypact[] =
 
1880
#define YYPACT_NINF -132
 
1881
static const yytype_int16 yypact[] =
1854
1882
{
1855
 
    -116,  -123,  -116,     2,  -123,  -123,  -122,  -123,  -123,  -116,
1856
 
    -123
 
1883
    -119,  -132,  -119,     2,  -132,  -132,  -131,  -132,  -132,  -119,
 
1884
    -132
1857
1885
};
1858
1886
 
1859
1887
/* YYPGOTO[NTERM-NUM].  */
1860
 
static const yytype_int8 yypgoto[] =
 
1888
static const yytype_int16 yypgoto[] =
1861
1889
{
1862
 
    -123,  -123,  -123,    -1,  -123
 
1890
    -132,  -132,  -132,    -1,  -132
1863
1891
};
1864
1892
 
1865
1893
/* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
1869
1897
#define YYTABLE_NINF -1
1870
1898
static const yytype_uint8 yytable[] =
1871
1899
{
1872
 
       1,     7,     8,     9,     0,     0,     0,     0,    10,     2
 
1900
       1,     7,     8,     9,     0,     0,     0,     0,    10,     0,
 
1901
       0,     0,     0,     0,     0,     2
1873
1902
};
1874
1903
 
1875
 
static const yytype_int8 yycheck[] =
 
1904
static const yytype_int16 yycheck[] =
1876
1905
{
1877
 
     116,     2,     0,   125,    -1,    -1,    -1,    -1,     9,   125
 
1906
     119,     2,     0,   134,    -1,    -1,    -1,    -1,     9,    -1,
 
1907
      -1,    -1,    -1,    -1,    -1,   134
1878
1908
};
1879
1909
 
1880
1910
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
1881
1911
   symbol of state STATE-NUM.  */
1882
1912
static const yytype_uint8 yystos[] =
1883
1913
{
1884
 
       0,   116,   125,   129,   130,   131,   132,   131,     0,   125,
1885
 
     131
 
1914
       0,   119,   134,   139,   140,   141,   142,   141,     0,   134,
 
1915
     141
1886
1916
};
1887
1917
 
1888
1918
#define yyerrok         (yyerrstatus = 0)
1915
1945
    }                                                           \
1916
1946
  else                                                          \
1917
1947
    {                                                           \
1918
 
      yyerror (&yylloc, lexer, result, YY_("syntax error: cannot back up")); \
 
1948
      yyerror (&yylloc, lexer, result, arg, YY_("syntax error: cannot back up")); \
1919
1949
      YYERROR;                                                  \
1920
1950
    }                                                           \
1921
1951
while (YYID (0))
1995
2025
    {                                                                     \
1996
2026
      YYFPRINTF (stderr, "%s ", Title);                                   \
1997
2027
      yy_symbol_print (stderr,                                            \
1998
 
                  Type, Value, Location, lexer, result); \
 
2028
                  Type, Value, Location, lexer, result, arg); \
1999
2029
      YYFPRINTF (stderr, "\n");                                           \
2000
2030
    }                                                                     \
2001
2031
} while (YYID (0))
2009
2039
#if (defined __STDC__ || defined __C99__FUNC__ \
2010
2040
     || defined __cplusplus || defined _MSC_VER)
2011
2041
static void
2012
 
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, CfgLexer *lexer, GList **result)
 
2042
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, CfgLexer *lexer, GList **result, gpointer arg)
2013
2043
#else
2014
2044
static void
2015
 
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, lexer, result)
 
2045
yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, lexer, result, arg)
2016
2046
    FILE *yyoutput;
2017
2047
    int yytype;
2018
2048
    YYSTYPE const * const yyvaluep;
2019
2049
    YYLTYPE const * const yylocationp;
2020
2050
    CfgLexer *lexer;
2021
2051
    GList **result;
 
2052
    gpointer arg;
2022
2053
#endif
2023
2054
{
2024
2055
  if (!yyvaluep)
2026
2057
  YYUSE (yylocationp);
2027
2058
  YYUSE (lexer);
2028
2059
  YYUSE (result);
 
2060
  YYUSE (arg);
2029
2061
# ifdef YYPRINT
2030
2062
  if (yytype < YYNTOKENS)
2031
2063
    YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
2047
2079
#if (defined __STDC__ || defined __C99__FUNC__ \
2048
2080
     || defined __cplusplus || defined _MSC_VER)
2049
2081
static void
2050
 
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, CfgLexer *lexer, GList **result)
 
2082
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, CfgLexer *lexer, GList **result, gpointer arg)
2051
2083
#else
2052
2084
static void
2053
 
yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp, lexer, result)
 
2085
yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp, lexer, result, arg)
2054
2086
    FILE *yyoutput;
2055
2087
    int yytype;
2056
2088
    YYSTYPE const * const yyvaluep;
2057
2089
    YYLTYPE const * const yylocationp;
2058
2090
    CfgLexer *lexer;
2059
2091
    GList **result;
 
2092
    gpointer arg;
2060
2093
#endif
2061
2094
{
2062
2095
  if (yytype < YYNTOKENS)
2066
2099
 
2067
2100
  YY_LOCATION_PRINT (yyoutput, *yylocationp);
2068
2101
  YYFPRINTF (yyoutput, ": ");
2069
 
  yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, lexer, result);
 
2102
  yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, lexer, result, arg);
2070
2103
  YYFPRINTF (yyoutput, ")");
2071
2104
}
2072
2105
 
2109
2142
#if (defined __STDC__ || defined __C99__FUNC__ \
2110
2143
     || defined __cplusplus || defined _MSC_VER)
2111
2144
static void
2112
 
yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, CfgLexer *lexer, GList **result)
 
2145
yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, CfgLexer *lexer, GList **result, gpointer arg)
2113
2146
#else
2114
2147
static void
2115
 
yy_reduce_print (yyvsp, yylsp, yyrule, lexer, result)
 
2148
yy_reduce_print (yyvsp, yylsp, yyrule, lexer, result, arg)
2116
2149
    YYSTYPE *yyvsp;
2117
2150
    YYLTYPE *yylsp;
2118
2151
    int yyrule;
2119
2152
    CfgLexer *lexer;
2120
2153
    GList **result;
 
2154
    gpointer arg;
2121
2155
#endif
2122
2156
{
2123
2157
  int yynrhs = yyr2[yyrule];
2131
2165
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
2132
2166
      yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
2133
2167
                       &(yyvsp[(yyi + 1) - (yynrhs)])
2134
 
                       , &(yylsp[(yyi + 1) - (yynrhs)])                , lexer, result);
 
2168
                       , &(yylsp[(yyi + 1) - (yynrhs)])                , lexer, result, arg);
2135
2169
      YYFPRINTF (stderr, "\n");
2136
2170
    }
2137
2171
}
2139
2173
# define YY_REDUCE_PRINT(Rule)          \
2140
2174
do {                                    \
2141
2175
  if (yydebug)                          \
2142
 
    yy_reduce_print (yyvsp, yylsp, Rule, lexer, result); \
 
2176
    yy_reduce_print (yyvsp, yylsp, Rule, lexer, result, arg); \
2143
2177
} while (YYID (0))
2144
2178
 
2145
2179
/* Nonzero means print parse trace.  It is left uninitialized so that
2390
2424
#if (defined __STDC__ || defined __C99__FUNC__ \
2391
2425
     || defined __cplusplus || defined _MSC_VER)
2392
2426
static void
2393
 
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, CfgLexer *lexer, GList **result)
 
2427
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, CfgLexer *lexer, GList **result, gpointer arg)
2394
2428
#else
2395
2429
static void
2396
 
yydestruct (yymsg, yytype, yyvaluep, yylocationp, lexer, result)
 
2430
yydestruct (yymsg, yytype, yyvaluep, yylocationp, lexer, result, arg)
2397
2431
    const char *yymsg;
2398
2432
    int yytype;
2399
2433
    YYSTYPE *yyvaluep;
2400
2434
    YYLTYPE *yylocationp;
2401
2435
    CfgLexer *lexer;
2402
2436
    GList **result;
 
2437
    gpointer arg;
2403
2438
#endif
2404
2439
{
2405
2440
  YYUSE (yyvaluep);
2406
2441
  YYUSE (yylocationp);
2407
2442
  YYUSE (lexer);
2408
2443
  YYUSE (result);
 
2444
  YYUSE (arg);
2409
2445
 
2410
2446
  if (!yymsg)
2411
2447
    yymsg = "Deleting";
2428
2464
#endif
2429
2465
#else /* ! YYPARSE_PARAM */
2430
2466
#if defined __STDC__ || defined __cplusplus
2431
 
int yyparse (CfgLexer *lexer, GList **result);
 
2467
int yyparse (CfgLexer *lexer, GList **result, gpointer arg);
2432
2468
#else
2433
2469
int yyparse ();
2434
2470
#endif
2456
2492
#if (defined __STDC__ || defined __C99__FUNC__ \
2457
2493
     || defined __cplusplus || defined _MSC_VER)
2458
2494
int
2459
 
yyparse (CfgLexer *lexer, GList **result)
 
2495
yyparse (CfgLexer *lexer, GList **result, gpointer arg)
2460
2496
#else
2461
2497
int
2462
 
yyparse (lexer, result)
 
2498
yyparse (lexer, result, arg)
2463
2499
    CfgLexer *lexer;
2464
2500
    GList **result;
 
2501
    gpointer arg;
2465
2502
#endif
2466
2503
#endif
2467
2504
{
2743
2780
        case 2:
2744
2781
 
2745
2782
/* Line 1455 of yacc.c  */
2746
 
#line 291 "parser-expr-grammar.y"
 
2783
#line 304 "parser-expr-grammar.y"
2747
2784
    { *result = (yyvsp[(1) - (1)].ptr); if (yychar != YYEMPTY) { cfg_lexer_unput_token(lexer, &yylval); } YYACCEPT; }
2748
2785
    break;
2749
2786
 
2750
2787
  case 3:
2751
2788
 
2752
2789
/* Line 1455 of yacc.c  */
2753
 
#line 295 "parser-expr-grammar.y"
 
2790
#line 308 "parser-expr-grammar.y"
2754
2791
    { (yyval.ptr) = g_list_reverse((yyvsp[(1) - (1)].ptr)); }
2755
2792
    break;
2756
2793
 
2757
2794
  case 4:
2758
2795
 
2759
2796
/* Line 1455 of yacc.c  */
2760
 
#line 299 "parser-expr-grammar.y"
 
2797
#line 312 "parser-expr-grammar.y"
2761
2798
    { (yyval.ptr) = g_list_append((yyvsp[(3) - (3)].ptr), (yyvsp[(1) - (3)].ptr)); }
2762
2799
    break;
2763
2800
 
2764
2801
  case 5:
2765
2802
 
2766
2803
/* Line 1455 of yacc.c  */
2767
 
#line 300 "parser-expr-grammar.y"
 
2804
#line 313 "parser-expr-grammar.y"
2768
2805
    { (yyval.ptr) = (yyvsp[(2) - (2)].ptr); }
2769
2806
    break;
2770
2807
 
2771
2808
  case 6:
2772
2809
 
2773
2810
/* Line 1455 of yacc.c  */
2774
 
#line 301 "parser-expr-grammar.y"
 
2811
#line 314 "parser-expr-grammar.y"
2775
2812
    { (yyval.ptr) = NULL; }
2776
2813
    break;
2777
2814
 
2778
2815
  case 7:
2779
2816
 
2780
2817
/* Line 1455 of yacc.c  */
2781
 
#line 307 "parser-expr-grammar.y"
 
2818
#line 320 "parser-expr-grammar.y"
2782
2819
    {
2783
2820
            Plugin *p;
2784
2821
            gint context = LL_CONTEXT_PARSER;
2786
2823
            p = plugin_find(configuration, context, (yyvsp[(1) - (1)].cptr));
2787
2824
            CHECK_ERROR(p, (yylsp[(1) - (1)]), "%s plugin %s not found", cfg_lexer_lookup_context_name_by_type(context), (yyvsp[(1) - (1)].cptr));
2788
2825
 
2789
 
            last_parser = (LogParser *) plugin_parse_config(p, configuration, &(yylsp[(1) - (1)]));
 
2826
            last_parser = (LogParser *) plugin_parse_config(p, configuration, &(yylsp[(1) - (1)]), NULL);
2790
2827
            free((yyvsp[(1) - (1)].cptr));
2791
2828
            if (!last_parser)
2792
2829
              {
2799
2836
 
2800
2837
 
2801
2838
/* Line 1455 of yacc.c  */
2802
 
#line 2803 "parser-expr-grammar.c"
 
2839
#line 2840 "parser-expr-grammar.c"
2803
2840
      default: break;
2804
2841
    }
2805
2842
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
2835
2872
    {
2836
2873
      ++yynerrs;
2837
2874
#if ! YYERROR_VERBOSE
2838
 
      yyerror (&yylloc, lexer, result, YY_("syntax error"));
 
2875
      yyerror (&yylloc, lexer, result, arg, YY_("syntax error"));
2839
2876
#else
2840
2877
      {
2841
2878
        YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
2859
2896
        if (0 < yysize && yysize <= yymsg_alloc)
2860
2897
          {
2861
2898
            (void) yysyntax_error (yymsg, yystate, yychar);
2862
 
            yyerror (&yylloc, lexer, result, yymsg);
 
2899
            yyerror (&yylloc, lexer, result, arg, yymsg);
2863
2900
          }
2864
2901
        else
2865
2902
          {
2866
 
            yyerror (&yylloc, lexer, result, YY_("syntax error"));
 
2903
            yyerror (&yylloc, lexer, result, arg, YY_("syntax error"));
2867
2904
            if (yysize != 0)
2868
2905
              goto yyexhaustedlab;
2869
2906
          }
2887
2924
      else
2888
2925
        {
2889
2926
          yydestruct ("Error: discarding",
2890
 
                      yytoken, &yylval, &yylloc, lexer, result);
 
2927
                      yytoken, &yylval, &yylloc, lexer, result, arg);
2891
2928
          yychar = YYEMPTY;
2892
2929
        }
2893
2930
    }
2944
2981
 
2945
2982
      yyerror_range[0] = *yylsp;
2946
2983
      yydestruct ("Error: popping",
2947
 
                  yystos[yystate], yyvsp, yylsp, lexer, result);
 
2984
                  yystos[yystate], yyvsp, yylsp, lexer, result, arg);
2948
2985
      YYPOPSTACK (1);
2949
2986
      yystate = *yyssp;
2950
2987
      YY_STACK_PRINT (yyss, yyssp);
2984
3021
| yyexhaustedlab -- memory exhaustion comes here.  |
2985
3022
`-------------------------------------------------*/
2986
3023
yyexhaustedlab:
2987
 
  yyerror (&yylloc, lexer, result, YY_("memory exhausted"));
 
3024
  yyerror (&yylloc, lexer, result, arg, YY_("memory exhausted"));
2988
3025
  yyresult = 2;
2989
3026
  /* Fall through.  */
2990
3027
#endif
2992
3029
yyreturn:
2993
3030
  if (yychar != YYEMPTY)
2994
3031
     yydestruct ("Cleanup: discarding lookahead",
2995
 
                 yytoken, &yylval, &yylloc, lexer, result);
 
3032
                 yytoken, &yylval, &yylloc, lexer, result, arg);
2996
3033
  /* Do not reclaim the symbols of the rule which action triggered
2997
3034
     this YYABORT or YYACCEPT.  */
2998
3035
  YYPOPSTACK (yylen);
3000
3037
  while (yyssp != yyss)
3001
3038
    {
3002
3039
      yydestruct ("Cleanup: popping",
3003
 
                  yystos[*yyssp], yyvsp, yylsp, lexer, result);
 
3040
                  yystos[*yyssp], yyvsp, yylsp, lexer, result, arg);
3004
3041
      YYPOPSTACK (1);
3005
3042
    }
3006
3043
#ifndef yyoverflow
3018
3055
 
3019
3056
 
3020
3057
/* Line 1675 of yacc.c  */
3021
 
#line 462 "parser-expr-grammar.y"
 
3058
#line 542 "parser-expr-grammar.y"
3022
3059
 
3023
3060