diff options
author | perky <perky@FreeBSD.org> | 2003-05-11 06:29:24 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-05-11 06:29:24 +0800 |
commit | 65bd5965e2780ca07d85d93c89a0f0d3e31d841d (patch) | |
tree | 17e18ef44bdc436ac70219457ea8c4a0a86497ee /lang/lua50/files | |
parent | 935e681988174f81184df1be4a8bc00a15597598 (diff) | |
download | freebsd-ports-gnome-65bd5965e2780ca07d85d93c89a0f0d3e31d841d.tar.gz freebsd-ports-gnome-65bd5965e2780ca07d85d93c89a0f0d3e31d841d.tar.zst freebsd-ports-gnome-65bd5965e2780ca07d85d93c89a0f0d3e31d841d.zip |
Upgrade to 5.0 and keep 4.0 as lang/lua4
Diffstat (limited to 'lang/lua50/files')
-rw-r--r-- | lang/lua50/files/patch-aa | 19 | ||||
-rw-r--r-- | lang/lua50/files/patch-ab | 20 |
2 files changed, 10 insertions, 29 deletions
diff --git a/lang/lua50/files/patch-aa b/lang/lua50/files/patch-aa deleted file mode 100644 index 44a4a2a5d1bc..000000000000 --- a/lang/lua50/files/patch-aa +++ /dev/null @@ -1,19 +0,0 @@ ---- config Mon Nov 6 12:28:20 2000 -+++ config.new Tue Jan 2 15:51:57 2001 -@@ -28,7 +28,6 @@ - # ------------------------------------------------------------------ C compiler - - # You need an ANSI C compiler. gcc is a popular one. --CC= gcc - WARN= -ansi -pedantic -Wall - - # On IRIX, cc is a good ANSI compiler. -@@ -93,7 +93,7 @@ - INCS= -I$(INC) $(EXTRA_INCS) - DEFS= $(COMPAT) $(NUMBER) $(OLD_ANSI) $(EXTRA_DEFS) - --CFLAGS= -O2 $(WARN) $(INCS) $(DEFS) -+CFLAGS+= $(WARN) $(INCS) $(DEFS) - - V=4.0 - diff --git a/lang/lua50/files/patch-ab b/lang/lua50/files/patch-ab index b7fbfba0f970..5a24cd697f27 100644 --- a/lang/lua50/files/patch-ab +++ b/lang/lua50/files/patch-ab @@ -1,20 +1,20 @@ ---- src/lib/lmathlib.c.orig Mon Apr 30 00:05:45 2001 -+++ src/lib/lmathlib.c Mon Apr 30 00:06:05 2001 -@@ -168,7 +168,7 @@ +--- src/lib/lmathlib.c.orig Tue Mar 11 21:30:37 2003 ++++ src/lib/lmathlib.c Fri May 9 02:32:59 2003 +@@ -170,7 +170,7 @@ static int math_random (lua_State *L) { - /* the '%' avoids the (rare) case of r==1, and is needed also because on - some systems (SunOS!) "rand()" may return a value larger than RAND_MAX */ -- double r = (double)(rand()%RAND_MAX) / (double)RAND_MAX; -+ double r = (double)(random()%RAND_MAX) / (double)RAND_MAX; + /* the `%' avoids the (rare) case of r==1, and is needed also because on + some systems (SunOS!) `rand()' may return a value larger than RAND_MAX */ +- lua_Number r = (lua_Number)(rand()%RAND_MAX) / (lua_Number)RAND_MAX; ++ lua_Number r = (lua_Number)(random()%RAND_MAX) / (lua_Number)RAND_MAX; switch (lua_gettop(L)) { /* check number of arguments */ case 0: { /* no arguments */ lua_pushnumber(L, r); /* Number between 0 and 1 */ -@@ -194,7 +194,7 @@ +@@ -196,7 +196,7 @@ static int math_randomseed (lua_State *L) { -- srand(luaL_check_int(L, 1)); -+ srandom(luaL_check_int(L, 1)); +- srand(luaL_checkint(L, 1)); ++ srandom(luaL_checkint(L, 1)); return 0; } |