cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/08/16/05:53:13

Date: Sun, 16 Aug 1998 12:52:38 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp-workers AT delorie DOT com
Subject: DJMERGE and the missing .000 file
Message-ID: <Pine.SUN.3.91.980816124945.7668A-100000@is>
MIME-Version: 1.0

Somebody complained that if there's no .000 file, djmerge doesn't behave 
itself, and suggested to document it at the least.  Here's a patch that 
should fix this, I think.

*** src/utils/djmerge.c~0	Sun Nov  2 15:21:28 1997
--- src/utils/djmerge.c	Fri Aug 14 11:52:26 1998
*************** main(int argc, char **argv)
*** 43,48 ****
--- 43,54 ----
  
    partnum = 0;
    f = p_open(argv[1], partnum);
+   if (f < 0)
+   {
+     fprintf(stderr,"FATAL: Cannot open %s.000", argv[1]);
+     perror("");
+     exit(1);
+   }
    while (1)
    {
      r = read(f, buf, BUFS);

- Raw text -


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