[PATCH] __func__ and __FUNCTION__ in configure script
Kris Katterjohn
katterjohn at gmail.com
Tue Jul 17 05:29:57 EST 2007
Hi everybody, I'm Kris.
A little background: I've been contributing to Nmap for over a year, and
am an SoC student for it this summer.
But on to the patch..
Currently:
__func__ and __FUNCTION__ are checked for in the configure script, but
if one or the other doesn't exist, it is changed in defines.h.
Patched:
They are both still checked for in configure, but this is done in the
configure script as well:
1) If __func__ exists, it's used
2) If not, but __FUNCTION__ exists, define __func__ to __FUNCTION__
3) If neither exist, define __func__ to __FILE__
So this eliminates the need for the HAVE___func__ and HAVE___FUNCTION__
defines, the checking/modifying in defines.h, and it's all done in one
spot in configure.
I implemented pretty much the same thing in Nmap, and I thought it'd be
helpful here as well
I didn't run autoconf before I diff'd it because it probably would've
made the patch huge.
Please CC me on any replies, as I'm not subscribed.
Thanks,
Kris Katterjohn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: func.patch
Type: text/x-patch
Size: 2718 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20070716/94f64cac/attachment.bin
More information about the openssh-unix-dev
mailing list