summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/util
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-03-25 13:08:32 +0000
committerru <ru@FreeBSD.org>2002-03-25 13:08:32 +0000
commit5500b59c459afe212e4ee8d1c1847e051a9b7653 (patch)
treea83aebd48e0338a00136e68cbd70a1ef081175fc /contrib/texinfo/util
parent05f7b4b96773cc26ff78d5e68babd66861aa07a8 (diff)
downloadFreeBSD-src-5500b59c459afe212e4ee8d1c1847e051a9b7653.zip
FreeBSD-src-5500b59c459afe212e4ee8d1c1847e051a9b7653.tar.gz
Import of stripped down GNU texinfo 4.1
Diffstat (limited to 'contrib/texinfo/util')
-rw-r--r--contrib/texinfo/util/install-info.c32
-rw-r--r--contrib/texinfo/util/texindex.c7
2 files changed, 21 insertions, 18 deletions
diff --git a/contrib/texinfo/util/install-info.c b/contrib/texinfo/util/install-info.c
index c4b6c7f..9574919 100644
--- a/contrib/texinfo/util/install-info.c
+++ b/contrib/texinfo/util/install-info.c
@@ -1,7 +1,7 @@
/* install-info -- create Info directory entry(ies) for an Info file.
- $Id: install-info.c,v 1.48 1999/08/06 18:13:32 karl Exp $
+ $Id: install-info.c,v 1.52 2002/01/19 01:12:29 karl Exp $
- Copyright (C) 1996, 97, 98, 99 Free Software Foundation, Inc.
+ Copyright (C) 1996, 97, 98, 99, 2000, 01, 02 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -173,7 +173,7 @@ xmalloc (size)
extern void *malloc ();
void *result = malloc (size);
if (result == NULL)
- fatal (_("virtual memory exhausted"), 0);
+ fatal (_("virtual memory exhausted"), 0, 0);
return result;
}
@@ -186,7 +186,7 @@ xrealloc (obj, size)
extern void *realloc ();
void *result = realloc (obj, size);
if (result == NULL)
- fatal (_("virtual memory exhausted"), 0);
+ fatal (_("virtual memory exhausted"), 0, 0);
return result;
}
@@ -230,7 +230,7 @@ pfatal_with_name (name)
char *name;
{
char *s = concat ("", strerror (errno), _(" for %s"));
- fatal (s, name);
+ fatal (s, name, 0);
}
/* Given the full text of a menu entry, null terminated,
@@ -546,7 +546,7 @@ open_possibly_compressed_file (filename, create_callback,
/* Empty files don't set errno, so we get something like
"install-info: No error for foo", which is confusing. */
if (nread == 0)
- fatal (_("%s: empty file"), *opened_filename);
+ fatal (_("%s: empty file"), *opened_filename, 0);
pfatal_with_name (*opened_filename);
}
@@ -861,7 +861,7 @@ parse_input (lines, nlines, sections, entries)
reset_tail = 1;
if (start_of_this_entry != 0)
- fatal (_("START-INFO-DIR-ENTRY without matching END-INFO-DIR-ENTRY"));
+ fatal (_("START-INFO-DIR-ENTRY without matching END-INFO-DIR-ENTRY"), 0, 0);
start_of_this_entry = lines[i + 1].start;
}
else if (start_of_this_entry)
@@ -896,12 +896,13 @@ parse_input (lines, nlines, sections, entries)
else if (!strncmp ("END-INFO-DIR-ENTRY",
lines[i].start, lines[i].size)
&& sizeof ("END-INFO-DIR-ENTRY") - 1 == lines[i].size)
- fatal (_("END-INFO-DIR-ENTRY without matching START-INFO-DIR-ENTRY"));
+ fatal (_("END-INFO-DIR-ENTRY without matching START-INFO-DIR-ENTRY"), 0, 0);
}
}
}
if (start_of_this_entry != 0)
- fatal (_("START-INFO-DIR-ENTRY without matching END-INFO-DIR-ENTRY"));
+ fatal (_("START-INFO-DIR-ENTRY without matching END-INFO-DIR-ENTRY"),
+ 0, 0);
/* If we ignored the INFO-DIR-ENTRY directives, we need now go back
and plug the names of all the sections we found into every
@@ -1222,7 +1223,7 @@ main (argc, argv)
There is NO warranty. You may redistribute this software\n\
under the terms of the GNU General Public License.\n\
For more information about these matters, see the files named COPYING.\n"),
- "1999");
+ "2002");
xexit (0);
default:
@@ -1238,13 +1239,14 @@ For more information about these matters, see the files named COPYING.\n"),
else if (dirfile == 0)
dirfile = argv[optind];
else
- error (_("excess command line argument `%s'"), argv[optind]);
+ error (_("excess command line argument `%s'"), argv[optind], 0);
}
if (!infile)
- fatal (_("No input file specified; try --help for more information."));
+ fatal (_("No input file specified; try --help for more information."),
+ 0, 0);
if (!dirfile)
- fatal (_("No dir file specified; try --help for more information."));
+ fatal (_("No dir file specified; try --help for more information."), 0, 0);
/* Read the Info file and parse it into lines, unless we're deleting. */
if (!delete_flag)
@@ -1266,7 +1268,7 @@ For more information about these matters, see the files named COPYING.\n"),
something an installer should have to correct (it's a
problem for the maintainer), and there's no need to cause
subsequent parts of `make install' to fail. */
- warning (_("no info dir entry in `%s'"), infile);
+ warning (_("no info dir entry in `%s'"), infile, 0);
xexit (0);
}
@@ -1404,7 +1406,7 @@ For more information about these matters, see the files named COPYING.\n"),
}
if (delete_flag && !something_deleted && !quiet_flag)
- warning (_("no entries found for `%s'; nothing deleted"), infile);
+ warning (_("no entries found for `%s'; nothing deleted"), infile, 0);
output_dirfile (opened_dirfilename, dir_nlines, dir_lines, n_entries_to_add,
entries_to_add, input_sections, compression_program);
diff --git a/contrib/texinfo/util/texindex.c b/contrib/texinfo/util/texindex.c
index cd4bd0f..4e43d35 100644
--- a/contrib/texinfo/util/texindex.c
+++ b/contrib/texinfo/util/texindex.c
@@ -1,7 +1,8 @@
/* Process TeX index dribble output into an actual index.
- $Id: texindex.c,v 1.34 1999/08/06 17:03:14 karl Exp $
+ $Id: texindex.c,v 1.37 2002/01/19 01:12:54 karl Exp $
- Copyright (C) 1987, 91, 92, 96, 97, 98, 99 Free Software Foundation, Inc.
+ Copyright (C) 1987, 91, 92, 96, 97, 98, 99, 2000, 01, 02
+ Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -337,7 +338,7 @@ decode_command (argc, argv)
There is NO warranty. You may redistribute this software\n\
under the terms of the GNU General Public License.\n\
For more information about these matters, see the files named COPYING.\n"),
- "1999");
+ "2002");
xexit (0);
}
else if ((strcmp (arg, "--keep") == 0) ||
OpenPOWER on IntegriCloud