* signames.awk fix
@ 1996-05-23 13:16 Geoff Wing
0 siblings, 0 replies; only message in thread
From: Geoff Wing @ 1996-05-23 13:16 UTC (permalink / raw)
To: zsh-list
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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-05-23 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-23 13:16 signames.awk fix Geoff Wing
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).