Giter Site home page Giter Site logo

Comments (3)

simoncozens avatar simoncozens commented on July 18, 2024 1

You've probably found a solution by now but for anyone else coming across this bug, try the following patch:

diff --git a/gram.y b/gram.y
index 547d43e..f4da4f2 100644
--- a/gram.y
+++ b/gram.y
@@ -10,6 +10,13 @@ char optchar;
 
 %}
 
+%union {
+    IDTYPE *id; /* identifier */
+    int num;    /* number */
+    char *text; /* text */
+    BODYTYPE *body; /* body */
+    RULETYPE *rule; /* rule */
+}
 /* identifier */
 
 %token <id> IDENTIFIER
diff --git a/rail.h b/rail.h
index 707aab9..943c320 100644
--- a/rail.h
+++ b/rail.h
@@ -51,14 +51,6 @@ typedef struct rule {
 	struct rule *next;
 } RULETYPE;
 
-typedef union {
-	IDTYPE *id;	/* identifier */
-	int num;	/* number */
-	char *text;	/* text */
-	BODYTYPE *body;	/* body */
-	RULETYPE *rule;	/* rule */
-} YYSTYPE;
-
 extern unsigned line;
 extern int copy;
 

from latex-rail.

Weltraumschaf avatar Weltraumschaf commented on July 18, 2024

I don't even remember where I tried this ^^

But thanks anyway!

from latex-rail.

pablosichert avatar pablosichert commented on July 18, 2024

Thanks for posting @simoncozens, can confirm that applying your patch makes the code compile.

from latex-rail.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.