Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
signames.awk fix
- X-seq: zsh-workers 1142
- From: Geoff Wing <mason@xxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (zsh-list)
- Subject: signames.awk fix
- Date: Thu, 23 May 1996 23:16:11 +1000 (EST)
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@xxxxxxxxxxxxx>
# 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@xxxxxxxxxxxxxxxxxxx>
# 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@xxxxxxxxxxxxxxxxxx "Hurt...Agony...Pain...LOVE-IT"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author