Added documentation and _PG....macros_int functions to these files.
In PGcomplexmacros.pl I removed the automatic exportation of log() from
PGcomplexmacros.pl since
this (and sqrt() ) cause conflicts with CORE::log() and CORE::sqrt().
-- Warnings of the form "Ambiguous call to ..... resolved in favor of
CORE::... " etc.
The functions can always be accessed by Complex::log() and Complex::sqrt()
when needed for complex numbers.
There may be a more sophisticated method of exporting these calls which
would avoid the warnings and remain transparent both to those who are
using complex numbers and those who are not. If anyone has any ideas they
will be welcome. The code to modify is at the top of the
PGcomplexmacros.pl file inside the _PGcomplexmacros_init subroutine.
|