Package: byacc Version: 20100216-1 Severity: normal Tags: patch The generated file from byacc doesn't allow for making use of YYPARSE_PARAM. The following simple patch simply changes the YYPARSE_PARAM output block so that it comes after the C code sandwiched between the '%{' '%}' delimiters in the definition section. This allows for YYPARSE_PARAM to be defined and thus used.
-- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages byacc depends on: ii libc6 2.11.1-2 Embedded GNU C Library: Shared lib byacc recommends no packages. byacc suggests no packages. -- no debconf information
Fixes output order so that YYPARSE_PARAM can be overridden. --- byacc-20100216.orig/output.c +++ byacc-20100216/output.c @@ -1223,8 +1223,8 @@ output(void) free_shifts(); free_reductions(); output_prefix(output_file); - write_section(xdecls); output_stored_text(); + write_section(xdecls); output_defines(); output_rule_data(); output_yydefred();