diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-05-13 13:23:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-05-13 13:23:45 -0300 |
commit | e84f7bf19852c35ad0a1e9a1654a7b99a211e17c (patch) | |
tree | 3222dd7bba66beab29ef29cf1901e4ed2712e0f5 | |
parent | dfbde4c7d540f81f2cc539741a2c1f4c00f91c10 (diff) | |
download | lua-e84f7bf19852c35ad0a1e9a1654a7b99a211e17c.tar.gz lua-e84f7bf19852c35ad0a1e9a1654a7b99a211e17c.tar.bz2 lua-e84f7bf19852c35ad0a1e9a1654a7b99a211e17c.zip |
Details
Typos in comments.
-rw-r--r-- | lua.c | 4 | ||||
-rw-r--r-- | luaconf.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -211,7 +211,7 @@ static int dostring (lua_State *L, const char *s, const char *name) { | |||
211 | /* | 211 | /* |
212 | ** Receives 'globname[=modname]' and runs 'globname = require(modname)'. | 212 | ** Receives 'globname[=modname]' and runs 'globname = require(modname)'. |
213 | ** If there is no explicit modname and globname contains a '-', cut | 213 | ** If there is no explicit modname and globname contains a '-', cut |
214 | ** the sufix after '-' (the "version") to make the global name. | 214 | ** the suffix after '-' (the "version") to make the global name. |
215 | */ | 215 | */ |
216 | static int dolibrary (lua_State *L, char *globname) { | 216 | static int dolibrary (lua_State *L, char *globname) { |
217 | int status; | 217 | int status; |
@@ -230,7 +230,7 @@ static int dolibrary (lua_State *L, char *globname) { | |||
230 | status = docall(L, 1, 1); /* call 'require(modname)' */ | 230 | status = docall(L, 1, 1); /* call 'require(modname)' */ |
231 | if (status == LUA_OK) { | 231 | if (status == LUA_OK) { |
232 | if (suffix != NULL) /* is there a suffix mark? */ | 232 | if (suffix != NULL) /* is there a suffix mark? */ |
233 | *suffix = '\0'; /* remove sufix from global name */ | 233 | *suffix = '\0'; /* remove suffix from global name */ |
234 | lua_setglobal(L, globname); /* globname = require(modname) */ | 234 | lua_setglobal(L, globname); /* globname = require(modname) */ |
235 | } | 235 | } |
236 | return report(L, status); | 236 | return report(L, status); |
@@ -261,7 +261,7 @@ | |||
261 | /* | 261 | /* |
262 | ** LUA_IGMARK is a mark to ignore all after it when building the | 262 | ** LUA_IGMARK is a mark to ignore all after it when building the |
263 | ** module name (e.g., used to build the luaopen_ function name). | 263 | ** module name (e.g., used to build the luaopen_ function name). |
264 | ** Typically, the sufix after the mark is the module version, | 264 | ** Typically, the suffix after the mark is the module version, |
265 | ** as in "mod-v1.2.so". | 265 | ** as in "mod-v1.2.so". |
266 | */ | 266 | */ |
267 | #define LUA_IGMARK "-" | 267 | #define LUA_IGMARK "-" |