Przeglądaj źródła

small corrections in comments

Roberto Ierusalimschy 27 lat temu
rodzic
commit
9618aaf07d
15 zmienionych plików z 33 dodań i 33 usunięć
  1. 2 2
      lapi.h
  2. 3 3
      lauxlib.c
  3. 2 2
      lauxlib.h
  4. 3 3
      lbuffer.c
  5. 2 2
      lbuiltin.c
  6. 2 2
      lfunc.c
  7. 2 2
      llex.h
  8. 2 2
      lmathlib.c
  9. 2 2
      lmem.c
  10. 2 2
      lobject.c
  11. 2 2
      lstate.h
  12. 2 2
      lstring.c
  13. 3 3
      lstrlib.c
  14. 2 2
      luadebug.h
  15. 2 2
      lualib.h

+ 2 - 2
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
 */
 

+ 3 - 3
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 <stdio.h>
 #include <string.h>
 
-/* 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.
 */

+ 2 - 2
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
 */
 

+ 3 - 3
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

+ 2 - 2
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));

+ 2 - 2
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
 */
 

+ 2 - 2
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 */
 };
 
 

+ 2 - 2
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);

+ 2 - 2
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);

+ 2 - 2
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 */
   }
 }
 

+ 2 - 2
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 */

+ 2 - 2
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; j<tb->size; 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;

+ 3 - 3
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++) {

+ 2 - 2
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
 */
 

+ 2 - 2
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);