History

Lua 5.1.3-rc4

Lua Team committed 18 years ago

Commit ebb42b71 parent 17b8e884 files · +32 −19Browse files

Showing the changes to src (2 of 4 files). Show all

Unified · Split

2 files
  1. src/Makefile +3 −3
  2. src/lbaselib.c +3 −4
src/Makefile+3−3
@@ -99,9 +99,9 @@ linux: · 98 unmodified lines
9999 $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
100100
101101 macosx:
102− $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
103−# use this on Mac OS X 10.4
104−# $(MAKE) all MYCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" MYLIBS="-lreadline"
102+ $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
103+# use this on Mac OS X 10.3-
104+# $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
105105
106106 mingw:
107107 $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
src/lbaselib.c+3−4
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lbaselib.c,v 1.191.1.3 2008/01/03 15:20:39 roberto Exp $
2+** $Id: lbaselib.c,v 1.191.1.4 2008/01/20 13:53:22 roberto Exp $
33 ** Basic library
44 ** See Copyright Notice in lua.h
55 */
@@ -595,9 +595,8 @@ static int luaB_yield (lua_State *L) { · 589 unmodified lines
595595
596596 static int luaB_corunning (lua_State *L) {
597597 if (lua_pushthread(L))
598− return 0; /* main thread is not a coroutine */
599− else
600− return 1;
598+ lua_pushnil(L); /* main thread is not a coroutine */
599+ return 1;
601600 }
602601
603602