Your message dated Mon, 7 Jun 2010 00:36:59 -0400
with message-id <[email protected]>
has caused the   report #584848,
regarding byacc: Allow a noop for yacc directive and command line option
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
584848: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584848
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Hello,

Here's yet another patch for bison compatibility. This turns the yacc 
directive and command line option into a noop, since byacc is designed to be 
posix yacc compatible anyway.

This patch would apply after all other patches I've submitted have been 
applied.

-- 
Regards,
Andres Mejia
Patch that implements noop for bison's yacc directive and command line option.

--- byacc-20100216.orig/reader.c
+++ byacc-20100216/reader.c
@@ -283,6 +283,8 @@ keyword(void)
 	    return (PARSE_PARAM);
 	if (strcmp(cache, "lex-param") == 0)
 	    return (LEX_PARAM);
+  if (strcmp(cache, "yacc") == 0)
+      return (POSIX_YACC);
     }
     else
     {
@@ -1235,6 +1237,11 @@ read_declarations(void)
 	case LEX_PARAM:
 	    copy_param(k);
 	    break;
+
+	case POSIX_YACC:
+	    /* noop for bison compatibility. byacc is already designed to be posix
+	     * yacc compatible. */
+	    break;
 }
     }
 }
--- byacc-20100216.orig/defs.h
+++ byacc-20100216/defs.h
@@ -95,6 +95,7 @@
 #define PURE_PARSER 12
 #define PARSE_PARAM 13
 #define LEX_PARAM 14
+#define POSIX_YACC 15
 
 /*  symbol classes  */
 
--- byacc-20100216.orig/main.c
+++ byacc-20100216/main.c
@@ -213,6 +213,11 @@ setflag(int ch)
 	printf("%s - %s\n", myname, VERSION);
 	exit(EXIT_SUCCESS);
 
+		case 'y':
+	/* noop for bison compatibility. byacc is already designed to be posix
+	 * yacc compatible. */
+	break;
+
     default:
 	usage();
     }

--- End Message ---

Reply via email to