diff --git a/Manual.html b/Manual.html index f8212856..c6393bfa 100644 --- a/Manual.html +++ b/Manual.html @@ -753,7 +753,7 @@

2.3 - Class Objects

a.func1 () -- error: func1 expects an object of a registered class a.func1 (a) -- okay, verbose, this how OOP works in Lua -a:func1 () -- okay, less verbose, equvalent to the previous +a:func1 () -- okay, less verbose, equivalent to the previous @@ -767,7 +767,7 @@

2.4 - Property Member Proxies

Sometimes when registering a class which comes from a third party library, the data is not exposed in a way that can be expressed as a pointer to member, -there are no get or set functions, or the get and set functons do not have the +there are no get or set functions, or the get and set functions do not have the right function signature. Since the class declaration is closed for changes, LuaBridge allows for a property member proxy. This is a pair of get and set flat functions which take as their first parameter a pointer to @@ -1299,7 +1299,7 @@

3.4 - Shared Lifetime

references, and Lua performs its usual garbage collection cycle. A container is recognized by a specialization of the ContainerTraits template class. LuaBridge will automatically recognize when a data type is -a container when the correspoding specialization is present. Two styles of +a container when the corresponding specialization is present. Two styles of containers come with LuaBridge, including the necessary specializations.

@@ -1581,7 +1581,7 @@

4.1 - Class LuaRef

 LuaRef v (L);         // Nil
 v = newTable (L);     // An empty table
-v = "string"          // A string. The prevous value becomes
+v = "string"          // A string. The previous value becomes
                       // eligible for garbage collection.
 
