diff options
author | ru <ru@FreeBSD.org> | 2003-06-18 12:57:43 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-06-18 12:57:43 +0000 |
commit | b0465e4534c37946b9f157053a91a25b88ee6c6f (patch) | |
tree | 92a83a9292c9ea3b8a8e235e830bf6581591579e /contrib/texinfo/util/install-info.c | |
parent | 1e2af4f2c82dd1396d247a2b5fe032b13c51189a (diff) | |
download | FreeBSD-src-b0465e4534c37946b9f157053a91a25b88ee6c6f.zip FreeBSD-src-b0465e4534c37946b9f157053a91a25b88ee6c6f.tar.gz |
Import of stripped down GNU texinfo 4.6
Diffstat (limited to 'contrib/texinfo/util/install-info.c')
-rw-r--r-- | contrib/texinfo/util/install-info.c | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/contrib/texinfo/util/install-info.c b/contrib/texinfo/util/install-info.c index 75fcba9..d346fb7 100644 --- a/contrib/texinfo/util/install-info.c +++ b/contrib/texinfo/util/install-info.c @@ -1,5 +1,5 @@ /* install-info -- create Info directory entry(ies) for an Info file. - $Id: install-info.c,v 1.7 2003/01/19 18:46:51 karl Exp $ + $Id: install-info.c,v 1.9 2003/05/19 13:10:59 karl Exp $ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. @@ -165,33 +165,6 @@ fatal (s1, s2, s3) xexit (1); } -/* Memory allocation and string operations. */ - -/* Like malloc but get fatal error if memory is exhausted. */ -void * -xmalloc (size) - unsigned int size; -{ - extern void *malloc (); - void *result = malloc (size); - if (result == NULL) - fatal (_("virtual memory exhausted"), 0, 0); - return result; -} - -/* Like realloc but get fatal error if memory is exhausted. */ -void * -xrealloc (obj, size) - void *obj; - unsigned int size; -{ - extern void *realloc (); - void *result = realloc (obj, size); - if (result == NULL) - fatal (_("virtual memory exhausted"), 0, 0); - return result; -} - /* Return a newly-allocated string whose contents concatenate those of S1, S2, S3. */ char * @@ -1397,7 +1370,7 @@ For more information about these matters, see the files named COPYING.\n"), } if (!spec || spec == entry->entry_sections_tail) continue; - + /* Subtract one because dir_lines is zero-based, but the `end_line' and `start_line' members are one-based. */ @@ -1442,6 +1415,7 @@ For more information about these matters, see the files named COPYING.\n"), entries_to_add, input_sections, compression_program); xexit (0); + return 0; /* Avoid bogus warnings. */ } /* Divide the text at DATA (of SIZE bytes) into lines. |