Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

patch [zsh-3.1.6-pws-13] zsh.h



The 64bit logic in zsh-3.1.6-pws-13 is broken since an additional
member has been added to struct heap.
Here is a patch

*** zsh-3.1.6-pws-13/Src/zsh.h	Mon Dec 20 22:55:00 1999
--- zsh-3.1.6-pws-13_OLD/Src/zsh.h	Mon Dec 20 22:55:19 1999
***************
*** 1556,1573 ****
  
  struct heap {
      struct heap *next;		/* next one                                  */
      size_t size;		/* size of heap                              */
      size_t used;		/* bytes used from the heap                  */
      struct heapstack *sp;	/* used by pushheap() to save the value used */
- 
- /* Make sure sizeof(heap) is a multiple of 8 
  #ifdef PAD_64_BIT
!     size_t dummy;		
  #endif
- */
  #define arena(X)	((char *) (X) + sizeof(struct heap))
  };
  
  #ifndef DEBUG
  # define HEAPALLOC	do { int nonlocal_useheap = global_heapalloc(); do
  
--- 1556,1570 ----
  
  struct heap {
      struct heap *next;		/* next one                                  */
      size_t size;		/* size of heap                              */
      size_t used;		/* bytes used from the heap                  */
      struct heapstack *sp;	/* used by pushheap() to save the value used */
  #ifdef PAD_64_BIT
!     size_t dummy;		/* Make sure sizeof(heap) is a multiple of 8 */
  #endif
  #define arena(X)	((char *) (X) + sizeof(struct heap))
  };
  
  #ifndef DEBUG
  # define HEAPALLOC	do { int nonlocal_useheap = global_heapalloc(); do
  

-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany



Messages sorted by: Reverse Date, Date, Thread, Author