1.0.8.4-1.0.8.5.gz

patches · 2.8 KB · 2010-03-30

Download   « Back to the patches list

Common subdirectories: /usr/home/clay/1.0.8.4/dgd/bin and dgd/bin
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/doc and dgd/doc
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/mud and dgd/mud
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/pkg and dgd/pkg
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src and dgd/src
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/tmp and dgd/tmp
diff -cr /usr/home/clay/1.0.8.4/dgd/doc/Porting dgd/doc/Porting
*** /usr/home/clay/1.0.8.4/dgd/doc/Porting	Tue Sep 27 18:31:55 1994
--- dgd/doc/Porting	Wed Sep 28 20:45:35 1994
***************
*** 29,34 ****
--- 29,35 ----
   - shorts should be 2 bytes wide
   - integers should be either 2 or 4 bytes wide
   - longs should be at least as wide as pointers
+  - all pointer types must be equally wide
   - two's complement should be used to represent negative numbers
   - the value of NULL must be 0.
  For each port, one should only have to modify src/host.h, the makefiles and
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/doc/kfun and dgd/doc/kfun
diff -cr /usr/home/clay/1.0.8.4/dgd/src/Changelog dgd/src/Changelog
*** /usr/home/clay/1.0.8.4/dgd/src/Changelog	Tue Sep 27 18:31:56 1994
--- dgd/src/Changelog	Wed Sep 28 20:45:36 1994
***************
*** 718,720 ****
--- 718,722 ----
     default entry with break statement.
   - Fixed an overflow problem in the array/mapping sort compare function.
   - DGD will now compile without warnings using gcc 2.4.5 -ansi -pedantic.
+  - Fixed a bug in telnet subnegotiations.
+  - Fixed some other ANSI C pointer problems.
diff -cr /usr/home/clay/1.0.8.4/dgd/src/array.c dgd/src/array.c
*** /usr/home/clay/1.0.8.4/dgd/src/array.c	Tue Sep 27 18:31:57 1994
--- dgd/src/array.c	Wed Sep 28 20:45:36 1994
***************
*** 413,424 ****
   * NAME:	cmp()
   * DESCRIPTION:	compare two values
   */
