Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 1997 20:57:10 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org, jkh@freefall.freebsd.org
Subject:   Re: cvs commit:  src/gnu/usr.bin/perl/x2p util.h
Message-ID:  <199701070957.UAA17963@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified:    gnu/usr.bin/perl/x2p  util.h
>  Log:
>  Remove bogus redeclaration of setenv().
>  Fixes make world failure #3 for today (part of an ongoing series).

Erm, the bogusness is primarily in <stdlib.h>.  <stdlib.h> declares a
nonstandard function setenv().  x2p has its own version of setenv().
This is incompatible with the library one (it returns void instead of
int and doesn't have an `overwrite' arg and doesn't have `const' args).
This was harmless because <stdlib.h> wasn't included together with
"util.h" where perl's version is declared.  x2p doesn't actually use
setenv() amyway.  An include of <stdlib.h> is now generated by yacc.
This is reasonable because the generated code now calls realloc().
The yacc changes came from Lite2.  x2p's setenv() seems to be bloat
from ../perl.  In ../perl, the name collision is handled by renaming
perl's setenv() to my_setenv().

Bruce



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