Hi!

Syntax checking in bison 1.50 is a bit more tight than in previous
versions.  It trips over a couple of bugs in the OpenDX source code.
The patch below fixes them.  Generated output is identical to that of
earlier version, and I've also verified that older version of bison
still grok the modified files.  Patch is relative to the 4.2.0 release,
but the affected files are still unchanged in CVS HEAD.

Changes in detail:

  * src/exec/dxmods/_compparse.y: Fix symbol separator so recent bison
    does not barf.
  * src/exec/dpexec/yuiif.y: ;-terminate rules to keep bison 1.50 happy.

Please consider applying.

Regards,

Daniel.

---[snip]---

Index: src/exec/dpexec/yuiif.y
===================================================================
RCS file: /home/kobras/cvsroot/debian/dx/src/exec/dpexec/yuiif.y,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- src/exec/dpexec/yuiif.y     2000/07/31 15:10:38     1.1.1.1
+++ src/exec/dpexec/yuiif.y     2002/10/11 15:58:20     1.2
@@ -1550,18 +1550,21 @@
                    if (! _dxd_exUIPacket)
                        yyerrok;
                }
+               ;
 
 rightparen     : T_RPAR
                {
                    if (! _dxd_exUIPacket)
                        yyerrok;
                }
+               ;
 
 rightbracket   : T_RBRA
                {
                    if (! _dxd_exUIPacket)
                        yyerrok;
                }
+               ;
 
 id             : T_ID
                {
Index: src/exec/dxmods/_compparse.y
===================================================================
RCS file: /home/kobras/cvsroot/debian/dx/src/exec/dxmods/_compparse.y,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- src/exec/dxmods/_compparse.y        2002/03/21 02:57:26     1.1.1.1
+++ src/exec/dxmods/_compparse.y        2002/10/11 13:56:16     1.2
@@ -85,9 +85,9 @@
 %type <a> top
 %type <a> expr
 %type <a> statement_list
-%type <a> constant, real
+%type <a> constant real
 %type <a> list
-%type <a> optional_argument_list, argument_list
+%type <a> optional_argument_list argument_list
 
 /*
  * precedence table

Reply via email to