diff options
author | Aaron Crane <arc@cpan.org> | 2014-12-07 15:41:33 +0000 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2014-12-14 15:04:38 +0000 |
commit | 075eb5c9b6ef85efb89747446c485e936a61a207 (patch) | |
tree | 1f233b7c52c626423e7cfa5ed52a45cf363d8da4 /mathoms.c | |
parent | 3e8dbc7f06ff46f6041bf3820b4fc57a485a9418 (diff) | |
download | perl-075eb5c9b6ef85efb89747446c485e936a61a207.tar.gz |
makedef.pl: don't hard-code list of mathoms
It's easy enough to read the list out of mathoms.c directly, and this should
prevent almost all bugs of the sort that were fixed by
083750a56b7927292a4bf7b1bf64aa26dd2a6858. (Only names that don't begin with
"Perl_" will cause a problem.)
The list of names detected automatically may actually differ slightly from
the hard-coded list; for example, the definition of Perl_huge() is inside
"#if defined(HUGE_VAL) || (defined(USE_LONG_DOUBLE) && defined(HUGE_VALL))",
but the new code in makedef.pl ignores preprocessor conditions. However, the
list is used as names to *skip*, rather than to include, so it's not a
problem if makedef.pl is willing to skip names that it will never be asked
to include.
Diffstat (limited to 'mathoms.c')
-rw-r--r-- | mathoms.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,7 +24,8 @@ * versions of Perl. For binary or source compatibility reasons, though, * we cannot completely remove them from the core code. * - * REMEMBER to update makedef.pl when adding a function to mathoms.c!!! + * REMEMBER to update makedef.pl when adding a function to mathoms.c whose + * name doesn't begin with "Perl_". * * SMP - Oct. 24, 2005 * |