diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-05-10 10:54:01 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-05-10 10:54:01 -0300 |
commit | 73308c7605ac2e6c9af1c86f15c03d924f362696 (patch) | |
tree | ec42ab7889f70e57bbeb4451c988b871c5ea077b /lparser.c | |
parent | 288fa056020f20647c6db3e721498b96d8c62713 (diff) | |
download | lua-73308c7605ac2e6c9af1c86f15c03d924f362696.tar.gz lua-73308c7605ac2e6c9af1c86f15c03d924f362696.tar.bz2 lua-73308c7605ac2e6c9af1c86f15c03d924f362696.zip |
warnings by clinio
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 | */ |
51 | typedef enum {VGLOBAL, VLOCAL, VDOT, VINDEXED, VEXP} varkind; | 51 | typedef enum {VGLOBAL, VLOCAL, VDOT, VINDEXED, VEXP} varkind; |
52 | 52 | ||
53 | typedef struct { | 53 | typedef 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 | */ |
65 | typedef struct { | 65 | typedef 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 | */ |
77 | typedef struct { | 77 | typedef 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 | ||
914 | typedef struct { | 914 | typedef struct stack_op { |
915 | int ops[MAXOPS]; | 915 | int ops[MAXOPS]; |
916 | int top; | 916 | int top; |
917 | } stack_op; | 917 | } stack_op; |