[FYI] Make the Rust parser pure

Message ID 87pnzh5328.fsf@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey July 20, 2018, 3:39 p.m. UTC
  >>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> Actually, I will have to update this, because I tried it again with
Tom> byacc and now it fails.

It only required the appended additional patch, so I am going to check
it in with this change.

I tested it with both bison and byacc.

Tom
  

Patch

diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y
index 7efa0ff05b4..256eabe732a 100644
--- a/gdb/rust-exp.y
+++ b/gdb/rust-exp.y
@@ -113,6 +113,7 @@  typedef std::vector<set_field> rust_set_vector;
 
 %{
 
+struct rust_parser;
 static int rustyylex (YYSTYPE *, rust_parser *);
 static void rustyyerror (rust_parser *parser, const char *msg);