* signames.awk fix for SunOS
@ 1996-05-24 0:50 Zoltan Hidvegi
0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1996-05-24 0:50 UTC (permalink / raw)
To: Zsh workers list
Someone reported that signames.awk does not work on SunOS 4 (I accidently
deleted this mail). Here is the fix for that. After that, signames.awk
should _really_ work everywhere.
Zoltan
*** Src/signames.awk 1996/05/23 13:33:46 2.2
--- Src/signames.awk 1996/05/24 00:37:29
***************
*** 52,60 ****
}
END {
- hash = "#"
ps = "%s"
! ifdstr = sprintf("#ifdef USE_SUSPENDED\n\t%csuspended%s%c,\n%celse\n\t%cstopped%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] = {", 034, "done", 034)
--- 52,59 ----
}
END {
ps = "%s"
! ifdstr = sprintf("#ifdef USE_SUSPENDED\n\t%csuspended%s%c,\n%celse\n\t%cstopped%s%c,\n#endif\n", 034, ps, 034, 035, 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] = {", 034, "done", 034)
***************
*** 89,95 ****
print "\tNULL"
print "};"
print ""
! printf("%celse\n", hash)
print "extern char *sigs[SIGCOUNT+4],*sigmsg[SIGCOUNT+2];"
print "#endif"
}
--- 88,94 ----
print "\tNULL"
print "};"
print ""
! printf("%celse\n", 035)
print "extern char *sigs[SIGCOUNT+4],*sigmsg[SIGCOUNT+2];"
print "#endif"
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-05-24 1:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-24 0:50 signames.awk fix for SunOS Zoltan Hidvegi
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).