summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/modutils/files/lex.l.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/modutils/files/lex.l.diff')
-rw-r--r--meta/recipes-kernel/modutils/files/lex.l.diff35
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-kernel/modutils/files/lex.l.diff b/meta/recipes-kernel/modutils/files/lex.l.diff
deleted file mode 100644
index b2419a4814..0000000000
--- a/meta/recipes-kernel/modutils/files/lex.l.diff
+++ /dev/null
@@ -1,35 +0,0 @@
1Upstream-Status: Pending
2
3--- modutils-2.4.26.orig/genksyms/lex.l
4+++ modutils-2.4.26/genksyms/lex.l
5@@ -130,6 +130,7 @@
6
7 static int suppress_type_lookup, dont_want_brace_phrase;
8 static struct string_list *next_node;
9+ static int next_token = 0;
10
11 int token, count = 0;
12 struct string_list *cur_node;
13@@ -144,7 +145,12 @@
14 }
15
16 repeat:
17- token = yylex1();
18+ if (next_token != 0) {
19+ token = next_token;
20+ next_token = 0;
21+ }
22+ else
23+ token = yylex1();
24
25 if (token == 0)
26 return 0;
27@@ -425,7 +431,7 @@
28 {
29 /* Put back the token we just read so's we can find it again
30 after registering the expression. */
31- unput(token);
32+ next_token = token;
33
34 lexstate = ST_NORMAL;
35 token = EXPRESSION_PHRASE;