zsh-workers
 help / color / mirror / code / Atom feed
From: jarausch@igpm.rwth-aachen.de
To: zsh-workers@sunsite.auc.dk
Subject: patch [zsh-3.1.6-pws-13] zsh.h
Date: Mon, 03 Jan 2000 14:44:27 +0100	[thread overview]
Message-ID: <200001031344.OAA49240@numa1.igpm.rwth-aachen.de> (raw)

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


                 reply	other threads:[~2000-01-03 13:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200001031344.OAA49240@numa1.igpm.rwth-aachen.de \
    --to=jarausch@igpm.rwth-aachen.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).