summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì <pot@gnu.org>1996-10-02 14:01:24 +0000
committerFrancesco Potortì <pot@gnu.org>1996-10-02 14:01:24 +0000
commitff1960e4aebe5c3c6ad53b080281beff25b762af (patch)
treed6d970dcf40d7754b61f3ef8c52b726ba47a5397 /lib-src
parentc995557c2d1dc9d01c48a1de427d54aa531ccf31 (diff)
downloademacs-ff1960e4aebe5c3c6ad53b080281beff25b762af.tar.gz
* 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.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 536ca567f18..1e66de77a9f 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -31,7 +31,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
* 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 @@ Fortran is tried first; if no tags are found, C is tried next.");
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 @@ are. Relative ones are stored relative to the output file's directory.");
print_language_names ();
+ puts ("");
+ puts ("Report bugs to bug-gnu-emacs@prep.ai.mit.edu");
+
exit (GOOD);
}
@@ -947,9 +952,6 @@ main (argc, argv)
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 @@ main (argc, argv)
sprintf (cmd, "sort %s -o %s", tagfile, tagfile);
exit (system (cmd));
}
- exit (GOOD);
+ return GOOD;
}
@@ -4106,11 +4108,11 @@ readline_internal (linebuffer, stream)
{
*--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;