aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/git-parser.c2
-rw-r--r--src/meta1-gram.y3
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
@@ -49,25 +49,25 @@ struct token {
#define ISINITIAL(c) ((isascii(c) && isalpha(c)) || (c) == '_')
static int
rawinput()
{
if (!infile || feof(infile))
return input_char = 0;
input_char = fgetc(infile);
if (input_char == '\n') {
tok.prev_col = grecs_current_locus_point.col;
grecs_locus_point_advance_line(grecs_current_locus_point);
} else if (input_char < 0)
- input_char == 0;
+ input_char = 0;
else
grecs_current_locus_point.col++;
return input_char;
}
static int
input()
{
rawinput();
if (input_char == '#' || input_char == ';') {
while (rawinput() && input_char != '\n')
;
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
@@ -18,25 +18,26 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <errno.h>
#include <string.h>
#include "grecs.h"
#include "grecs-locus.h"
int yylex(void);
int yyerror(char *s);
static struct grecs_node *parse_tree;
-extern int yy_flex_debug;
+extern int yy_flex_debug;
+extern void yyset_in(FILE *);
%}
%error-verbose
%locations
%union {
char *string;
grecs_value_t svalue, *pvalue;
struct grecs_list *list;
struct { struct grecs_node *head, *tail; } node_list;
struct grecs_node *node;
}

Return to:

Send suggestions and report system problems to the System administrator.