diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-30 18:46:18 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-30 18:46:18 -0200 |
| commit | a9295a2b8ebca6bb7071c4424fd318afa33ebb9e (patch) | |
| tree | 545d4d4a72395d20482aae568869c7a96dfdff79 | |
| parent | c6fedc92f8b1c3e73d835f7641bffe4b199f0dd1 (diff) | |
| download | lua-a9295a2b8ebca6bb7071c4424fd318afa33ebb9e.tar.gz lua-a9295a2b8ebca6bb7071c4424fd318afa33ebb9e.tar.bz2 lua-a9295a2b8ebca6bb7071c4424fd318afa33ebb9e.zip | |
typos in comments
| -rw-r--r-- | lobject.c | 6 | ||||
| -rw-r--r-- | luaconf.h | 6 | ||||
| -rw-r--r-- | lvm.c | 4 |
3 files changed, 8 insertions, 8 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.c,v 2.120 2017/11/16 13:19:06 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.121 2017/11/23 19:29:04 roberto Exp roberto $ |
| 3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -193,7 +193,7 @@ static int isneg (const char **s) { | |||
| 193 | #define MAXSIGDIG 30 | 193 | #define MAXSIGDIG 30 |
| 194 | 194 | ||
| 195 | /* | 195 | /* |
| 196 | ** convert an hexadecimal numeric string to a number, following | 196 | ** convert a hexadecimal numeric string to a number, following |
| 197 | ** C99 specification for 'strtod' | 197 | ** C99 specification for 'strtod' |
| 198 | */ | 198 | */ |
| 199 | static lua_Number lua_strx2number (const char *s, char **endptr) { | 199 | static lua_Number lua_strx2number (const char *s, char **endptr) { |
| @@ -268,7 +268,7 @@ static const char *l_str2dloc (const char *s, lua_Number *result, int mode) { | |||
| 268 | ** Convert string 's' to a Lua number (put in 'result'). Return NULL | 268 | ** Convert string 's' to a Lua number (put in 'result'). Return NULL |
| 269 | ** on fail or the address of the ending '\0' on success. | 269 | ** on fail or the address of the ending '\0' on success. |
| 270 | ** 'pmode' points to (and 'mode' contains) special things in the string: | 270 | ** 'pmode' points to (and 'mode' contains) special things in the string: |
| 271 | ** - 'x'/'X' means an hexadecimal numeral | 271 | ** - 'x'/'X' means a hexadecimal numeral |
| 272 | ** - 'n'/'N' means 'inf' or 'nan' (which should be rejected) | 272 | ** - 'n'/'N' means 'inf' or 'nan' (which should be rejected) |
| 273 | ** - '.' just optimizes the search for the common case (nothing special) | 273 | ** - '.' just optimizes the search for the common case (nothing special) |
| 274 | ** This function accepts both the current locale or a dot as the radix | 274 | ** This function accepts both the current locale or a dot as the radix |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.261 2017/04/24 18:06:12 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.262 2017/12/07 18:53:33 roberto Exp roberto $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -610,7 +610,7 @@ | |||
| 610 | 610 | ||
| 611 | 611 | ||
| 612 | /* | 612 | /* |
| 613 | @@ lua_strx2number converts an hexadecimal numeric string to a number. | 613 | @@ lua_strx2number converts a hexadecimal numeric string to a number. |
| 614 | ** In C99, 'strtod' does that conversion. Otherwise, you can | 614 | ** In C99, 'strtod' does that conversion. Otherwise, you can |
| 615 | ** leave 'lua_strx2number' undefined and Lua will provide its own | 615 | ** leave 'lua_strx2number' undefined and Lua will provide its own |
| 616 | ** implementation. | 616 | ** implementation. |
| @@ -628,7 +628,7 @@ | |||
| 628 | 628 | ||
| 629 | 629 | ||
| 630 | /* | 630 | /* |
| 631 | @@ lua_number2strx converts a float to an hexadecimal numeric string. | 631 | @@ lua_number2strx converts a float to a hexadecimal numeric string. |
| 632 | ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. | 632 | ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. |
| 633 | ** Otherwise, you can leave 'lua_number2strx' undefined and Lua will | 633 | ** Otherwise, you can leave 'lua_number2strx' undefined and Lua will |
| 634 | ** provide its own implementation. | 634 | ** provide its own implementation. |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 2.329 2017/12/22 14:16:46 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.330 2017/12/28 15:42:57 roberto Exp roberto $ |
| 3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -674,7 +674,7 @@ static void pushclosure (lua_State *L, Proto *p, UpVal **encup, StkId base, | |||
| 674 | 674 | ||
| 675 | 675 | ||
| 676 | /* | 676 | /* |
| 677 | ** finish execution of an opcode interrupted by an yield | 677 | ** finish execution of an opcode interrupted by a yield |
| 678 | */ | 678 | */ |
| 679 | void luaV_finishOp (lua_State *L) { | 679 | void luaV_finishOp (lua_State *L) { |
| 680 | CallInfo *ci = L->ci; | 680 | CallInfo *ci = L->ci; |
