diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/git-parser.c | 2 | ||||
-rw-r--r-- | src/meta1-gram.y | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/git-parser.c b/src/git-parser.c index e332704..7b887a7 100644 --- a/src/git-parser.c +++ b/src/git-parser.c | |||
@@ -55,13 +55,13 @@ rawinput() | |||
55 | return input_char = 0; | 55 | return input_char = 0; |
56 | input_char = fgetc(infile); | 56 | input_char = fgetc(infile); |
57 | if (input_char == '\n') { | 57 | if (input_char == '\n') { |
58 | tok.prev_col = grecs_current_locus_point.col; | 58 | tok.prev_col = grecs_current_locus_point.col; |
59 | grecs_locus_point_advance_line(grecs_current_locus_point); | 59 | grecs_locus_point_advance_line(grecs_current_locus_point); |
60 | } else if (input_char < 0) | 60 | } else if (input_char < 0) |
61 | input_char == 0; | 61 | input_char = 0; |
62 | else | 62 | else |
63 | grecs_current_locus_point.col++; | 63 | grecs_current_locus_point.col++; |
64 | return input_char; | 64 | return input_char; |
65 | } | 65 | } |
66 | 66 | ||
67 | static int | 67 | static int |
diff --git a/src/meta1-gram.y b/src/meta1-gram.y index 0fb6727..1411361 100644 --- a/src/meta1-gram.y +++ b/src/meta1-gram.y | |||
@@ -24,13 +24,14 @@ | |||
24 | #include "grecs-locus.h" | 24 | #include "grecs-locus.h" |
25 | 25 | ||
26 | int yylex(void); | 26 | int yylex(void); |
27 | int yyerror(char *s); | 27 | int yyerror(char *s); |
28 | 28 | ||
29 | static struct grecs_node *parse_tree; | 29 | static struct grecs_node *parse_tree; |
30 | extern int yy_flex_debug; | 30 | extern int yy_flex_debug; |
31 | extern void yyset_in(FILE *); | ||
31 | %} | 32 | %} |
32 | 33 | ||
33 | %error-verbose | 34 | %error-verbose |
34 | %locations | 35 | %locations |
35 | 36 | ||
36 | %union { | 37 | %union { |