mirror of https://github.com/lua/lua
comment typos
This commit is contained in:
parent
c6ef3e2672
commit
fdd5f2f7a3
4
lstate.h
4
lstate.h
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lstate.h,v 2.66 2010/09/03 14:14:01 roberto Exp roberto $
|
** $Id: lstate.h,v 2.67 2010/09/30 17:21:31 roberto Exp roberto $
|
||||||
** Global State
|
** Global State
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -66,7 +66,7 @@ typedef struct stringtable {
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** informations about a call
|
** information about a call
|
||||||
*/
|
*/
|
||||||
typedef struct CallInfo {
|
typedef struct CallInfo {
|
||||||
StkId func; /* function index in the stack */
|
StkId func; /* function index in the stack */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lstrlib.c,v 1.154 2010/07/02 11:38:13 roberto Exp roberto $
|
** $Id: lstrlib.c,v 1.155 2010/10/25 19:01:37 roberto Exp roberto $
|
||||||
** Standard library for string operations and pattern-matching
|
** Standard library for string operations and pattern-matching
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -424,7 +424,7 @@ static const char *match (MatchState *ms, const char *s, const char *p) {
|
||||||
default: goto dflt;
|
default: goto dflt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default: dflt: { /* pattern class plus optional sufix */
|
default: dflt: { /* pattern class plus optional suffix */
|
||||||
const char *ep = classend(ms, p); /* points to what is next */
|
const char *ep = classend(ms, p); /* points to what is next */
|
||||||
int m = s < ms->src_end && singlematch(uchar(*s), p, ep);
|
int m = s < ms->src_end && singlematch(uchar(*s), p, ep);
|
||||||
switch (*ep) {
|
switch (*ep) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: luaconf.h,v 1.146 2010/10/28 15:18:25 roberto Exp roberto $
|
** $Id: luaconf.h,v 1.147 2010/10/29 11:13:21 roberto Exp roberto $
|
||||||
** Configuration file for Lua
|
** Configuration file for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -457,7 +457,7 @@
|
||||||
#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) && \
|
#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) && \
|
||||||
!defined(LUA_NOIEEE754TRICK) /* { */
|
!defined(LUA_NOIEEE754TRICK) /* { */
|
||||||
|
|
||||||
/* On a Microsoft compiler on a Pentium, use assembler to avoid chashes
|
/* On a Microsoft compiler on a Pentium, use assembler to avoid clashes
|
||||||
with a DirectX idiosyncrasy */
|
with a DirectX idiosyncrasy */
|
||||||
#if defined(_MSC_VER) && defined(M_IX86) /* { */
|
#if defined(_MSC_VER) && defined(M_IX86) /* { */
|
||||||
|
|
||||||
|
@ -473,7 +473,7 @@
|
||||||
union luai_Cast { double l_d; LUA_INT32 l_p[2]; };
|
union luai_Cast { double l_d; LUA_INT32 l_p[2]; };
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUA_IEEEENDIAN is the endianess of doubles in your machine
|
@@ LUA_IEEEENDIAN is the endianness of doubles in your machine
|
||||||
@@ (0 for little endian, 1 for big endian); if not defined, Lua will
|
@@ (0 for little endian, 1 for big endian); if not defined, Lua will
|
||||||
@@ check it dynamically.
|
@@ check it dynamically.
|
||||||
*/
|
*/
|
||||||
|
|
4
lvm.c
4
lvm.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lvm.c,v 2.123 2010/06/30 14:11:17 roberto Exp roberto $
|
** $Id: lvm.c,v 2.124 2010/10/25 19:01:37 roberto Exp roberto $
|
||||||
** Lua virtual machine
|
** Lua virtual machine
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -301,7 +301,7 @@ void luaV_concat (lua_State *L, int total) {
|
||||||
setsvalue2s(L, top-n, luaS_newlstr(L, buffer, tl));
|
setsvalue2s(L, top-n, luaS_newlstr(L, buffer, tl));
|
||||||
}
|
}
|
||||||
total -= n-1; /* got 'n' strings to create 1 new */
|
total -= n-1; /* got 'n' strings to create 1 new */
|
||||||
L->top -= n-1; /* poped 'n' strings and pushed one */
|
L->top -= n-1; /* popped 'n' strings and pushed one */
|
||||||
} while (total > 1); /* repeat until only 1 result left */
|
} while (total > 1); /* repeat until only 1 result left */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue