Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

signames.awk fix for SunOS



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"
   }




Messages sorted by: Reverse Date, Date, Thread, Author