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
99 $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"99 $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
100 100
101macosx:101macosx:
102 $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX102 $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
103# use this on Mac OS X 10.4103# use this on Mac OS X 10.3-
104# $(MAKE) all MYCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" MYLIBS="-lreadline"104# $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
105 105
106mingw:106mingw:
107 $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \107 $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
src/lbaselib.c+3−4
@@ -1,5 +1,5 @@
1/*1/*
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 $
3** Basic library3** Basic library
4** See Copyright Notice in lua.h4** See Copyright Notice in lua.h
5*/5*/
@@ -595,9 +595,8 @@ static int luaB_yield (lua_State *L) { · 589 unmodified lines
595 595
596static int luaB_corunning (lua_State *L) {596static int luaB_corunning (lua_State *L) {
597 if (lua_pushthread(L))597 if (lua_pushthread(L))
598 return 0; /* main thread is not a coroutine */598 lua_pushnil(L); /* main thread is not a coroutine */
599 else599 return 1;
600 return 1;
601}600}
602 601
603 602