! static int cmp(v1, v2)
! register value *v1, *v2;
  {
      register int i;
      xfloat f1, f2;
  
      i = v1->type - v2->type;
      if (i != 0) {
  	return i;	/* order by type */
--- 413,427 ----
   * NAME:	cmp()
   * DESCRIPTION:	compare two values
   */
! static int cmp(cv1, cv2)
! cvoid *cv1, *cv2;
  {
+     register value *v1, *v2;
      register int i;
      xfloat f1, f2;
  
+     v1 = (value *) cv1;
+     v2 = (value *) cv2;
      i = v1->type - v2->type;
      if (i != 0) {
  	return i;	/* order by type */
***************
*** 690,697 ****
  array *a;
  register long l1, l2;
  {
-     register array *range;
- 
      if (l1 < 0 || l1 > l2 + 1 || l2 >= (long) a->size) {
  	error("Invalid array range");
      }
--- 693,698 ----
***************
*** 721,732 ****
   * NAME:	mapcmp()
   * DESCRIPTION:	compare two mapping indices
   */
! static int mapcmp(v1, v2)
! value *v1, *v2;
  {
      register int c;
  
!     c = cmp(v1, v2);
      if (c == 0 && v1 != v2 && (!T_INDEXED(v1->type) ||
  	v1->u.array == v2->u.array)) {
  	error("Identical indices in mapping");
--- 722,736 ----
   * NAME:	mapcmp()
   * DESCRIPTION:	compare two mapping indices
   */
! static int mapcmp(cv1, cv2)
! cvoid *cv1, *cv2;
  {
      register int c;
+     register value *v1, *v2;
  
!     c = cmp(cv1, cv2);
!     v1 = (value *) cv1;
!     v2 = (value *) cv2;
      if (c == 0 && v1 != v2 && (!T_INDEXED(v1->type) ||
  	v1->u.array == v2->u.array)) {
  	error("Identical indices in mapping");
diff -cr /usr/home/clay/1.0.8.4/dgd/src/comm.c dgd/src/comm.c
*** /usr/home/clay/1.0.8.4/dgd/src/comm.c	Tue Sep 27 18:32:00 1994
--- dgd/src/comm.c	Wed Sep 28 20:45:36 1994
***************
*** 500,505 ****
--- 500,507 ----
  			    if (UCHAR(*p) == SE) {
  				/* end of subnegotiation */
  				state = TS_DATA;
+ 			    } else {
+ 				state = TS_SB;
  			    }
  			    break;
  			}
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/comp and dgd/src/comp
diff -cr /usr/home/clay/1.0.8.4/dgd/src/config.c dgd/src/config.c
*** /usr/home/clay/1.0.8.4/dgd/src/config.c	Sat Jul 16 22:32:53 1994
--- dgd/src/config.c	Wed Sep 28 20:45:37 1994
***************
*** 73,79 ****
  							100000L },
  # define OBJECTS	16
  				{ "objects",		INT_CONST, FALSE,
! 							100 },
  # define RESERVED_CSTACK 17
  				{ "reserved_cstack",	INT_CONST, FALSE,
  							5 },
--- 73,79 ----
  							100000L },
  # define OBJECTS	16
  				{ "objects",		INT_CONST, FALSE,
! 							100, UINDEX_MAX },
  # define RESERVED_CSTACK 17
  				{ "reserved_cstack",	INT_CONST, FALSE,
  							5 },
diff -cr /usr/home/clay/1.0.8.4/dgd/src/config.h dgd/src/config.h
*** /usr/home/clay/1.0.8.4/dgd/src/config.h	Sat Jul 16 22:32:17 1994
--- dgd/src/config.h	Wed Sep 28 20:45:37 1994
***************
*** 4,11 ****
--- 4,13 ----
  
  # ifdef __STDC__
  #  define P(proto)	proto
+ #  define cvoid		const void
  # else
  #  define P(proto)	()
+ #  define cvoid		char
  # endif
  
  typedef char bool;
diff -cr /usr/home/clay/1.0.8.4/dgd/src/data.c dgd/src/data.c
*** /usr/home/clay/1.0.8.4/dgd/src/data.c	Tue Sep 27 18:32:11 1994
--- dgd/src/data.c	Wed Sep 28 20:45:38 1994
***************
*** 1188,1197 ****
   * NAME:	cmp()
   * DESCRIPTION:	compare two call_outs
   */
! static int cmp(v1, v2)
! value *v1, *v2;
  {
!     return v1->u.array->elts[2].u.number - v2->u.array->elts[2].u.number;
  }
  
  /*
--- 1188,1198 ----
   * NAME:	cmp()
   * DESCRIPTION:	compare two call_outs
   */
! static int cmp(cv1, cv2)
! cvoid *cv1, *cv2;
  {
!     return ((value *) cv1)->u.array->elts[2].u.number -
! 	   ((value *) cv2)->u.array->elts[2].u.number;
  }
  
  /*
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/ed and dgd/src/ed
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/host and dgd/src/host
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/kfun and dgd/src/kfun
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/lex and dgd/src/lex
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/lpc and dgd/src/lpc
diff -cr /usr/home/clay/1.0.8.4/dgd/src/object.c dgd/src/object.c
*** /usr/home/clay/1.0.8.4/dgd/src/object.c	Tue Sep 27 18:32:28 1994
--- dgd/src/object.c	Wed Sep 28 20:45:39 1994
***************
*** 7,13 ****
  # include "data.h"
  
  static object *otab;		/* object table */
! static int otabsize;		/* size of object table */
  static hashtab *htab;		/* object name hash table */
  static object *clean_obj;	/* list of objects to clean */
  static object *dest_obj;	/* destructed object list */
--- 7,13 ----
  # include "data.h"
  
  static object *otab;		/* object table */
! static uindex otabsize;		/* size of object table */
  static hashtab *htab;		/* object name hash table */
  static object *clean_obj;	/* list of objects to clean */
  static object *dest_obj;	/* destructed object list */
***************
*** 21,27 ****
   * DESCRIPTION:	initialize the object tables
   */
  void o_init(n)
! int n;
  {
      otab = ALLOC(object, otabsize = n);
      htab = ht_new(OBJTABSZ, OBJHASHSZ);
--- 21,27 ----
   * DESCRIPTION:	initialize the object tables
   */
  void o_init(n)
! unsigned int n;
  {
      otab = ALLOC(object, otabsize = n);
      htab = ht_new(OBJTABSZ, OBJHASHSZ);
diff -cr /usr/home/clay/1.0.8.4/dgd/src/object.h dgd/src/object.h
*** /usr/home/clay/1.0.8.4/dgd/src/object.h	Tue Sep 27 18:32:28 1994
--- dgd/src/object.h	Wed Sep 28 20:45:39 1994
***************
*** 26,32 ****
  # define O_COMPILED		0x40
  # define O_RESERVED		0x80	/* reserved for add-on packages */
  
! extern void		   o_init	P((int));
  extern object		  *o_new	P((char*, object*, struct _control_*));
  extern void		   o_del	P((object*));
  extern object		  *o_object	P((unsigned int, Int));
--- 26,32 ----
  # define O_COMPILED		0x40
  # define O_RESERVED		0x80	/* reserved for add-on packages */
  
! extern void		   o_init	P((unsigned int));
  extern object		  *o_new	P((char*, object*, struct _control_*));
  extern void		   o_del	P((object*));
  extern object		  *o_object	P((unsigned int, Int));
diff -cr /usr/home/clay/1.0.8.4/dgd/src/version.h dgd/src/version.h
*** /usr/home/clay/1.0.8.4/dgd/src/version.h	Tue Sep 27 18:32:30 1994
--- dgd/src/version.h	Wed Sep 28 20:45:39 1994
***************
*** 1 ****
! # define VERSION	"1.0.8.4"
--- 1 ----
! # define VERSION	"1.0.8.5"
diff -cr /usr/home/clay/1.0.8.4/dgd/src/comp/compile.c dgd/src/comp/compile.c
*** /usr/home/clay/1.0.8.4/dgd/src/comp/compile.c	Tue Sep 27 18:32:04 1994
--- dgd/src/comp/compile.c	Wed Sep 28 20:45:37 1994
***************
*** 1022,1030 ****
   * NAME:	cmp()
   * DESCRIPTION:	compare two case label nodes
   */
! static int cmp(n1, n2)
! register node **n1, **n2;
  {
      if (n1[0]->l.left->type == N_STR) {
  	if (n2[0]->l.left->type == N_STR) {
  	    return strcmp(n1[0]->l.left->l.string->text,
--- 1022,1034 ----
   * NAME:	cmp()
   * DESCRIPTION:	compare two case label nodes
   */
! static int cmp(cv1, cv2)
! cvoid *cv1, *cv2;
  {
+     register node **n1, **n2;
+ 
+     n1 = (node **) cv1;
+     n2 = (node **) cv2;
      if (n1[0]->l.left->type == N_STR) {
  	if (n2[0]->l.left->type == N_STR) {
  	    return strcmp(n1[0]->l.left->l.string->text,
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/host/atarist and dgd/src/host/atarist
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/host/mac and dgd/src/host/mac
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/host/minix68k and dgd/src/host/minix68k
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/host/pc and dgd/src/host/pc
Common subdirectories: /usr/home/clay/1.0.8.4/dgd/src/host/unix and dgd/src/host/unix
diff -cr /usr/home/clay/1.0.8.4/dgd/src/host/unix/connect.c dgd/src/host/unix/connect.c
*** /usr/home/clay/1.0.8.4/dgd/src/host/unix/connect.c	Tue Sep 27 18:32:20 1994
--- dgd/src/host/unix/connect.c	Wed Sep 28 20:45:38 1994
***************
*** 55,66 ****
  	exit(2);
      }
      on = 1;
!     if (setsockopt(telnet, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) {
  	perror("setsockopt");
  	exit(2);
      }
      on = 1;
!     if (setsockopt(binary, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) {
  	perror("setsockopt");
  	exit(2);
      }
--- 55,68 ----
  	exit(2);
      }
      on = 1;
!     if (setsockopt(telnet, SOL_SOCKET, SO_REUSEADDR, (char *) &on,
! 		   sizeof(on)) < 0) {
  	perror("setsockopt");
  	exit(2);
      }
      on = 1;
!     if (setsockopt(binary, SOL_SOCKET, SO_REUSEADDR, (char *) &on,
! 		   sizeof(on)) < 0) {
  	perror("setsockopt");
  	exit(2);
      }
diff -cr /usr/home/clay/1.0.8.4/dgd/src/kfun/file.c dgd/src/kfun/file.c
*** /usr/home/clay/1.0.8.4/dgd/src/kfun/file.c	Sat Jul 16 22:32:31 1994
--- dgd/src/kfun/file.c	Wed Sep 28 20:45:38 1994
***************
*** 1430,1439 ****
   * NAME:	cmp()
   * DESCRIPTION:	compare two string values
   */
! static int cmp(v1, v2)
! value *v1, *v2;
  {
!     return strcmp(v1->u.string->text, v2->u.string->text);
  }
  
  char p_get_dir[] = { C_TYPECHECKED | C_STATIC | C_LOCAL,
--- 1430,1440 ----
   * NAME:	cmp()
   * DESCRIPTION:	compare two string values
   */
! static int cmp(cv1, cv2)
! cvoid *cv1, *cv2;
  {
!     return strcmp(((value *) cv1)->u.string->text,
! 		  ((value *) cv2)->u.string->text);
  }
  
  char p_get_dir[] = { C_TYPECHECKED | C_STATIC | C_LOCAL,
diff -cr /usr/home/clay/1.0.8.4/dgd/src/kfun/std.c dgd/src/kfun/std.c
*** /usr/home/clay/1.0.8.4/dgd/src/kfun/std.c	Mon May 16 00:08:32 1994
--- dgd/src/kfun/std.c	Wed Sep 28 20:45:39 1994
***************
*** 678,683 ****
--- 678,684 ----
      } else {
  	/* no call_out was started: pop all arguments */
  	i_pop(nargs - 1);
+ 	handle = 0;
      }
      str_del(sp->u.string);
      sp->type = T_INT;
diff -cr /usr/home/clay/1.0.8.4/dgd/src/kfun/table.c dgd/src/kfun/table.c
*** /usr/home/clay/1.0.8.4/dgd/src/kfun/table.c	Sat Jul 16 22:32:32 1994
--- dgd/src/kfun/table.c	Wed Sep 28 20:45:39 1994
***************
*** 34,43 ****
   * NAME:	kfun->cmp()
   * DESCRIPTION:	compare two kftable entries
   */
! static int kf_cmp(kf1, kf2)
! kfunc *kf1, *kf2;
  {
!     return strcmp(kf1->name, kf2->name);
  }
  
  /*
--- 34,43 ----
   * NAME:	kfun->cmp()
   * DESCRIPTION:	compare two kftable entries
   */
! static int kf_cmp(cv1, cv2)
! cvoid *cv1, *cv2;
  {
!     return strcmp(((kfunc *) cv1)->name, ((kfunc *) cv2)->name);
  }
  
  /*

Site Stats

Snippets: 1791
Codebases: 571