some minor fixes
This commit is contained in:
@@ -45,6 +45,9 @@ extern void LLscan(int);
|
|||||||
#ifndef LLNOFIRSTS
|
#ifndef LLNOFIRSTS
|
||||||
extern int LLfirst(int, int);
|
extern int LLfirst(int, int);
|
||||||
#endif
|
#endif
|
||||||
|
#if LL_NON_CORR
|
||||||
|
extern void LLnc_recover(void);
|
||||||
|
#endif
|
||||||
#else /* not LL_ANSI_C */
|
#else /* not LL_ANSI_C */
|
||||||
extern LLread();
|
extern LLread();
|
||||||
extern int LLskip();
|
extern int LLskip();
|
||||||
@@ -59,4 +62,7 @@ extern LLscan();
|
|||||||
#ifndef LLNOFIRSTS
|
#ifndef LLNOFIRSTS
|
||||||
extern int LLfirst();
|
extern int LLfirst();
|
||||||
#endif
|
#endif
|
||||||
|
#if LL_NON_CORR
|
||||||
|
extern LLnc_recover();
|
||||||
|
#endif
|
||||||
#endif /* not LL_ANSI_C */
|
#endif /* not LL_ANSI_C */
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <malloc.h>
|
|
||||||
#include <memory.h>
|
|
||||||
#include "Lpars.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
compile with -DNOFIRST to disable firstset optimization
|
compile with -DNOFIRST to disable firstset optimization
|
||||||
@@ -169,8 +166,10 @@ static void delete(struct stacks*, struct stack_elt*);
|
|||||||
static void hyp_run(struct stack_elt*);
|
static void hyp_run(struct stack_elt*);
|
||||||
static void check_run(struct stacks*, struct stack_elt*);
|
static void check_run(struct stacks*, struct stack_elt*);
|
||||||
static struct stack_elt *split(struct stack_elt*);
|
static struct stack_elt *split(struct stack_elt*);
|
||||||
|
#ifdef DEBUG
|
||||||
static void test(struct stacks*);
|
static void test(struct stacks*);
|
||||||
static void dump_stack(struct stack_elt*, int);
|
static void dump_stack(struct stack_elt*, int);
|
||||||
|
#endif
|
||||||
static void clear_flags(struct stack_elt*, char);
|
static void clear_flags(struct stack_elt*, char);
|
||||||
static void clear_gen_flags(struct stacks*);
|
static void clear_gen_flags(struct stacks*);
|
||||||
static void match_heads(struct stacks*, int);
|
static void match_heads(struct stacks*, int);
|
||||||
|
|||||||
Reference in New Issue
Block a user