delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/30/12:56:18

Date: Wed, 30 Aug 2000 19:56:53 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: lauras AT softhome DOT net
Message-Id: <9003-Wed30Aug2000195653+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b
CC: djgpp-workers AT delorie DOT com, mail AT jgreen4 DOT fsnet DOT co DOT uk
In-reply-to: <39AD1BF3.139CB5DB@softhome.net> (message from Laurynas Biveinis
on Wed, 30 Aug 2000 16:36:35 +0200)
Subject: Re: Symify fixes
References: <226lqssqgqp6i9nk82rvrqhl9aaia029e9 AT 4ax DOT com> <7458-Mon28Aug2000203504+0300-eliz AT is DOT elta DOT co DOT il> <ltflqs8ouggncaukmesirq7rsbsi4umrj5 AT 4ax DOT com> <8011-Mon28Aug2000234727+0300-eliz AT is DOT elta DOT co DOT il> <ttvnqs0p0rib0eja7eiijst64vbgp9tl1b AT 4ax DOT com> <39AD1BF3 DOT 139CB5DB AT softhome DOT net>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Wed, 30 Aug 2000 16:36:35 +0200
> From: Laurynas Biveinis <lauras AT softhome DOT net>
> 
> > +/* bail(): Print MSG to stderr and quit */
> > +static void bail(const char *msg)
> > +{
> > +  assert(msg);
> > +
> > +  fprintf(stderr, "SYMIFY ERROR: %s\n", msg);
> > +  exit(EXIT_FAILURE);
> > +}
> 
> Maybe this function could be improved by adding perror() call
> if errno != 0?

It's probably better to use strerror, since you already have an
fprintf.

But I agree that a more specific error message is a good idea.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019