From: Geoff Wing <mason@werple.net.au>
To: zsh-workers@math.gatech.edu (zsh-list)
Subject: signames.awk fix
Date: Thu, 23 May 1996 23:16:11 +1000 (EST) [thread overview]
Message-ID: <199605231316.NAA02924@werple.net.au> (raw)
Heyla,
since changes to signames.h seemed to stuff people up, try this patch:
(the code in this file is getting more and more roundabout to combat
everyone's stuffed up awks)
*** signames.awk Thu May 23 23:09:15 1996
--- signames.awk.orig Thu May 23 22:46:39 1996
***************
*** 2,8 ****
# $Id: signames.awk,v 2.1 1996/05/20 01:24:24 hzoli Exp $
#
# {g,n}awk script to generate signals.h
! # provided by Geoff Wing <mason@werple.net.au>
# NB: On SunOS 4.1.3 - user-functions don't work properly, also \" problems
#
/^[\t ]*#[\t ]*define[\t _]*SIG[A-Z][A-Z0-9]*[\t ]*[1-9][0-9]*/ {
--- 2,8 ----
# $Id: signames.awk,v 2.1 1996/05/20 01:24:24 hzoli Exp $
#
# {g,n}awk script to generate signals.h
! # provided by Geoff Wing <mason@werple.apana.org.au>
# NB: On SunOS 4.1.3 - user-functions don't work properly, also \" problems
#
/^[\t ]*#[\t ]*define[\t _]*SIG[A-Z][A-Z0-9]*[\t ]*[1-9][0-9]*/ {
***************
*** 51,59 ****
}
END {
- hash = "#"
ps = "%s"
! ifdstr = sprintf("#ifdef USE_SUSPENDED\n\t%csuspended%s%c,\n%celse\n\t%cst
opped%s%c,\n#endif\n", 034, ps, 034, hash, 034, ps, 034)
printf("%s\n%s\n\n%s\t%d\n\n%s\n\n%s\n\t%c%s%c,\n", "/** signals.h
**/", "/** architecture-customized signals.h for zsh **
/", "#define SIGCOUNT", max, "#ifdef GLOBALS", "char *sigmsg[SIGCOUNT+2] = {", 0
34, "done", 034)
--- 51,58 ----
}
END {
ps = "%s"
! ifdstr = sprintf("#ifdef USE_SUSPENDED\n\t%csuspended%s%c,\n\#else\n\t%cst
opped%s%c,\n#endif\n", 034, ps, 034, 034, ps, 034)
printf("%s\n%s\n\n%s\t%d\n\n%s\n\n%s\n\t%c%s%c,\n", "/** signals.h
**/", "/** architecture-customized signals.h for zsh **
/", "#define SIGCOUNT", max, "#ifdef GLOBALS", "char *sigmsg[SIGCOUNT+2] = {", 0
34, "done", 034)
***************
*** 88,94 ****
print "\tNULL"
print "};"
print ""
! printf("%celse\n", hash)
print "extern char *sigs[SIGCOUNT+4],*sigmsg[SIGCOUNT+2];"
print "#endif"
}
--- 87,93 ----
print "\tNULL"
print "};"
print ""
! print "\#else"
print "extern char *sigs[SIGCOUNT+4],*sigmsg[SIGCOUNT+2];"
print "#endif"
}
--
Mason [G.C.W] mason@werple.mira.net.au "Hurt...Agony...Pain...LOVE-IT"
reply other threads:[~1996-05-23 13:38 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=199605231316.NAA02924@werple.net.au \
--to=mason@werple.net.au \
--cc=zsh-workers@math.gatech.edu \
/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).