changeset 16373:d50369f4bb41

* etags.c (print_version): Print copyright info. * etags.c (print_help): Print the bug reporting address. (main): Use return as the last instruction, instead of exit. * etags.c (main): Don't open the tags file in cxref mode.
author Francesco Potortì <pot@gnu.org>
date Wed, 02 Oct 1996 14:01:24 +0000
parents e311d5372d8c
children b3b88a1ee6aa
files lib-src/etags.c
diffstat 1 files changed, 13 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Wed Oct 02 10:26:51 1996 +0000
+++ b/lib-src/etags.c	Wed Oct 02 14:01:24 1996 +0000
@@ -31,7 +31,7 @@
  *	Francesco Potorti` (F.Potorti@cnuce.cnr.it) is the current maintainer.
  */
 
-char pot_etags_version[] = "@(#) pot revision number is 11.66";
+char pot_etags_version[] = "@(#) pot revision number is 11.71";
 
 #define	TRUE	1
 #define	FALSE	0
@@ -450,7 +450,9 @@
 void
 print_version ()
 {
-  printf ("%s for Emacs version %s\n", (CTAGS) ? "ctags" : "etags", VERSION);
+  printf ("%s (GNU Emacs %s)\n", (CTAGS) ? "ctags" : "etags", VERSION);
+  puts ("Copyright (C) 1996 Free Software Foundation, Inc. and Ken Arnold");
+  puts ("This program is distributed under the same terms as Emacs");
 
   exit (GOOD);
 }
@@ -549,6 +551,9 @@
 
   print_language_names ();
 
+  puts ("");
+  puts ("Report bugs to bug-gnu-emacs@prep.ai.mit.edu");
+
   exit (GOOD);
 }
 
@@ -947,9 +952,6 @@
      because we want them ordered.  Let's do it now. */
   if (cxref_style)
     {
-      tagf = fopen (tagfile, append_to_tagfile ? "a" : "w");
-      if (tagf == NULL)
-	pfatal (tagfile);
       put_entries (head);
       exit (GOOD);
     }
@@ -982,7 +984,7 @@
       sprintf (cmd, "sort %s -o %s", tagfile, tagfile);
       exit (system (cmd));
     }
-  exit (GOOD);
+  return GOOD;
 }
 
 
@@ -4106,11 +4108,11 @@
 	    {
 	      *--p = '\0';
 #ifdef DOS_NT
-	      /* Assume CRLF->LF translation will be performed by Emacs
-		 when loading this file, so CRs won't appear in the buffer.
-		 It would be cleaner to compensate within Emacs;
-		 however, Emacs does not know how many CRs were deleted
-		 before any given point in the file.  */
+	     /* Assume CRLF->LF translation will be performed by Emacs
+		when loading this file, so CRs won't appear in the buffer.
+		It would be cleaner to compensate within Emacs;
+		however, Emacs does not know how many CRs were deleted
+		before any given point in the file.  */
 	      chars_deleted = 1;
 #else
 	      chars_deleted = 2;