rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Scott Schwartz <schwartz@galapagos.cse.psu.edu>
To: rc@hawkwind.utcs.toronto.edu
Subject: rc1.5 patch
Date: Mon, 9 Jan 1995 23:06:34 -0500	[thread overview]
Message-ID: <95Jan9.230644est.12686@galapagos.cse.psu.edu> (raw)

A while back Byron asked if I had the patch handy for a bug in the
reader that someone noticed.  Sorry for the delay, here's the diff.
This diff also works around a bug in ObjectCenter's understanding of
declarations.  I know of a few other bugs, in the print library, but I
think they are benign.  [The fixes for those are reflected in the
version of the print code that I sent to comp.sources.unix a while
back, if anyone wants to integrate them.  (Yeah, I ought to do it.)]

diff -rc ./footobar.c /home/roke/src/rc1.5/footobar.c
*** ./footobar.c	Sun Mar  6 22:32:55 1994
--- /home/roke/src/rc1.5/footobar.c	Tue Mar 29 23:32:56 1994
***************
*** 9,15 ****
  
  #ifdef PROTECT_ENV
  static bool Fconv(Format *f, int ignore) {
! 	unsigned const char *s = va_arg(f->args, unsigned const char *);
  	int c;
  
  	while ((c = *s++) != '\0')
--- 9,15 ----
  
  #ifdef PROTECT_ENV
  static bool Fconv(Format *f, int ignore) {
! 	const unsigned char *s = va_arg(f->args, const unsigned char *);
  	int c;
  
  	while ((c = *s++) != '\0')
diff -rc ./input.c /home/roke/src/rc1.5/input.c
*** ./input.c	Sun Mar  6 22:33:03 1994
--- /home/roke/src/rc1.5/input.c	Tue Apr  5 16:45:46 1994
***************
*** 140,145 ****
--- 140,147 ----
  				long /*ssize_t*/ r = rc_read(istack->fd, inbuf + 2, BUFSIZE);
  				sigchk();
  				if (r < 0) {
+ 					if (errno == EINTR) /*retry interrupted read*/
+ 						continue;
  					uerror("read");
  					rc_exit(1);
  				}
diff -rc ./print.c /home/roke/src/rc1.5/print.c
*** ./print.c	Sun Mar  6 22:33:10 1994
--- /home/roke/src/rc1.5/print.c	Tue Mar 29 23:33:24 1994
***************
*** 240,246 ****
   */
  
  extern int printfmt(Format *format, const char *fmt) {
! 	unsigned const char *s = (unsigned const char *) fmt;
  
  	if (fmttab[0] == NULL)
  		inittab();
--- 240,246 ----
   */
  
  extern int printfmt(Format *format, const char *fmt) {
! 	const unsigned char *s = (const unsigned char *) fmt;
  
  	if (fmttab[0] == NULL)
  		inittab();


                 reply	other threads:[~1995-01-10  4:07 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=95Jan9.230644est.12686@galapagos.cse.psu.edu \
    --to=schwartz@galapagos.cse.psu.edu \
    --cc=rc@hawkwind.utcs.toronto.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.
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).