diff3.2@245-246.gz
snippets · 2.8 KB · 2010-03-30
LPMud 3.2 driver diff from patch level 245 to 246 (Dec 1993).
Download « Back to the snippets list
diff -c driver/patchlevel.h:1.266 driver/patchlevel.h:1.267
*** driver/patchlevel.h:1.266 Fri Dec 17 22:22:06 1993
--- driver/patchlevel.h Fri Dec 17 22:22:06 1993
***************
*** 1,2 ****
! #define RELEASE_DATE "Tue Dec 14 03:44:22 MET 1993"
! #define PATCH_LEVEL "@245"
--- 1,2 ----
! #define RELEASE_DATE "Fri Dec 17 22:18:50 MET 1993"
! #define PATCH_LEVEL "@246"
diff -c driver/closure.c:1.36 driver/closure.c:1.37
*** driver/closure.c:1.36 Fri Dec 17 22:22:00 1993
--- driver/closure.c Fri Dec 17 22:22:00 1993
***************
*** 2010,2017 ****
--- 2010,2024 ----
{
if (p && p->type == I_TYPE_UNKNOWN)
free_shared_identifier(p);
+ #if 0
inter_sp = sp;
error("Undefined function: %s\n", str);
+ #else
+ free_string_svalue(sp);
+ sp->type = T_NUMBER;
+ sp->u.number = 0;
+ return;
+ #endif
}
if (efun_override && p->u.global.sim_efun >= 0 &&
simul_efunp[p->u.global.sim_efun].type & TYPE_MOD_NO_MASK)
***************
*** 2052,2062 ****
--- 2059,2078 ----
char *end;
i = symbol_operator(str, &end);
+ #if 0
if (*end) {
inter_sp = sp;
error("Unknown operator\n");
}
free_string_svalue(sp);
+ #else
+ free_string_svalue(sp);
+ if (*end) {
+ sp->type = T_NUMBER;
+ sp->u.number = 0;
+ return;
+ }
+ #endif
sp->type = T_CLOSURE;
if (instrs[i].Default == -1) {
sp->x.closure_type = i + CLOSURE_OPERATOR;
diff -c driver/configure:1.10 driver/configure:1.11
*** driver/configure:1.10 Fri Dec 17 22:22:01 1993
--- driver/configure Fri Dec 17 22:22:01 1993
***************
*** 157,165 ****
fi
rm -f conftest*
! echo checking for "gcc/assembler float incompatibility, e.g. on AIX"
cat > conftest.c <<EOF
#include "confdefs.h"
double d = 4.5;
int main() { exit(0); }
int t() { double e = 1.3; e/= 0.2; }
--- 157,184 ----
fi
rm -f conftest*
! echo checking for "gcc/assembler float/branch incompatibility, e.g. on AIX"
cat > conftest.c <<EOF
#include "confdefs.h"
+ int foo(), bar(), foobar();
+ #define x1 foobar();
+ #define x4 x1 x1 x1 x1
+ #define x10 x4 x4 x4 x4
+ #define x40 x10 x10 x10 x10
+ #define x100 x40 x40 x40 x40
+ #define x400 x100 x100 x100 x100
+ #define x1000 x400 x400 x400 x400
+ int long_branch(i)
+ int i;
+ {
+ if (i > 1) {
+ x1000
+ } else foo();
+ return bar();
+ }
+ int foo(){ return 0; }
+ int bar(){ return 0; }
+ int foobar(){ return 0; }
double d = 4.5;
int main() { exit(0); }
int t() { double e = 1.3; e/= 0.2; }
***************
*** 168,174 ****
:
else
rm -rf conftest*
! echo "falling back to cc" CC="cc"
fi
rm -f conftest*
--- 187,196 ----
:
else
rm -rf conftest*
! echo "falling back to cc"
! CC="cc"
! GCC=""
!
fi
rm -f conftest*
***************
*** 643,649 ****
echo checking for "needed malloc() alignment"
cat > conftest.c <<EOF
#include "confdefs.h"
! int i = 96/(sizeof(struct {double d; char *p; double e;}) - 20);
int main() { exit(0); }
int t() { }
EOF
--- 665,673 ----
echo checking for "needed malloc() alignment"
cat > conftest.c <<EOF
#include "confdefs.h"
! struct {double d; char *p; double e;} t;
! int i = 96/((char *)&t.e - (char *)&t() - 12);
!
int main() { exit(0); }
int t() { }
EOF
***************
*** 1368,1374 ****
char addr2[] = "88.176.128.2";
struct in_addr tmp;
! #ifdef SIZEOF_INT == 4
#define ADDR_TYPE unsigned int
#else
#define ADDR_TYPE unsigned long
--- 1392,1398 ----
char addr2[] = "88.176.128.2";
struct in_addr tmp;
! #if SIZEOF_INT == 4
#define ADDR_TYPE unsigned int
#else
#define ADDR_TYPE unsigned long
***************
*** 1776,1781 ****
--- 1800,1806 ----
memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
my_sin.sin_family = hp->h_addrtype;
my_sin.sin_addr.s_addr = INADDR_ANY;
+ alarm(10);
for (port = 2000; port < 10000; port++) {
my_sin.sin_port = htons((u_short)port);
s = socket(hp->h_addrtype, SOCK_STREAM, 0);
***************
*** 1846,1851 ****
--- 1871,1877 ----
memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
my_sin.sin_family = hp->h_addrtype;
my_sin.sin_addr.s_addr = INADDR_ANY;
+ alarm(10);
for (port = 2000; port < 10000; port++) {
my_sin.sin_port = htons((u_short)port);
s = socket(hp->h_addrtype, SOCK_STREAM, 0);
***************
*** 1974,1986 ****
fi
rm -f conftest*
! tcomp='${CC-cc} ${CFLAGS} ${TESTFLAG} -c conftest.c >/dev/null 2>&1'
cat > conftest.c <<EOF
#include <stdio.h>
double d = 4.5;
main() { printf("hello world\n"); }
EOF
! for TESTFLAG in -O4 -xO2 -O2 -O; do
if eval $tcomp; then
CFLAGS=$TESTFLAG
break
--- 2000,2012 ----
fi
rm -f conftest*
! tcomp='${CC-cc} ${CFLAGS} ${TESTFLAG} -o conftest conftest.c >/dev/null 2>&1'
cat > conftest.c <<EOF
#include <stdio.h>
double d = 4.5;
main() { printf("hello world\n"); }
EOF
! for TESTFLAG in -O4 -O3 -xO2 -O2 -O; do
if eval $tcomp; then
CFLAGS=$TESTFLAG
break
diff -c driver/interpret.c:1.164 driver/interpret.c:1.165
*** driver/interpret.c:1.164 Fri Dec 17 22:22:04 1993
--- driver/interpret.c Fri Dec 17 22:22:05 1993
***************
*** 49,55 ****
#ifndef RUSAGE_SELF
#define RUSAGE_SELF 0
#endif
! #ifdef sun
extern int getrusage PROT((int, struct rusage *));
#endif
#endif /* HAVE_GETRUSAGE */
--- 49,55 ----
#ifndef RUSAGE_SELF
#define RUSAGE_SELF 0
#endif
! #if defined(sun) || defined(ultrix)
extern int getrusage PROT((int, struct rusage *));
#endif
#endif /* HAVE_GETRUSAGE */
diff -c driver/lint.h:1.62 driver/lint.h:1.63
*** driver/lint.h:1.62 Fri Dec 17 22:22:06 1993
--- driver/lint.h Fri Dec 17 22:22:06 1993
***************
*** 170,179 ****
* only needed on suns.
*/
void srandom PROT((int));
- int gethostname PROT((char *, int));
char *_crypt PROT((char *, char *));
int ioctl PROT((int, ...)); /* should be in <ioctl.h> */
#endif
#ifdef SunOS4
/* cc won't see the types inside PROT(), because it isn't ansi. gcc < 2.5
* hasn't these prototypes, but 2.5 has, thus types must match.
--- 170,181 ----
* only needed on suns.
*/
void srandom PROT((int));
char *_crypt PROT((char *, char *));
int ioctl PROT((int, ...)); /* should be in <ioctl.h> */
#endif
+ #if defined(SunOS4) || defined(ultrix)
+ int gethostname PROT((char *, int));
+ #endif
#ifdef SunOS4
/* cc won't see the types inside PROT(), because it isn't ansi. gcc < 2.5
* hasn't these prototypes, but 2.5 has, thus types must match.
***************
*** 193,199 ****
char *memmem PROT((char *, size_t, char *, size_t));
#endif
#if ((!defined(HAVE_CRYPT) && !defined(HAVE__CRYPT))) || \
! defined(sgi)
char *crypt PROT((char *, char *));
#endif
--- 195,201 ----
char *memmem PROT((char *, size_t, char *, size_t));
#endif
#if ((!defined(HAVE_CRYPT) && !defined(HAVE__CRYPT))) || \
! defined(sgi) || defined(ultrix)
char *crypt PROT((char *, char *));
#endif
diff -c driver/smalloc.c:1.40 driver/smalloc.c:1.41
*** driver/smalloc.c:1.40 Fri Dec 17 22:22:07 1993
--- driver/smalloc.c Fri Dec 17 22:22:07 1993
***************
*** 1510,1516 ****
FREE_RETURN_TYPE afree(p)
POINTER p; /* could be void *, thus needs casting */
{
! (u*)q = (u*)p;
while (!*--q);
q[1-OVERHEAD] |= (M_REF|M_GC_FREE);
sfree((char *)(q+1));
--- 1510,1516 ----
FREE_RETURN_TYPE afree(p)
POINTER p; /* could be void *, thus needs casting */
{
! u*q = (u*)p;
while (!*--q);
q[1-OVERHEAD] |= (M_REF|M_GC_FREE);
sfree((char *)(q+1));
diff -c driver/autoconf/configure.in:1.10 driver/autoconf/configure.in:1.11
*** driver/autoconf/configure.in:1.10 Fri Dec 17 22:22:08 1993
--- driver/autoconf/configure.in Fri Dec 17 22:22:08 1993
***************
*** 1,8 ****
AC_INIT(prolang.y)
AC_PROG_CC
! AC_COMPILE_CHECK(["gcc/assembler float incompatibility, e.g. on AIX"],
! [double d = 4.5;],[double e = 1.3; e/= 0.2;],,
! echo "falling back to cc" CC="cc")
AC_PROG_INSTALL
AC_CONFIG_HEADER(machine.h)
dnl bison -y is incompatible in functionality & Copyright
--- 1,31 ----
AC_INIT(prolang.y)
AC_PROG_CC
! AC_COMPILE_CHECK(["gcc/assembler float/branch incompatibility, e.g. on AIX"],
! [int foo(), bar(), foobar();
! #define x1 foobar();
! #define x4 x1 x1 x1 x1
! #define x10 x4 x4 x4 x4
! #define x40 x10 x10 x10 x10
! #define x100 x40 x40 x40 x40
! #define x400 x100 x100 x100 x100
! #define x1000 x400 x400 x400 x400
! int long_branch(i)
! int i;
! {
! if (i > 1) {
! x1000
! } else foo();
! return bar();
! }
! int foo(){ return 0; }
! int bar(){ return 0; }
! int foobar(){ return 0; }
! double d = 4.5;],
! [double e = 1.3; e/= 0.2;],,
! echo "falling back to cc"
! CC="cc"
! GCC=""
! )
AC_PROG_INSTALL
AC_CONFIG_HEADER(machine.h)
dnl bison -y is incompatible in functionality & Copyright
***************
*** 24,31 ****
[int i = 8/(sizeof(long) - 8);],
, AC_DEFINE(SIZEOF_LONG, 4),AC_DEFINE(SIZEOF_LONG, 8))
AC_COMPILE_CHECK(["needed malloc() alignment"],
! [int i = 96/(sizeof(struct {double d; char *p; double e;}) - 20);],
! , AC_DEFINE(MALLOC_ALIGN, 8), AC_DEFINE(MALLOC_ALIGN, 4))
AC_INLINE
AC_SIZE_T
AC_PID_T
--- 47,55 ----
[int i = 8/(sizeof(long) - 8);],
, AC_DEFINE(SIZEOF_LONG, 4),AC_DEFINE(SIZEOF_LONG, 8))
AC_COMPILE_CHECK(["needed malloc() alignment"],
! [struct {double d; char *p; double e;} t;
! int i = 96/((char *)&t.e - (char *)&t() - 12);
! ],, AC_DEFINE(MALLOC_ALIGN, 8), AC_DEFINE(MALLOC_ALIGN, 4))
AC_INLINE
AC_SIZE_T
AC_PID_T
***************
*** 59,65 ****
char addr2[] = "88.176.128.2";
struct in_addr tmp;
! #ifdef SIZEOF_INT == 4
#define ADDR_TYPE unsigned int
#else
#define ADDR_TYPE unsigned long
--- 83,89 ----
char addr2[] = "88.176.128.2";
struct in_addr tmp;
! #if SIZEOF_INT == 4
#define ADDR_TYPE unsigned int
#else
#define ADDR_TYPE unsigned long
***************
*** 261,266 ****
--- 285,291 ----
memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
my_sin.sin_family = hp->h_addrtype;
my_sin.sin_addr.s_addr = INADDR_ANY;
+ alarm(10);
for (port = 2000; port < 10000; port++) {
my_sin.sin_port = htons((u_short)port);
s = socket(hp->h_addrtype, SOCK_STREAM, 0);
***************
*** 311,316 ****
--- 336,342 ----
memcpy((char *)&my_sin.sin_addr, hp->h_addr, hp->h_length);
my_sin.sin_family = hp->h_addrtype;
my_sin.sin_addr.s_addr = INADDR_ANY;
+ alarm(10);
for (port = 2000; port < 10000; port++) {
my_sin.sin_port = htons((u_short)port);
s = socket(hp->h_addrtype, SOCK_STREAM, 0);
***************
*** 346,358 ****
, AC_DEFINE(RAND, RAND),
AC_COMPILE_CHECK([drand48],[double drand48();],
[return (int)(drand48() * 7);], AC_DEFINE(RAND, DRAND48))))
! tcomp='${CC-cc} ${CFLAGS} ${TESTFLAG} -c conftest.c >/dev/null 2>&1'
cat > conftest.c <<EOF
#include <stdio.h>
double d = 4.5;
main() { printf("hello world\n"); }
EOF
! for TESTFLAG in -O4 -xO2 -O2 -O; do
if eval $tcomp; then
CFLAGS=$TESTFLAG
break
--- 372,384 ----
, AC_DEFINE(RAND, RAND),
AC_COMPILE_CHECK([drand48],[double drand48();],
[return (int)(drand48() * 7);], AC_DEFINE(RAND, DRAND48))))
! tcomp='${CC-cc} ${CFLAGS} ${TESTFLAG} -o conftest conftest.c >/dev/null 2>&1'
cat > conftest.c <<EOF
#include <stdio.h>
double d = 4.5;
main() { printf("hello world\n"); }
EOF
! for TESTFLAG in -O4 -O3 -xO2 -O2 -O; do
if eval $tcomp; then
CFLAGS=$TESTFLAG
break
diff -c driver/mudlib/sys/functionlist.h:1.1 driver/mudlib/sys/functionlist.h:1.2
*** driver/mudlib/sys/functionlist.h:1.1 Fri Dec 17 22:22:17 1993
--- driver/mudlib/sys/functionlist.h Fri Dec 17 22:22:17 1993
***************
*** 1,7 ****
#ifndef FUNCTIONLIST_H
#define FUNCTIONLIST_H
! #include <sys/lpctypes.h>
#define RETURN_FUNCTION_NAME 0x01
#define RETURN_FUNCTION_FLAGS 0x02
--- 1,7 ----
#ifndef FUNCTIONLIST_H
#define FUNCTIONLIST_H
! #include <lpctypes.h>
#define RETURN_FUNCTION_NAME 0x01
#define RETURN_FUNCTION_FLAGS 0x02