diff --git a/Source/LuaBridge/detail/LuaRef.h b/Source/LuaBridge/detail/LuaRef.h index 300f4c40..ace12f1f 100644 --- a/Source/LuaBridge/detail/LuaRef.h +++ b/Source/LuaBridge/detail/LuaRef.h @@ -250,13 +250,13 @@ class LuaRefBase /// Indicate whether it is a nil reference. /// - /// @returns True if this is a nil reference, false otherwice. + /// @returns True if this is a nil reference, false otherwise. /// bool isNil() const { return type() == LUA_TNIL; } /// Indicate whether it is a reference to a boolean. /// - /// @returns True if it is a reference to a boolean, false otherwice. + /// @returns True if it is a reference to a boolean, false otherwise. /// bool isBool() const { return type() == LUA_TBOOLEAN; } @@ -611,7 +611,7 @@ class LuaRef : public LuaRefBase Assign a new value to this table key. This may invoke metamethods. - @tparam T The type of a value to assing. + @tparam T The type of a value to assign. @param v A value to assign. @returns This reference. */ @@ -631,7 +631,7 @@ class LuaRef : public LuaRefBase Assign a new value to this table key. The assignment is raw, no metamethods are invoked. - @tparam T The type of a value to assing. + @tparam T The type of a value to assign. @param v A value to assign. @returns This reference. */ diff --git a/Source/LuaBridge/detail/Namespace.h b/Source/LuaBridge/detail/Namespace.h index cffcd7a8..861fdd29 100644 --- a/Source/LuaBridge/detail/Namespace.h +++ b/Source/LuaBridge/detail/Namespace.h @@ -620,7 +620,7 @@ class Namespace : public detail::Registrar assertStackState(); // Stack: const table (co), class table (cl), static table (st) typedef TG (T::*get_t)() const; - new (lua_newuserdata(L, sizeof(get_t))) get_t(get); // Stack: co, cl, st, funcion ptr + new (lua_newuserdata(L, sizeof(get_t))) get_t(get); // Stack: co, cl, st, function ptr lua_pushcclosure(L, &CFunc::CallConstMember::f, 1); // Stack: co, cl, st, getter lua_pushvalue(L, -1); // Stack: co, cl, st, getter, getter CFunc::addGetter(L, name, -5); // Stack: co, cl, st, getter @@ -650,7 +650,7 @@ class Namespace : public detail::Registrar assertStackState(); // Stack: const table (co), class table (cl), static table (st) typedef TG (T::*get_t)(lua_State*) const; - new (lua_newuserdata(L, sizeof(get_t))) get_t(get); // Stack: co, cl, st, funcion ptr + new (lua_newuserdata(L, sizeof(get_t))) get_t(get); // Stack: co, cl, st, function ptr lua_pushcclosure(L, &CFunc::CallConstMember::f, 1); // Stack: co, cl, st, getter lua_pushvalue(L, -1); // Stack: co, cl, st, getter, getter CFunc::addGetter(L, name, -5); // Stack: co, cl, st, getter diff --git a/Source/LuaBridge/detail/Userdata.h b/Source/LuaBridge/detail/Userdata.h index 1e9d1cec..0d3912cd 100644 --- a/Source/LuaBridge/detail/Userdata.h +++ b/Source/LuaBridge/detail/Userdata.h @@ -622,7 +622,7 @@ struct RefStackHelper }; /** - * Voider class template. Used to force a comiler to instantiate + * Voider class template. Used to force a compiler to instantiate * an otherwise probably unused template parameter type T. * See the C++20 std::void_t <> for details. */ @@ -705,7 +705,7 @@ struct IsUserdata::IsUserdata>::Type> }; /** - * Trait class that selects a specific push/get implemenation. + * Trait class that selects a specific push/get implementation. */ template struct StackOpSelector; diff --git a/Tests/Lua/lua-5.1.5/src/lbaselib.c b/Tests/Lua/lua-5.1.5/src/lbaselib.c index 2ab550bd..d8d9333e 100644 --- a/Tests/Lua/lua-5.1.5/src/lbaselib.c +++ b/Tests/Lua/lua-5.1.5/src/lbaselib.c @@ -501,7 +501,7 @@ static int costatus (lua_State *L, lua_State *co) { else return CO_SUS; /* initial state */ } - default: /* some error occured */ + default: /* some error occurred */ return CO_DEAD; } } diff --git a/Tests/Lua/lua-5.1.5/src/ldo.h b/Tests/Lua/lua-5.1.5/src/ldo.h index 98fddac5..4224a67e 100644 --- a/Tests/Lua/lua-5.1.5/src/ldo.h +++ b/Tests/Lua/lua-5.1.5/src/ldo.h @@ -31,7 +31,7 @@ /* results from luaD_precall */ #define PCRLUA 0 /* initiated a call to a Lua function */ #define PCRC 1 /* did a call to a C function */ -#define PCRYIELD 2 /* C funtion yielded */ +#define PCRYIELD 2 /* C function yielded */ /* type of protected functions, to be ran by `runprotected' */ diff --git a/Tests/Lua/lua-5.1.5/src/lfunc.c b/Tests/Lua/lua-5.1.5/src/lfunc.c index 813e88f5..ba7eaf69 100644 --- a/Tests/Lua/lua-5.1.5/src/lfunc.c +++ b/Tests/Lua/lua-5.1.5/src/lfunc.c @@ -59,7 +59,7 @@ UpVal *luaF_findupval (lua_State *L, StkId level) { lua_assert(p->v != &p->u.value); if (p->v == level) { /* found a corresponding upvalue? */ if (isdead(g, obj2gco(p))) /* is it dead? */ - changewhite(obj2gco(p)); /* ressurect it */ + changewhite(obj2gco(p)); /* resurrect it */ return p; } pp = &p->next; diff --git a/Tests/Lua/lua-5.1.5/src/lgc.h b/Tests/Lua/lua-5.1.5/src/lgc.h index 5a8dc605..32fa1b79 100644 --- a/Tests/Lua/lua-5.1.5/src/lgc.h +++ b/Tests/Lua/lua-5.1.5/src/lgc.h @@ -22,7 +22,7 @@ /* -** some userful bit tricks +** some useful bit tricks */ #define resetbits(x,m) ((x) &= cast(lu_byte, ~(m))) #define setbits(x,m) ((x) |= (m)) diff --git a/Tests/Lua/lua-5.1.5/src/lobject.c b/Tests/Lua/lua-5.1.5/src/lobject.c index 4ff50732..915327df 100644 --- a/Tests/Lua/lua-5.1.5/src/lobject.c +++ b/Tests/Lua/lua-5.1.5/src/lobject.c @@ -33,7 +33,7 @@ const TValue luaO_nilobject_ = {{NULL}, LUA_TNIL}; ** eeeee != 0 and (xxx) otherwise. */ int luaO_int2fb (unsigned int x) { - int e = 0; /* expoent */ + int e = 0; /* exponent */ while (x >= 16) { x = (x+1) >> 1; e++; diff --git a/Tests/Lua/lua-5.1.5/src/lstate.h b/Tests/Lua/lua-5.1.5/src/lstate.h index 3bc575b6..da5d7e7b 100644 --- a/Tests/Lua/lua-5.1.5/src/lstate.h +++ b/Tests/Lua/lua-5.1.5/src/lstate.h @@ -43,7 +43,7 @@ typedef struct stringtable { /* -** informations about a call +** information about a call */ typedef struct CallInfo { StkId base; /* base for this function */ @@ -78,7 +78,7 @@ typedef struct global_State { GCObject *grayagain; /* list of objects to be traversed atomically */ GCObject *weak; /* list of weak tables (to be cleared) */ GCObject *tmudata; /* last element of list of userdata to be GC */ - Mbuffer buff; /* temporary buffer for string concatentation */ + Mbuffer buff; /* temporary buffer for string concatenation */ lu_mem GCthreshold; lu_mem totalbytes; /* number of bytes currently allocated */ lu_mem estimate; /* an estimate of number of bytes actually in use */ diff --git a/Tests/Lua/lua-5.1.5/src/lua.h b/Tests/Lua/lua-5.1.5/src/lua.h index a4b73e74..4296b1eb 100644 --- a/Tests/Lua/lua-5.1.5/src/lua.h +++ b/Tests/Lua/lua-5.1.5/src/lua.h @@ -326,7 +326,7 @@ LUA_API void lua_setlevel (lua_State *from, lua_State *to); typedef struct lua_Debug lua_Debug; /* activation record */ -/* Functions to be called by the debuger in specific events */ +/* Functions to be called by the debugger in specific events */ typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); diff --git a/Tests/Lua/lua-5.1.5/src/luaconf.h b/Tests/Lua/lua-5.1.5/src/luaconf.h index e2cb2616..93a525c0 100644 --- a/Tests/Lua/lua-5.1.5/src/luaconf.h +++ b/Tests/Lua/lua-5.1.5/src/luaconf.h @@ -47,7 +47,7 @@ /* -@@ LUA_USE_POSIX includes all functionallity listed as X/Open System +@@ LUA_USE_POSIX includes all functionality listed as X/Open System @* Interfaces Extension (XSI). ** CHANGE it (define it) if your system is XSI compatible. */ @@ -123,7 +123,7 @@ @* template. @@ LUA_EXECDIR in a Windows path is replaced by the executable's @* directory. -@@ LUA_IGMARK is a mark to ignore all before it when bulding the +@@ LUA_IGMARK is a mark to ignore all before it when building the @* luaopen_ function name. ** CHANGE them if for some reason your system cannot use those ** characters. (E.g., if one of those characters is a common character @@ -731,7 +731,7 @@ union luai_Cast { double l_d; long l_l; }; /* @@ LUA_INTFRMLEN is the length modifier for integer conversions @* in 'string.format'. -@@ LUA_INTFRM_T is the integer type correspoding to the previous length +@@ LUA_INTFRM_T is the integer type corresponding to the previous length @* modifier. ** CHANGE them if your system supports long long or does not support long. */ diff --git a/Tests/Lua/lua-5.1.5/test/README b/Tests/Lua/lua-5.1.5/test/README index 0c7f38bc..e1da8119 100644 --- a/Tests/Lua/lua-5.1.5/test/README +++ b/Tests/Lua/lua-5.1.5/test/README @@ -5,7 +5,7 @@ to be read, to see how Lua programs look. Here is a one-line summary of each program: bisect.lua bisection method for solving non-linear equations - cf.lua temperature conversion table (celsius to farenheit) + cf.lua temperature conversion table (celsius to Fahrenheit) echo.lua echo command line arguments env.lua environment variables as automatic global variables factorial.lua factorial without recursion @@ -21,6 +21,6 @@ Here is a one-line summary of each program: sort.lua two implementations of a sort function table.lua make table, grouping all data for the same item trace-calls.lua trace calls - trace-globals.lua trace assigments to global variables + trace-globals.lua trace assignments to global variables xd.lua hex dump diff --git a/Tests/Lua/lua-5.1.5/test/bisect.lua b/Tests/Lua/lua-5.1.5/test/bisect.lua index f91e69bf..a4e2792b 100644 --- a/Tests/Lua/lua-5.1.5/test/bisect.lua +++ b/Tests/Lua/lua-5.1.5/test/bisect.lua @@ -11,7 +11,7 @@ function bisect(f,a,b,fa,fb) if fa*fc<0 then return bisect(f,a,c,fa,fc) else return bisect(f,c,b,fc,fb) end end --- find root of f in the inverval [a,b]. needs f(a)*f(b)<0 +-- find root of f in the interval [a,b]. needs f(a)*f(b)<0 function solve(f,a,b) n=0 local z,e=bisect(f,a,b,f(a),f(b)) diff --git a/Tests/Lua/lua-5.1.5/test/cf.lua b/Tests/Lua/lua-5.1.5/test/cf.lua index 8cda54b9..135b1c76 100644 --- a/Tests/Lua/lua-5.1.5/test/cf.lua +++ b/Tests/Lua/lua-5.1.5/test/cf.lua @@ -1,4 +1,4 @@ --- temperature conversion table (celsius to farenheit) +-- temperature conversion table (celsius to Fahrenheit) for c0=-20,50-1,10 do io.write("C ") diff --git a/Tests/Lua/lua-5.1.5/test/trace-globals.lua b/Tests/Lua/lua-5.1.5/test/trace-globals.lua index 295e670c..68df12d9 100644 --- a/Tests/Lua/lua-5.1.5/test/trace-globals.lua +++ b/Tests/Lua/lua-5.1.5/test/trace-globals.lua @@ -1,4 +1,4 @@ --- trace assigments to global variables +-- trace assignments to global variables do -- a tostring that quotes strings. note the use of the original tostring. diff --git a/Tests/Lua/lua-5.2.4/src/luaconf.h b/Tests/Lua/lua-5.2.4/src/luaconf.h index 1b0ff59f..e29abd30 100644 --- a/Tests/Lua/lua-5.2.4/src/luaconf.h +++ b/Tests/Lua/lua-5.2.4/src/luaconf.h @@ -493,7 +493,7 @@ ** a single double value, using NaN values to represent non-number ** values. The trick only works on 32-bit machines (ints and pointers ** are 32-bit values) with numbers represented as IEEE 754-2008 doubles -** with conventional endianess (12345678 or 87654321), in CPUs that do +** with conventional endianness (12345678 or 87654321), in CPUs that do ** not produce signaling NaN values (all NaNs are quiet). */ diff --git a/Tests/Lua/lua-5.4.4/src/lauxlib.c b/Tests/Lua/lua-5.4.4/src/lauxlib.c index 8ed1da11..30338d9e 100644 --- a/Tests/Lua/lua-5.4.4/src/lauxlib.c +++ b/Tests/Lua/lua-5.4.4/src/lauxlib.c @@ -611,7 +611,7 @@ LUALIB_API void luaL_pushresultsize (luaL_Buffer *B, size_t sz) { ** box (if existent) is not on the top of the stack. So, instead of ** calling 'luaL_addlstring', it replicates the code using -2 as the ** last argument to 'prepbuffsize', signaling that the box is (or will -** be) bellow the string being added to the buffer. (Box creation can +** be) below the string being added to the buffer. (Box creation can ** trigger an emergency GC, so we should not remove the string from the ** stack before we have the space guaranteed.) */ diff --git a/Tests/Lua/lua-5.4.4/src/ldebug.c b/Tests/Lua/lua-5.4.4/src/ldebug.c index a716d95e..f5236966 100644 --- a/Tests/Lua/lua-5.4.4/src/ldebug.c +++ b/Tests/Lua/lua-5.4.4/src/ldebug.c @@ -842,7 +842,7 @@ static int changedline (const Proto *p, int oldpc, int newpc) { if (p->lineinfo == NULL) /* no debug information? */ return 0; if (newpc - oldpc < MAXIWTHABS / 2) { /* not too far apart? */ - int delta = 0; /* line diference */ + int delta = 0; /* line difference */ int pc = oldpc; for (;;) { int lineinfo = p->lineinfo[++pc]; diff --git a/Tests/Lua/lua-5.4.4/src/lfunc.c b/Tests/Lua/lua-5.4.4/src/lfunc.c index f5889a21..a38c5c5c 100644 --- a/Tests/Lua/lua-5.4.4/src/lfunc.c +++ b/Tests/Lua/lua-5.4.4/src/lfunc.c @@ -209,7 +209,7 @@ void luaF_closeupval (lua_State *L, StkId level) { /* -** Remove firt element from the tbclist plus its dummy nodes. +** Remove first element from the tbclist plus its dummy nodes. */ static void poptbclist (lua_State *L) { StkId tbc = L->tbclist; diff --git a/Tests/Lua/lua-5.4.4/src/llex.c b/Tests/Lua/lua-5.4.4/src/llex.c index e9915178..9ca98b11 100644 --- a/Tests/Lua/lua-5.4.4/src/llex.c +++ b/Tests/Lua/lua-5.4.4/src/llex.c @@ -128,7 +128,7 @@ l_noret luaX_syntaxerror (LexState *ls, const char *msg) { ** ensuring there is only one copy of each unique string. The table ** here is used as a set: the string enters as the key, while its value ** is irrelevant. We use the string itself as the value only because it -** is a TValue readly available. Later, the code generation can change +** is a TValue readily available. Later, the code generation can change ** this value. */ TString *luaX_newstring (LexState *ls, const char *str, size_t l) { diff --git a/Tests/Source/ClassTests.cpp b/Tests/Source/ClassTests.cpp index bde3651a..afa72bc5 100644 --- a/Tests/Source/ClassTests.cpp +++ b/Tests/Source/ClassTests.cpp @@ -228,7 +228,7 @@ TEST_F(ClassTests, PassOtherTypeInsteadOfNonConstThrows) luabridge::getGlobalNamespace(L) .beginClass("Int") - .addConstructor() // Show that it does't matter + .addConstructor() // Show that it doesn't matter .endClass() .addFunction("processNonConst", &processNonConst);