zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: Ibraheem Umaru-Mohammed <umarumohammed@btinternet.com>,
	zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: 4.2.0-pre-1
Date: Tue, 02 Mar 2004 12:14:21 +0000	[thread overview]
Message-ID: <17613.1078229661@csr.com> (raw)
In-Reply-To: "Ibraheem Umaru-Mohammed"'s message of "Tue, 02 Mar 2004 11:46:21 GMT." <20040302114621.GA3581@rabox>

Ibraheem Umaru-Mohammed wrote:
> Hmmmn, sigcount.h seems to have unclosed quotes:
> 
> ,---- [ sigcount.h ]
> | #define SIGCOUNT        59
> | #define sigmsg(sig) ((sig) <= SIGCOUNT ? sig_msg[sig] : "unknown signal3)
> `----

Yes, I can believe that's wrong...  Presumably it's also wrong in
signames.c.

The problem must be in signames2.awk which generates this:

    printf "#define sigmsg(sig) ((sig) <= SIGCOUNT ? sig_msg[sig] : %c%s%c)", 34, "unknown signal", 34

My guess is your awk is truncating the input line in some weird way.
(It can't be 80 characters, however, since you wouldn't get the `unknown
signal' at all.)  Can you try altering that line as per the following
patch and see if that helps?

If your awk is playing up, you might find other weirdness, in particular
the `# ifdef USE_SUSPENDED' bit in signames.c.  So even if it looks like
it works it would be worth checking (or posting) the resulting signames.c.
Any fixes ought to be similarly trivial, but I wouldn't like to second
guess what awk is actually getting up to.

Index: Src/signames2.awk
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/signames2.awk,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 signames2.awk
--- Src/signames2.awk	15 Feb 2000 16:44:54 -0000	1.1.1.4
+++ Src/signames2.awk	2 Mar 2004 12:05:38 -0000
@@ -63,7 +63,8 @@
     printf "#include %czsh.mdh%c\n", 34, 34
     printf "\n"
     printf "/**/\n"
-    printf "#define sigmsg(sig) ((sig) <= SIGCOUNT ? sig_msg[sig] : %c%s%c)", 34, "unknown signal", 34
+    printf "#define sigmsg(sig) ((sig) <= SIGCOUNT ? sig_msg[sig]"
+    printf " : %c%s%c)", 34, "unknown signal", 34
     printf "\n"
     printf "/**/\n"
     printf "mod_export char *sig_msg[SIGCOUNT+2] = {\n"

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


  reply	other threads:[~2004-03-02 12:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040227165910.GD31494@rabox>
2004-03-01 10:52 ` 4.2.0-pre-1 Peter Stephenson
2004-03-02 10:37   ` 4.2.0-pre-1 Ibraheem Umaru-Mohammed
2004-03-02 11:15     ` 4.2.0-pre-1 Peter Stephenson
2004-03-02 11:46       ` 4.2.0-pre-1 Ibraheem Umaru-Mohammed
2004-03-02 12:14         ` Peter Stephenson [this message]
2004-03-02 14:27           ` 4.2.0-pre-1 Ibraheem Umaru-Mohammed
2004-03-03 15:12   ` 4.2.0-pre-1 on HP-UX 11.11 Paul Ackersviller
2004-03-03 15:31     ` Peter Stephenson
2004-03-04  3:19       ` Paul Ackersviller
2004-03-04 12:21         ` Peter Stephenson
2004-03-04 20:36           ` Paul Ackersviller
2004-03-05 10:54             ` Peter Stephenson
     [not found] <20040227172236.GA22597@lorien.emufarm.org>
2004-02-27 18:10 ` [7087] 4.2.0-pre-1 Peter Stephenson
2004-02-28  6:52   ` Clint Adams
2004-02-28  7:36     ` 4.2.0-pre-1 Danek Duvall
2004-02-28 15:13       ` 4.2.0-pre-1 Clint Adams
     [not found] <10223.1077810073@csr.com>
2004-02-26 19:13 ` 4.2.0-pre-1 Clint Adams
2004-02-26 19:17   ` 4.2.0-pre-1 Peter Stephenson
2004-02-27  2:03     ` 4.2.0-pre-1 Bart Schaefer

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=17613.1078229661@csr.com \
    --to=pws@csr.com \
    --cc=umarumohammed@btinternet.com \
    --cc=zsh-workers@sunsite.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).