Skip to content

Commit

Permalink
262dc5729a28b2bad0b6413d4eab2290d14395cf
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Jun 7, 2024
1 parent d2ff472 commit 3e35459
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lauxlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {


/*
** Standard panic funcion just prints an error message. The test
** Standard panic function just prints an error message. The test
** with 'lua_type' avoids possible memory errors in 'lua_tostring'.
*/
static int panic (lua_State *L) {
Expand Down
2 changes: 1 addition & 1 deletion src/lgc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ static void sweepstep (lua_State *L, global_State *g,
** object.) When 'fast' is true, 'singlestep' tries to finish a state
** "as fast as possible". In particular, it skips the propagation
** phase and leaves all objects to be traversed by the atomic phase:
** That avoids traversing twice some objects, such as theads and
** That avoids traversing twice some objects, such as threads and
** weak tables.
*/
static l_obj singlestep (lua_State *L, int fast) {
Expand Down
2 changes: 1 addition & 1 deletion src/lgc.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
**
** To keep its invariants, the generational mode uses the same barriers
** also used by the incremental mode. If a young object is caught in a
** foward barrier, it cannot become old immediately, because it can
** forward barrier, it cannot become old immediately, because it can
** still point to other young objects. Instead, it becomes 'old0',
** which in the next cycle becomes 'old1'. So, 'old0' objects is
** old but can point to new and survival objects; 'old1' is old
Expand Down
2 changes: 1 addition & 1 deletion src/lstate.h
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ typedef struct global_State {
l_obj totalobjs; /* total number of objects allocated + GCdebt */
l_obj GCdebt; /* objects counted but not yet allocated */
l_obj marked; /* number of objects marked in a GC cycle */
l_obj GCmajorminor; /* auxiliar counter to control major-minor shifts */
l_obj GCmajorminor; /* auxiliary counter to control major-minor shifts */
stringtable strt; /* hash table for strings */
TValue l_registry;
TValue nilvalue; /* a nil value */
Expand Down
2 changes: 1 addition & 1 deletion testes/pm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ assert(f(" \n\r*&\n\r xuxu \n\n", "%g%g%g+") == "xuxu")

-- Adapt a pattern to UTF-8
local function PU (p)
-- reapply '?' into each individual byte of a character.
-- distribute '?' into each individual byte of a character.
-- (For instance, "á?" becomes "\195?\161?".)
p = string.gsub(p, "(" .. utf8.charpattern .. ")%?", function (c)
return string.gsub(c, ".", "%0?")
Expand Down

0 comments on commit 3e35459

Please sign in to comment.