diff3.2@244-245.gz
snippets · 3.1 KB · 2010-03-30
LPMud 3.2 driver diff from patch level 244 to 245 (Dec 1993).
Download « Back to the snippets list
diff -c driver/patchlevel.h:1.265 driver/patchlevel.h:1.266
*** driver/patchlevel.h:1.265 Tue Dec 14 03:48:19 1993
--- driver/patchlevel.h Tue Dec 14 03:48:19 1993
***************
*** 1,2 ****
! #define RELEASE_DATE "Fri Dec 10 17:02:14 MET 1993"
! #define PATCH_LEVEL "@244"
--- 1,2 ----
! #define RELEASE_DATE "Tue Dec 14 03:44:22 MET 1993"
! #define PATCH_LEVEL "@245"
diff -c driver/closure.c:1.35 driver/closure.c:1.36
*** driver/closure.c:1.35 Tue Dec 14 03:48:18 1993
--- driver/closure.c Tue Dec 14 03:48:18 1993
***************
*** 630,637 ****
current.code_left -= 2;
*current.codep = opt_used & NEGATE_GIVEN ?
(code == F_BRANCH_WHEN_NON_ZERO-F_OFFSET ?
! F_BRANCH_WHEN_ZERO :
! F_BRANCH_WHEN_NON_ZERO) :
code;
current.codep += 2;
opt_used =
--- 630,637 ----
current.code_left -= 2;
*current.codep = opt_used & NEGATE_GIVEN ?
(code == F_BRANCH_WHEN_NON_ZERO-F_OFFSET ?
! F_BRANCH_WHEN_ZERO-F_OFFSET :
! F_BRANCH_WHEN_NON_ZERO-F_OFFSET) :
code;
current.codep += 2;
opt_used =
***************
*** 1038,1044 ****
}
break;
}
! case F_SSCANF:
{
int lvalues;
--- 1038,1044 ----
}
break;
}
! case F_SSCANF-F_OFFSET:
{
int lvalues;
diff -c driver/hosts/crypt.c:1.2 driver/hosts/crypt.c:1.3
*** driver/hosts/crypt.c:1.2 Tue Dec 14 03:48:21 1993
--- driver/hosts/crypt.c Tue Dec 14 03:48:21 1993
***************
*** 16,38 ****
#define DES_ENCRYPT 1
#define DES_DECRYPT 0
! typedef unsigned char uchar;
! typedef unsigned short ushort;
! typedef unsigned int uint;
! typedef unsigned long ulong;
#define ITERATIONS 16
#define HALF_ITERATIONS 8
! #define c2l(c,l) (l =((ulong)(*((c)++))) , \
! l|=((ulong)(*((c)++)))<< 8, \
! l|=((ulong)(*((c)++)))<<16, \
! l|=((ulong)(*((c)++)))<<24)
!
! #define l2c(l,c) (*((c)++)=(uchar)(((l) )&0xff), \
! *((c)++)=(uchar)(((l)>> 8)&0xff), \
! *((c)++)=(uchar)(((l)>>16)&0xff), \
! *((c)++)=(uchar)(((l)>>24)&0xff))
static unsigned long SPtrans[8][64]={
/* nibble 0 */
--- 16,39 ----
#define DES_ENCRYPT 1
#define DES_DECRYPT 0
! /* Amylaar: prepend crypt_ to avoid name clashes */
! typedef unsigned char crypt_uchar;
! typedef unsigned short crypt_ushort;
! typedef unsigned int crypt_uint;
! typedef unsigned long crypt_ulong;
#define ITERATIONS 16
#define HALF_ITERATIONS 8
! #define c2l(c,l) (l =((crypt_ulong)(*((c)++))) , \
! l|=((crypt_ulong)(*((c)++)))<< 8, \
! l|=((crypt_ulong)(*((c)++)))<<16, \
! l|=((crypt_ulong)(*((c)++)))<<24)
!
! #define l2c(l,c) (*((c)++)=(crypt_uchar)(((l) )&0xff), \
! *((c)++)=(crypt_uchar)(((l)>> 8)&0xff), \
! *((c)++)=(crypt_uchar)(((l)>>16)&0xff), \
! *((c)++)=(crypt_uchar)(((l)>>24)&0xff))
static unsigned long SPtrans[8][64]={
/* nibble 0 */
***************
*** 178,184 ****
0x00104000, 0x00004010, 0x04004010, 0x04100000,
0x00000010, 0x04104000, 0x00104010, 0x00000000,
0x04000000, 0x04100010, 0x00004000, 0x00104010};
! static ulong skb[8][64]={
/* for C bits (numbered as per FIPS 46) 1 2 3 4 5 6 */
0x00000000,0x00000010,0x20000000,0x20000010,
0x00010000,0x00010010,0x20010000,0x20010010,
--- 179,185 ----
0x00104000, 0x00004010, 0x04004010, 0x04100000,
0x00000010, 0x04104000, 0x00104010, 0x00000000,
0x04000000, 0x04100010, 0x00004000, 0x00104010};
! static crypt_ulong skb[8][64]={
/* for C bits (numbered as per FIPS 46) 1 2 3 4 5 6 */
0x00000000,0x00000010,0x20000000,0x20000010,
0x00010000,0x00010010,0x20010000,0x20010010,
***************
*** 337,343 ****
register int i;
k=(unsigned long *)schedule;
! in=(uchar *)key;
c2l(in,c);
c2l(in,d);
--- 338,344 ----
register int i;
k=(unsigned long *)schedule;
! in=(crypt_uchar *)key;
c2l(in,c);
c2l(in,d);
***************
*** 410,416 ****
(b)^=(t),\
(a)^=((t)<<(n)))
! uchar con_salt[128]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
--- 411,417 ----
(b)^=(t),\
(a)^=((t)<<(n)))
! crypt_uchar con_salt[128]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
***************
*** 429,435 ****
0x3D,0x3E,0x3F,0x00,0x00,0x00,0x00,0x00,
};
! uchar cov_2char[64]={
0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,
0x36,0x37,0x38,0x39,0x41,0x42,0x43,0x44,
0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
--- 430,436 ----
0x3D,0x3E,0x3F,0x00,0x00,0x00,0x00,0x00,
};
! crypt_uchar cov_2char[64]={
0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,
0x36,0x37,0x38,0x39,0x41,0x42,0x43,0x44,
0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,
***************
*** 445,458 ****
char *salt;
{
unsigned int i,j,x,y;
! ulong Eswap0=0,Eswap1=0;
! ulong out[2],ll;
des_cblock key;
des_key_schedule ks;
! static uchar buff[20];
! uchar bb[9];
! uchar *b=bb;
! uchar c,u;
x=buff[0]=salt[0];
Eswap0=con_salt[x];
--- 446,459 ----
char *salt;
{
unsigned int i,j,x,y;
! crypt_ulong Eswap0=0,Eswap1=0;
! crypt_ulong out[2],ll;
des_cblock key;
des_key_schedule ks;
! static crypt_uchar buff[20];
! crypt_uchar bb[9];
! crypt_uchar *b=bb;
! crypt_uchar c,u;
x=buff[0]=salt[0];
Eswap0=con_salt[x];
***************
*** 496,504 ****
}
int body(out0,out1,ks,Eswap0,Eswap1)
! ulong *out0,*out1;
des_key_schedule *ks;
! ulong Eswap0,Eswap1;
{
register unsigned long l,r,t,u,v;
register unsigned long *s;
--- 497,505 ----
}
int body(out0,out1,ks,Eswap0,Eswap1)
! crypt_ulong *out0,*out1;
des_key_schedule *ks;
! crypt_ulong Eswap0,Eswap1;
{
register unsigned long l,r,t,u,v;
register unsigned long *s;
***************
*** 508,514 ****
l=0;
r=0;
! s=(ulong *)ks;
E0=Eswap0;
E1=Eswap1;
--- 509,515 ----
l=0;
r=0;
! s=(crypt_ulong *)ks;
E0=Eswap0;
E1=Eswap1;
diff -c driver/hosts/amiga/CHANGELOG:1.17 driver/hosts/amiga/CHANGELOG:1.18
*** driver/hosts/amiga/CHANGELOG:1.17 Tue Dec 14 03:48:23 1993
--- driver/hosts/amiga/CHANGELOG Tue Dec 14 03:48:23 1993
***************
*** 43,50 ****
04-Oct-93 [lars]
Upgraded PlayMud to version 1.6.
! 09-Apr-93..30-Nov-93 [lars]
! Merged in patches for @31..242.
15-Nov-93 [lars]
Upgraded PlayMud to version 1.7.
--- 43,50 ----
04-Oct-93 [lars]
Upgraded PlayMud to version 1.6.
! 09-Apr-93..09-Dec-93 [lars]
! Merged in patches for @31..243.
15-Nov-93 [lars]
Upgraded PlayMud to version 1.7.
diff -c /dev/null driver/hosts/amiga/INSTALL:1.1
*** /dev/null Tue Dec 14 03:48:23 1993
--- driver/hosts/amiga/INSTALL Tue Dec 14 03:48:23 1993
***************
*** 0 ****
--- 1,80 ----
+ This is a brief description of how to install LPmud 3.2 on an Amiga.
+ See also README.Amiga for details.
+
+ Make a directory 'mud', which contains a dir named 'src', 'bin' and 'lib'.
+ Move the game driver source (this code) to the src directory.
+
+ Copy the files 'machine.h', 'config.h', and 'Makefile' to the
+ 'src' directory (you might want to make a backup of the original 'config.h'
+ first).
+
+ Edit the Makefile, defining where the lib and bin is, and selecting
+ your compiler and your type of net communication.
+
+ Check definitions in config.h, most are probably good as they are.
+ The ones that are important wrt. which mudlibs can be run are COMPAT_MODE,
+ NATIVE_MODE, OLD_PREVIOUS_OBJECT_BEHAVIOUR, OLD_EXPLODE_BEHAVIOUR,
+ INITIALIZATION_BY___INIT You get the most 2.4.5 compatibility if you define
+ all of these but NATIVE_MODE . Likewise, you get the most 3.0 compatibility
+ when you define all but COMPAT_MODE. The most interesting configuration is
+ probably not to set any of these.
+
+ Do 'make'. This leaves you after some time with the executable 'driver'
+ in the 'src' directory.
+ Do also 'make playmud' if you want the client program for local access.
+
+ Get a mudlib. The way to do this is to get the source to 2.4.5, which includes
+ a mudlib in the directory 'mudlib'. Copy all those files into your 'lib'
+ directory.
+
+ Copy the file src/mudlib/master.c to lib/obj/master.c (in COMPAT_MODE),
+ otherwise to lib/secure/master.c. Copy the file src/mudlib_simul_efun.c to
+ where it is supposed to be. That is defined by the function get_simul_efun in
+ master.c.
+
+ Test the game with 'run driver'.
+
+ If you see the message 'Setting up ipc', then you are up and running.
+ Test with 'letnet localhost 8888' (if you're running AmiTCP) or
+ with 'PlayMud' (if you're not running AmiTCP); that is, when you change
+ the port number in config.h , the changed number does apply.
+ This is a brief description of how to install LPmud 3.2 on an Amiga.
+ See also README.Amiga for details.
+
+ Make a directory 'mud', which contains a dir named 'src', 'bin' and 'lib'.
+ Move the game driver source (this code) to the src directory.
+
+ Copy the files 'machine.h', 'config.h', and 'Makefile' to the
+ 'src' directory (you might want to make a backup of the original 'config.h'
+ first).
+
+ Edit the Makefile, defining where the lib and bin is, and selecting
+ your compiler and your type of net communication.
+
+ Check definitions in config.h, most are probably good as they are.
+ The ones that are important wrt. which mudlibs can be run are COMPAT_MODE,
+ NATIVE_MODE, OLD_PREVIOUS_OBJECT_BEHAVIOUR, OLD_EXPLODE_BEHAVIOUR,
+ INITIALIZATION_BY___INIT You get the most 2.4.5 compatibility if you define
+ all of these but NATIVE_MODE . Likewise, you get the most 3.0 compatibility
+ when you define all but COMPAT_MODE. The most interesting configuration is
+ probably not to set any of these.
+
+ Do 'make'. This leaves you after some time with the executable 'driver'
+ in the 'src' directory.
+ Do also 'make playmud' if you want the client program for local access.
+
+ Get a mudlib. The way to do this is to get the source to 2.4.5, which includes
+ a mudlib in the directory 'mudlib'. Copy all those files into your 'lib'
+ directory.
+
+ Copy the file src/mudlib/master.c to lib/obj/master.c (in COMPAT_MODE),
+ otherwise to lib/secure/master.c. Copy the file src/mudlib_simul_efun.c to
+ where it is supposed to be. That is defined by the function get_simul_efun in
+ master.c.
+
+ Test the game with 'run driver'.
+
+ If you see the message 'Setting up ipc', then you are up and running.
+ Test with 'letnet localhost 8888' (if you're running AmiTCP) or
+ with 'PlayMud' (if you're not running AmiTCP); that is, when you change
+ the port number in config.h , the changed number does apply.
diff -c driver/hosts/amiga/Makefile:1.15 driver/hosts/amiga/Makefile:1.16
*** driver/hosts/amiga/Makefile:1.15 Tue Dec 14 03:48:23 1993
--- driver/hosts/amiga/Makefile Tue Dec 14 03:48:23 1993
***************
*** 80,85 ****
--- 80,86 ----
.IF $(CCFAMILY) == DICE
# -gl tells DICE to use dynamic stack code (needed for its alloca)
+ # -mC tells DICE to use the large code model.
# -mD tells DICE to use the large data model.
# -s tells DICE to include symbolic information into the executable.
# DICE uses the OS' math libraries, so OS-1.3 versions can't use simple
***************
*** 86,92 ****
# floats.
# AMIGA is defined automatically.
! CCOPTS = -s -gl -mD -D_NO_OWN_FLOATS # -DAMIGA
# Biggies: Large Code Model
--- 87,93 ----
# floats.
# AMIGA is defined automatically.
! CCOPTS = -s -gl -mC -mD -D_NO_OWN_FLOATS # -DAMIGA
# Biggies: Large Code Model
diff -c driver/hosts/amiga/machine.h:1.8 driver/hosts/amiga/machine.h:1.9
*** driver/hosts/amiga/machine.h:1.8 Tue Dec 14 03:48:23 1993
--- driver/hosts/amiga/machine.h Tue Dec 14 03:48:24 1993
***************
*** 51,57 ****
/* #undef VOID_CLOSEDIR */
/* can the result of ntohl be passed to inet_ntoa() without casts ? */
! #undef NTOHL_MATCHES_INET_NTOA
/* Is the library function inet_ntoa() compatible with the compiler ? */
#define INET_NTOA_OK 1
--- 51,57 ----
/* #undef VOID_CLOSEDIR */
/* can the result of ntohl be passed to inet_ntoa() without casts ? */
! #define NTOHL_MATCHES_INET_NTOA 1
/* Is the library function inet_ntoa() compatible with the compiler ? */
#define INET_NTOA_OK 1