aboutsummaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-03-06 11:46:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-03-06 11:46:54 -0300
commite9a38203700865d36c3b2861200674a21930c1b5 (patch)
treef538c91f7d3faa8221906ff8b93b24d419ebd8e7 /llex.h
parent9e8a46daa28e902b4a6d74134d96e80411789175 (diff)
downloadlua-e9a38203700865d36c3b2861200674a21930c1b5.tar.gz
lua-e9a38203700865d36c3b2861200674a21930c1b5.tar.bz2
lua-e9a38203700865d36c3b2861200674a21930c1b5.zip
sizeof(string) != strlen(string)+1 when sizeof(char) != 1
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.h b/llex.h
index 28b86ddb..4a4370f7 100644
--- a/llex.h
+++ b/llex.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.h,v 1.33 2001/01/10 16:40:56 roberto Exp roberto $ 2** $Id: llex.h,v 1.34 2001/02/23 17:17:25 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -14,7 +14,7 @@
14#define FIRST_RESERVED 257 14#define FIRST_RESERVED 257
15 15
16/* maximum length of a reserved word */ 16/* maximum length of a reserved word */
17#define TOKEN_LEN (sizeof(l_s("function"))) 17#define TOKEN_LEN (sizeof(l_s("function"))/sizeof(l_char))
18 18
19 19
20/* 20/*