Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 1999 00:44:32 -0800 (PST)
From:      asami@FreeBSD.ORG (Satoshi Asami)
To:        markm@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: another texinfo buglet?
Message-ID:  <199901150844.AAA25441@silvia.hip.berkeley.edu>
In-Reply-To: <199901150804.AAA25280@silvia.hip.berkeley.edu> (asami@cs.berkeley.edu)

next in thread | previous in thread | raw e-mail | index | archive | help
 * =======
 * ===> makeinfo
 * cc -O -pipe -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/local\" -I/usr/src/gnu/usr.bin/texinfo/makeinfo/../../../../contrib/texinfo/makeinfo -I/usr/src/gnu/usr.bin/texinfo/makeinfo/../../../../contrib/texinfo -I/usr/src/gnu/usr.bin/texinfo/makeinfo/../../../../contrib/texinfo/lib -I../libintl   -I/usr/obj/usr/src/tmp/usr/include -c /usr/src/gnu/usr.bin/texinfo/makeinfo/../../../../contrib/texinfo/makeinfo/makeinfo.c
 * /usr/src/gnu/usr.bin/texinfo/makeinfo/../../../../contrib/texinfo/makeinfo/makeinfo.c: In function `xrealloc':
 * /usr/src/gnu/usr.bin/texinfo/makeinfo/../../../../contrib/texinfo/makeinfo/makeinfo.c:1205: parse error before `void'
 *  :
 * =======

I looked into it a bit more.  This file is definitely corrupted.
These are the lines around 1205:

===
/* Like realloc (), but barfs if there isn't enough memory. */
void *
xrealloc (pointer, nbytes)
     void *pointer;
     unsigned int nbytes;
{
  void *temp;

  if (!pointer)
    temp = (void *)xmalloc (nbytes);
  else
    temp = (void *)realloc (pointer, nbytes);

/* If EXIT_VALUE is zero, print the full usage message to stdout.
   Otherwise, just say to use --help for more info.
   Then exit with EXIT_VALUE. */
void                                   <======= 1205
usage (exit_value)
     int exit_value;
{
  if (exit_value != 0)
    fprintf (stderr, _("Try `%s --help' for more information.\n"), progname);
  else
    printf (_("Usage: %s [OPTION]... TEXINFO-FILE...\n\
===

Line 1205 is the "void" before usage().  It looks like (at least) the
second half of xrealloc() is missing.

Satoshi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901150844.AAA25441>