From: Zefram <zefram@fysh.org>
To: zsh-workers@sunsite.auc.dk
Subject: Re: command completion taking ages
Date: Thu, 16 Mar 2000 01:35:33 +0000 (GMT) [thread overview]
Message-ID: <E12VPCI-0004NI-00@crucigera.fysh.org> (raw)
In-Reply-To: <200003151328.OAA18970@beta.informatik.hu-berlin.de> from Sven Wischnowsky at "Mar 15, 2000 02:28:07 pm"
Sven Wischnowsky wrote:
>+ (to = (long) i * M_ISIZE * (m_m[i] - m_f[i])), (cu += to));
This is undefined behaviour. Order of evaluation of function arguments
is unspecified, and there are no intervening sequence points.
-zefram
diff -ru ../z.old/Src/mem.c Src/mem.c
--- ../z.old/Src/mem.c Wed Mar 15 12:53:07 2000
+++ Src/mem.c Wed Mar 15 14:26:18 2000
@@ -1247,10 +1247,12 @@
}
printf("\nsize\tmalloc\tfree\tdiff\ttotal\tcum\n");
for (i = 0, cu = 0; i < 1024; i++)
- if (m_m[i] || m_f[i])
+ if (m_m[i] || m_f[i]) {
+ to = (long) i * M_ISIZE * (m_m[i] - m_f[i]);
printf("%ld\t%d\t%d\t%d\t%ld\t%ld\n",
(long)i * M_ISIZE, m_m[i], m_f[i], m_m[i] - m_f[i],
- (to = (long) i * M_ISIZE * (m_m[i] - m_f[i])), (cu += to));
+ to, (cu += to));
+ }
if (m_m[i] || m_f[i])
printf("big\t%d\t%d\t%d\n", m_m[i], m_f[i], m_m[i] - m_f[i]);
END
next prev parent reply other threads:[~2000-03-16 1:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-15 13:28 Sven Wischnowsky
2000-03-16 1:35 ` Zefram [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-03-20 10:28 Sven Wischnowsky
2000-03-16 8:46 Sven Wischnowsky
2000-03-15 9:48 Sven Wischnowsky
2000-03-14 15:27 Sven Wischnowsky
2000-03-14 18:32 ` Bart Schaefer
2000-03-13 12:23 Sven Wischnowsky
2000-03-12 15:44 Oliver Kiddle
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=E12VPCI-0004NI-00@crucigera.fysh.org \
--to=zefram@fysh.org \
--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).