From 9618aaf07d0d82ccbac91db22cb42451ec17d7ed Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 19 Jun 1998 13:14:09 -0300 Subject: [PATCH] small corrections in comments --- lapi.h | 4 ++-- lauxlib.c | 6 +++--- lauxlib.h | 4 ++-- lbuffer.c | 6 +++--- lbuiltin.c | 4 ++-- lfunc.c | 4 ++-- llex.h | 4 ++-- lmathlib.c | 4 ++-- lmem.c | 4 ++-- lobject.c | 4 ++-- lstate.h | 4 ++-- lstring.c | 4 ++-- lstrlib.c | 6 +++--- luadebug.h | 4 ++-- lualib.h | 4 ++-- 15 files changed, 33 insertions(+), 33 deletions(-) diff --git a/lapi.h b/lapi.h index b21f69af..8394dd2f 100644 --- a/lapi.h +++ b/lapi.h @@ -1,6 +1,6 @@ /* -** $Id: $ -** auxiliar functions from Lua API +** $Id: lapi.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ +** Auxiliary functions from Lua API ** See Copyright Notice in lua.h */ diff --git a/lauxlib.c b/lauxlib.c index 0fa745e4..415c4fea 100644 --- a/lauxlib.c +++ b/lauxlib.c @@ -1,6 +1,6 @@ /* -** $Id: lauxlib.c,v 1.10 1998/03/06 18:47:42 roberto Exp roberto $ -** Auxiliar functions for building Lua libraries +** $Id: lauxlib.c,v 1.11 1998/06/18 16:57:03 roberto Exp roberto $ +** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -9,7 +9,7 @@ #include #include -/* Please Notice: This file uses only the oficial API of Lua +/* Please Notice: This file uses only the official API of Lua ** Any function declared here could be written as an application ** function. With care, these functions can be used by other libraries. */ diff --git a/lauxlib.h b/lauxlib.h index 572db923..e26c7fa4 100644 --- a/lauxlib.h +++ b/lauxlib.h @@ -1,6 +1,6 @@ /* -** $Id: lauxlib.h,v 1.7 1998/03/06 16:54:42 roberto Exp roberto $ -** Auxiliar functions for building Lua libraries +** $Id: lauxlib.h,v 1.8 1998/06/18 16:57:03 roberto Exp roberto $ +** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ diff --git a/lbuffer.c b/lbuffer.c index fc20ce1a..9ec37a73 100644 --- a/lbuffer.c +++ b/lbuffer.c @@ -1,6 +1,6 @@ /* -** $Id: lbuffer.c,v 1.2 1998/03/06 16:54:42 roberto Exp roberto $ -** Auxiliar functions for building Lua libraries +** $Id: lbuffer.c,v 1.3 1998/06/02 20:37:04 roberto Exp roberto $ +** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -13,7 +13,7 @@ /*------------------------------------------------------- -** Auxiliar buffer +** Auxiliary buffer -------------------------------------------------------*/ #define BUFF_STEP 32 diff --git a/lbuiltin.c b/lbuiltin.c index c5ca08ef..35053865 100644 --- a/lbuiltin.c +++ b/lbuiltin.c @@ -1,5 +1,5 @@ /* -** $Id: lbuiltin.c,v 1.28 1998/05/31 22:19:35 roberto Exp roberto $ +** $Id: lbuiltin.c,v 1.29 1998/06/05 22:17:44 roberto Exp roberto $ ** Built-in functions ** See Copyright Notice in lua.h */ @@ -200,7 +200,7 @@ static void luaI_type (void) static void tonumber (void) { int base = luaL_opt_number(2, 10); - if (base == 10) { /* standard convertion */ + if (base == 10) { /* standard conversion */ lua_Object o = lua_getparam(1); if (lua_isnumber(o)) lua_pushnumber(lua_getnumber(o)); diff --git a/lfunc.c b/lfunc.c index 2f3035aa..efabfa3f 100644 --- a/lfunc.c +++ b/lfunc.c @@ -1,6 +1,6 @@ /* -** $Id: lfunc.c,v 1.7 1997/12/09 13:35:19 roberto Exp roberto $ -** Auxiliar functions to manipulate prototypes and closures +** $Id: lfunc.c,v 1.8 1997/12/15 16:17:20 roberto Exp roberto $ +** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ diff --git a/llex.h b/llex.h index 3947bf5d..106f6a3c 100644 --- a/llex.h +++ b/llex.h @@ -1,5 +1,5 @@ /* -** $Id: llex.h,v 1.7 1998/01/09 14:57:43 roberto Exp $ +** $Id: llex.h,v 1.8 1998/05/27 13:03:40 roberto Exp roberto $ ** Lexical Analizer ** See Copyright Notice in lua.h */ @@ -32,7 +32,7 @@ enum RESERVED { struct ifState { int elsepart; /* true if its in the $else part */ int condition; /* true if $if condition is true */ - int skip; /* true if part must be skiped */ + int skip; /* true if part must be skipped */ }; diff --git a/lmathlib.c b/lmathlib.c index 8b8babaa..c62b88c4 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.8 1997/12/26 18:36:31 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.9 1998/05/27 19:09:39 roberto Exp roberto $ ** Lua standard mathematical library ** See Copyright Notice in lua.h */ @@ -155,7 +155,7 @@ static void math_max (void) static void math_random (void) { - /* the '%' is needed because on some sistems (SunOS!) "rand()" may */ + /* the '%' is needed because on some systems (SunOS!) "rand()" may */ /* return a value bigger than RAND_MAX... */ double r = (double)(rand()%RAND_MAX) / (double)RAND_MAX; double l = luaL_opt_number(1, 0); diff --git a/lmem.c b/lmem.c index 1cf133ab..40a86309 100644 --- a/lmem.c +++ b/lmem.c @@ -1,5 +1,5 @@ /* -** $Id: lmem.c,v 1.4 1997/12/17 20:48:58 roberto Exp roberto $ +** $Id: lmem.c,v 1.5 1998/03/09 21:49:52 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -83,7 +83,7 @@ void *luaM_realloc (void *block, unsigned long size) unsigned long realsize = sizeof(unsigned long)+size+sizeof(char); if (realsize != (size_t)realsize) lua_error("Allocation Error: Block too big"); - if (size == 0) { /* ANSI doen't need this, but some machines... */ + if (size == 0) { /* ANSI dosen't need this, but some machines... */ if (block) { memset(block, -1, *((unsigned long *)block-1)); /* erase block */ block = checkblock(block); diff --git a/lobject.c b/lobject.c index 99c76233..8e1742dd 100644 --- a/lobject.c +++ b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 1.11 1998/03/09 21:49:52 roberto Exp roberto $ +** $Id: lobject.c,v 1.12 1998/06/18 16:57:03 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -52,7 +52,7 @@ int luaO_equalObj (TObject *t1, TObject *t2) case LUA_T_CLOSURE: return t1->value.cl == t2->value.cl; default: LUA_INTERNALERROR("invalid type"); - return 0; /* UNREACHEABLE */ + return 0; /* UNREACHABLE */ } } diff --git a/lstate.h b/lstate.h index 6692e097..303349f0 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.8 1998/05/27 13:03:40 roberto Exp roberto $ +** $Id: lstate.h,v 1.9 1998/06/02 20:37:04 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -46,7 +46,7 @@ struct ref { struct lua_State { - /* trhead-specific state */ + /* thread-specific state */ struct Stack stack; /* Lua stack */ struct C_Lua_Stack Cstack; /* C2lua struct */ void *errorJmp; /* current error recover point */ diff --git a/lstring.c b/lstring.c index f18d2ff2..b2b4baa2 100644 --- a/lstring.c +++ b/lstring.c @@ -1,5 +1,5 @@ /* -** $Id: lstring.c,v 1.11 1998/01/28 16:50:33 roberto Exp roberto $ +** $Id: lstring.c,v 1.12 1998/03/06 16:54:42 roberto Exp roberto $ ** String table (keeps all strings handled by Lua) ** See Copyright Notice in lua.h */ @@ -258,7 +258,7 @@ TaggedString *luaS_collectudata (void) for (j=0; jsize; j++) { TaggedString *t = tb->hash[j]; if (t == NULL || t == &EMPTY || t->constindex != -1) - continue; /* get only user datas */ + continue; /* get only user data */ t->head.next = (GCnode *)frees; frees = t; tb->hash[j] = &EMPTY; diff --git a/lstrlib.c b/lstrlib.c index a42a6118..58fbd708 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.13 1998/05/18 22:21:55 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.14 1998/05/31 22:20:45 roberto Exp roberto $ ** Standard library for strings and pattern-matching ** See Copyright Notice in lua.h */ @@ -341,7 +341,7 @@ static void str_find (void) struct Capture cap; luaL_arg_check(0 <= init && init <= l, 3, "out of range"); if (lua_getparam(4) != LUA_NOOBJECT || - strpbrk(p, SPECIALS) == NULL) { /* no special caracters? */ + strpbrk(p, SPECIALS) == NULL) { /* no special characters? */ char *s2 = strstr(s+init, p); if (s2) { lua_pushnumber(s2-s+1); @@ -483,7 +483,7 @@ static void str_format (void) strfrmt = match(initf, "[-+ #0]*(%d*)%.?(%d*)", &cap); if (cap.capture[0].len > 2 || cap.capture[1].len > 2) /* < 100? */ lua_error("invalid format (width or precision too long)"); - strncpy(form+1, initf, strfrmt-initf+1); /* +1 to include convertion */ + strncpy(form+1, initf, strfrmt-initf+1); /* +1 to include conversion */ form[strfrmt-initf+2] = 0; buff = luaL_openspace(1000); /* to store the formatted value */ switch (*strfrmt++) { diff --git a/luadebug.h b/luadebug.h index 4bcf0840..088d06ad 100644 --- a/luadebug.h +++ b/luadebug.h @@ -1,6 +1,6 @@ /* -** $Id: $ -** Debuging API +** $Id: luadebug.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ +** Debugging API ** See Copyright Notice in lua.h */ diff --git a/lualib.h b/lualib.h index dabe8f7a..cf17599a 100644 --- a/lualib.h +++ b/lualib.h @@ -1,5 +1,5 @@ /* -** $Id: lualib.h,v 1.2 1997/11/26 18:53:45 roberto Exp roberto $ +** $Id: lualib.h,v 1.3 1997/12/17 20:48:58 roberto Exp roberto $ ** Lua standard libraries ** See Copyright Notice in lua.h */ @@ -26,7 +26,7 @@ void lua_mathlibopen (void); -/* auxiliar functions (private) */ +/* Auxiliary functions (private) */ int luaI_singlematch (int c, char *p, char **ep);