# HG changeset patch # User Francesco Potort # Date 844264884 0 # Node ID d50369f4bb41fa96c756b2cbd92f370ef96a65ba # Parent e311d5372d8c9d3bf4d9f8191f0394803ac5f3c9 * 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. diff -r e311d5372d8c -r d50369f4bb41 lib-src/etags.c --- 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;