zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: PATCH: pws-24: unsigned character problems
Date: Sat, 26 Jun 1999 18:02:23 +0200	[thread overview]
Message-ID: <199906261602.SAA21761@hydra.ifh.de> (raw)

(This is also in another mail queue so could in theory arrive twice.)

The first of these hunks fixes the problem I was having on SunOS 4.1.3_U1
with gcc 2.7.0: itok(c) wasn't working where c was a char, even though itok
is defined with a STOUC() in it.  Changing c to be an int worked.

Coincidentally, I'd already fixed an error message about unsigned chars
from the test I added for spaces in option strings, which is the second
hunk.

--- Src/exec.c.uc	Fri Jun 25 14:30:20 1999
+++ Src/exec.c	Sat Jun 26 17:17:22 1999
@@ -1131,7 +1131,8 @@
 untokenize(char *s)
 {
     if (*s) {
-	char *p = s, c;
+	char *p = s;
+	int c;
 
 	while ((c = *s++))
 	    if (itok(c)) {
--- Src/init.c.uc	Fri Jun 25 14:29:52 1999
+++ Src/init.c	Sat Jun 26 15:58:22 1999
@@ -235,10 +235,10 @@
 		else
 		    dosetopt(optno, action, 1);
               break;
-	    } else if (isspace(**argv)) {
+	    } else if (isspace(STOUC(**argv))) {
 		/* zsh's typtab not yet set, have to use ctype */
 		while (*++*argv)
-		    if (!isspace(**argv)) {
+		    if (!isspace(STOUC(**argv))) {
 			zerr("bad option string: `%s'", args, 0);
 			exit(1);
 		    }

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


                 reply	other threads:[~1999-06-26 21:34 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=199906261602.SAA21761@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.
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).