* Convert spaces -> tabs to keep consistency with existing code.
This commit is contained in:
parent
f74b29d303
commit
e233db6dc0
|
@ -19,8 +19,8 @@
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "ack_string.h"
|
#include "ack_string.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
#include "LLlex.h"
|
#include "LLlex.h"
|
||||||
#include "Lpars.h"
|
#include "Lpars.h"
|
||||||
#include "idf.h"
|
#include "idf.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
extern int expect_label;
|
extern int expect_label;
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "code.h"
|
#include "code.h"
|
||||||
#include "chk_expr.h"
|
#include "chk_expr.h"
|
||||||
#include "tmpvar.h"
|
#include "tmpvar.h"
|
||||||
#include "typequiv.h"
|
#include "typequiv.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
void MarkDef(register struct node *nd, unsigned short flags, int on)
|
void MarkDef(register struct node *nd, unsigned short flags, int on)
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "code.h"
|
#include "code.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "typequiv.h"
|
#include "typequiv.h"
|
||||||
#include "casestat.h"
|
#include "casestat.h"
|
||||||
|
|
||||||
struct case_hdr {
|
struct case_hdr {
|
||||||
struct case_hdr *ch_next; /* in the free list */
|
struct case_hdr *ch_next; /* in the free list */
|
||||||
|
|
|
@ -25,11 +25,11 @@
|
||||||
#include "required.h"
|
#include "required.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "typequiv.h"
|
#include "typequiv.h"
|
||||||
#include "readwrite.h"
|
#include "readwrite.h"
|
||||||
#include "body.h"
|
#include "body.h"
|
||||||
#include "cstoper.h"
|
#include "cstoper.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
static int ChkValue(register struct node *);
|
static int ChkValue(register struct node *);
|
||||||
static int ChkUnOper(register struct node *);
|
static int ChkUnOper(register struct node *);
|
||||||
|
|
|
@ -21,10 +21,10 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "code.h"
|
#include "code.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "label.h"
|
#include "label.h"
|
||||||
#include "enter.h"
|
#include "enter.h"
|
||||||
#ifdef DBSYMTAB
|
#ifdef DBSYMTAB
|
||||||
#include "stab.h"
|
#include "stab.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -15,10 +15,10 @@
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "code.h"
|
#include "code.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "lookup.h"
|
#include "lookup.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
struct def *MkDef(register struct idf *id, register struct scope *scope,
|
struct def *MkDef(register struct idf *id, register struct scope *scope,
|
||||||
long kind)
|
long kind)
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "code.h"
|
#include "code.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
struct desig InitDesig = {DSG_INIT, 0, 0, NULLDEF, 0};
|
struct desig InitDesig = {DSG_INIT, 0, 0, NULLDEF, 0};
|
||||||
struct withdesig *WithDesigs;
|
struct withdesig *WithDesigs;
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "progs.h"
|
#include "progs.h"
|
||||||
#include "enter.h"
|
#include "enter.h"
|
||||||
#ifdef DBSYMTAB
|
#ifdef DBSYMTAB
|
||||||
#include "stab.h"
|
#include "stab.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
#include <em_arith.h>
|
#include <em_arith.h>
|
||||||
#include <em_label.h>
|
#include <em_label.h>
|
||||||
#include <em_code.h>
|
#include <em_code.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include "LLlex.h"
|
#include "LLlex.h"
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "code.h"
|
#include "code.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
Constant(register struct node **pnd;)
|
Constant(register struct node **pnd;)
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "label.h"
|
#include "label.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
static void CodeLabel(register struct def *df, int local);
|
static void CodeLabel(register struct def *df, int local);
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "lookup.h"
|
#include "lookup.h"
|
||||||
|
|
||||||
void remove_def(register struct def *df)
|
void remove_def(register struct def *df)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
#include "tokenname.h"
|
#include "tokenname.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "cstoper.h"
|
#include "cstoper.h"
|
||||||
#include "stab.h"
|
#include "stab.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
char options[128];
|
char options[128];
|
||||||
char *ProgName;
|
char *ProgName;
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
struct idf *gen_anon_idf(void)
|
struct idf *gen_anon_idf(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
#include <alloc.h>
|
#include <alloc.h>
|
||||||
#include <em_arith.h>
|
#include <em_arith.h>
|
||||||
#include <em_label.h>
|
#include <em_label.h>
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
|
|
||||||
#include "LLlex.h"
|
#include "LLlex.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
struct node *MkNode(int class, struct node *left, struct node *right, struct token *token)
|
struct node *MkNode(int class, struct node *left, struct node *right, struct token *token)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
#include "class.h"
|
#include "class.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "LLlex.h"
|
#include "LLlex.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
|
|
||||||
#define MINIDFSIZE 9
|
#define MINIDFSIZE 9
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "enter.h"
|
#include "enter.h"
|
||||||
#include "progs.h"
|
#include "progs.h"
|
||||||
#ifdef DBSYMTAB
|
#ifdef DBSYMTAB
|
||||||
#include "stab.h"
|
#include "stab.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <em.h>
|
#include <em.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "progs.h"
|
#include "progs.h"
|
||||||
#include "LLlex.h"
|
#include "LLlex.h"
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <em.h>
|
#include <em.h>
|
||||||
|
|
||||||
#include "print.h"
|
#include "print.h"
|
||||||
#include "LLlex.h"
|
#include "LLlex.h"
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
@ -14,11 +14,11 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "code.h"
|
#include "code.h"
|
||||||
#include "chk_expr.h"
|
#include "chk_expr.h"
|
||||||
#include "typequiv.h"
|
#include "typequiv.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "readwrite.h"
|
#include "readwrite.h"
|
||||||
|
|
||||||
|
|
||||||
/* DEBUG */
|
/* DEBUG */
|
||||||
|
|
|
@ -15,8 +15,8 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "lookup.h"
|
#include "lookup.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
struct scope *GlobalScope, *PervasiveScope, *BlockScope;
|
struct scope *GlobalScope, *PervasiveScope, *BlockScope;
|
||||||
struct scopelist *CurrVis;
|
struct scopelist *CurrVis;
|
||||||
|
|
|
@ -17,13 +17,13 @@
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "body.h"
|
#include "body.h"
|
||||||
#include "code.h"
|
#include "code.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "readwrite.h"
|
#include "readwrite.h"
|
||||||
#include "casestat.h"
|
#include "casestat.h"
|
||||||
#include "tmpvar.h"
|
#include "tmpvar.h"
|
||||||
#include "label.h"
|
#include "label.h"
|
||||||
|
|
||||||
int slevel = 0; /* nesting level of statements */
|
int slevel = 0; /* nesting level of statements */
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include <em_arith.h>
|
#include <em_arith.h>
|
||||||
#include <em_label.h>
|
#include <em_label.h>
|
||||||
#include <em_reg.h>
|
#include <em_reg.h>
|
||||||
#include <em_code.h>
|
#include <em_code.h>
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/* T O K E N D E F I N I T I O N S */
|
/* T O K E N D E F I N I T I O N S */
|
||||||
|
|
||||||
#include "parameters.h"
|
#include "parameters.h"
|
||||||
#include "Lpars.h"
|
#include "Lpars.h"
|
||||||
#include "LLlex.h"
|
#include "LLlex.h"
|
||||||
#include "idf.h"
|
#include "idf.h"
|
||||||
#include "tokenname.h"
|
#include "tokenname.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
/* To centralize the declaration of %tokens, their presence in this
|
/* To centralize the declaration of %tokens, their presence in this
|
||||||
file is taken as their declaration. The Makefile will produce
|
file is taken as their declaration. The Makefile will produce
|
||||||
|
|
|
@ -11,16 +11,16 @@
|
||||||
|
|
||||||
#include "LLlex.h"
|
#include "LLlex.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "chk_expr.h"
|
#include "chk_expr.h"
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "idf.h"
|
#include "idf.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "scope.h"
|
#include "scope.h"
|
||||||
#include "lookup.h"
|
#include "lookup.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "typequiv.h"
|
#include "typequiv.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#ifdef DBSYMTAB
|
#ifdef DBSYMTAB
|
||||||
#include "stab.h"
|
#include "stab.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
#include "node.h"
|
#include "node.h"
|
||||||
#include "type.h"
|
#include "type.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "typequiv.h"
|
#include "typequiv.h"
|
||||||
|
|
||||||
int TstTypeEquiv(register struct type *tp1, register struct type *tp2)
|
int TstTypeEquiv(register struct type *tp1, register struct type *tp2)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue