aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-05-10 10:54:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-05-10 10:54:01 -0300
commit73308c7605ac2e6c9af1c86f15c03d924f362696 (patch)
treeec42ab7889f70e57bbeb4451c988b871c5ea077b /lparser.c
parent288fa056020f20647c6db3e721498b96d8c62713 (diff)
downloadlua-73308c7605ac2e6c9af1c86f15c03d924f362696.tar.gz
lua-73308c7605ac2e6c9af1c86f15c03d924f362696.tar.bz2
lua-73308c7605ac2e6c9af1c86f15c03d924f362696.zip
warnings by clinio
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lparser.c b/lparser.c
index 9a206fba..e3696ee5 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.31 1999/03/25 21:06:57 roberto Exp roberto $ 2** $Id: lparser.c,v 1.32 1999/05/06 14:41:41 roberto Exp roberto $
3** LL(1) Parser and code generator for Lua 3** LL(1) Parser and code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -50,7 +50,7 @@
50*/ 50*/
51typedef enum {VGLOBAL, VLOCAL, VDOT, VINDEXED, VEXP} varkind; 51typedef enum {VGLOBAL, VLOCAL, VDOT, VINDEXED, VEXP} varkind;
52 52
53typedef struct { 53typedef struct vardesc {
54 varkind k; 54 varkind k;
55 int info; 55 int info;
56} vardesc; 56} vardesc;
@@ -62,7 +62,7 @@ typedef struct {
62** and, if last expression is open (a function call), 62** and, if last expression is open (a function call),
63** where is its pc index of "nparam" 63** where is its pc index of "nparam"
64*/ 64*/
65typedef struct { 65typedef struct listdesc {
66 int n; 66 int n;
67 int pc; /* 0 if last expression is closed */ 67 int pc; /* 0 if last expression is closed */
68} listdesc; 68} listdesc;
@@ -74,7 +74,7 @@ typedef struct {
74** it is a list constructor (k = 0) or a record constructor (k = 1) 74** it is a list constructor (k = 0) or a record constructor (k = 1)
75** or empty (k = ';' or '}') 75** or empty (k = ';' or '}')
76*/ 76*/
77typedef struct { 77typedef struct constdesc {
78 int n; 78 int n;
79 int k; 79 int k;
80} constdesc; 80} constdesc;
@@ -911,7 +911,7 @@ static OpCode opcodes [POW+1] = {NOTOP, MINUSOP, EQOP, NEQOP, GTOP, LTOP,
911 911
912#define MAXOPS 20 /* op's stack size */ 912#define MAXOPS 20 /* op's stack size */
913 913
914typedef struct { 914typedef struct stack_op {
915 int ops[MAXOPS]; 915 int ops[MAXOPS];
916 int top; 916 int top;
917} stack_op; 917} stack_op;