diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-13 11:43:10 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-05-13 11:43:10 -0300 |
| commit | 3b9dd52be02fd43c598f4adb6fa7844e6a573923 (patch) | |
| tree | 8f858942f5db0e3d9d7cad503b59ee1541a60aa6 /testes/all.lua | |
| parent | 7dc6aae29057c9dc4588f780c7abd72a62ff4c8e (diff) | |
| download | lua-3b9dd52be02fd43c598f4adb6fa7844e6a573923.tar.gz lua-3b9dd52be02fd43c598f4adb6fa7844e6a573923.tar.bz2 lua-3b9dd52be02fd43c598f4adb6fa7844e6a573923.zip | |
Collective declaration for globals ('global *')
Diffstat (limited to 'testes/all.lua')
| -rwxr-xr-x | testes/all.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testes/all.lua b/testes/all.lua index 5c7ebfa5..499c100d 100755 --- a/testes/all.lua +++ b/testes/all.lua | |||
| @@ -2,6 +2,10 @@ | |||
| 2 | -- $Id: testes/all.lua $ | 2 | -- $Id: testes/all.lua $ |
| 3 | -- See Copyright Notice in file lua.h | 3 | -- See Copyright Notice in file lua.h |
| 4 | 4 | ||
| 5 | global * <const> | ||
| 6 | |||
| 7 | global _soft, _port, _nomsg | ||
| 8 | global T | ||
| 5 | 9 | ||
| 6 | local version = "Lua 5.5" | 10 | local version = "Lua 5.5" |
| 7 | if _VERSION ~= version then | 11 | if _VERSION ~= version then |
| @@ -34,7 +38,7 @@ if usertests then | |||
| 34 | end | 38 | end |
| 35 | 39 | ||
| 36 | -- tests should require debug when needed | 40 | -- tests should require debug when needed |
| 37 | debug = nil | 41 | global debug; debug = nil |
| 38 | 42 | ||
| 39 | 43 | ||
| 40 | if usertests then | 44 | if usertests then |
| @@ -71,7 +75,7 @@ do -- ( | |||
| 71 | 75 | ||
| 72 | -- track messages for tests not performed | 76 | -- track messages for tests not performed |
| 73 | local msgs = {} | 77 | local msgs = {} |
| 74 | function Message (m) | 78 | global function Message (m) |
| 75 | if not _nomsg then | 79 | if not _nomsg then |
| 76 | print(m) | 80 | print(m) |
| 77 | msgs[#msgs+1] = string.sub(m, 3, -3) | 81 | msgs[#msgs+1] = string.sub(m, 3, -3) |
