PHP: fix for the li_math testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
88a934d7f0
commit
a9f9b7cbbf
2 changed files with 27 additions and 0 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
Version 1.3.40 (in progress)
|
Version 1.3.40 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
2009-08-04: vmiklos
|
||||||
|
[PHP] Various mathematical functions (which would conflict
|
||||||
|
with the built-in PHP ones) are now automatically handled by
|
||||||
|
adding a 'c_' prefix.
|
||||||
|
|
||||||
2009-08-03: wsfulton
|
2009-08-03: wsfulton
|
||||||
[C#] The std::vector<T> implementation is improved and now uses $typemap such
|
[C#] The std::vector<T> implementation is improved and now uses $typemap such
|
||||||
that the proxy class for T no longer has to be specified in some macros
|
that the proxy class for T no longer has to be specified in some macros
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
#define PHPBN1(x) %builtinwarn("'" `x` "' conflicts with a built-in name in PHP",sourcefmt="%(lower)s") `x`
|
#define PHPBN1(x) %builtinwarn("'" `x` "' conflicts with a built-in name in PHP",sourcefmt="%(lower)s") `x`
|
||||||
#define PHPBN2(x) %builtinwarn("'" `x` "' conflicts with a built-in name in PHP") "::" `x`
|
#define PHPBN2(x) %builtinwarn("'" `x` "' conflicts with a built-in name in PHP") "::" `x`
|
||||||
|
#define PHPFN(x) %keywordwarn("'" `x` "' is a PHP built-in function, renamed as 'c_" `x` "'",sourcefmt="%(lower)s",%$isfunction,%$not %$ismember,rename="c_%s") `x`
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -455,7 +456,28 @@ PHPCN(SQLiteResult);
|
||||||
PHPCN(SQLiteUnbuffered);
|
PHPCN(SQLiteUnbuffered);
|
||||||
PHPCN(SQLiteException);
|
PHPCN(SQLiteException);
|
||||||
|
|
||||||
|
/* Built-in PHP functions (incomplete). */
|
||||||
|
PHPFN(cos);
|
||||||
|
PHPFN(sin);
|
||||||
|
PHPFN(tan);
|
||||||
|
PHPFN(acos);
|
||||||
|
PHPFN(asin);
|
||||||
|
PHPFN(atan);
|
||||||
|
PHPFN(atan2);
|
||||||
|
PHPFN(cosh);
|
||||||
|
PHPFN(sinh);
|
||||||
|
PHPFN(tanh);
|
||||||
|
PHPFN(exp);
|
||||||
|
PHPFN(log);
|
||||||
|
PHPFN(log10);
|
||||||
|
PHPFN(pow);
|
||||||
|
PHPFN(sqrt);
|
||||||
|
PHPFN(ceil);
|
||||||
|
PHPFN(floor);
|
||||||
|
PHPFN(fmod);
|
||||||
|
|
||||||
#undef PHPKW
|
#undef PHPKW
|
||||||
#undef PHPBN1
|
#undef PHPBN1
|
||||||
#undef PHPBN2
|
#undef PHPBN2
|
||||||
#undef PHPCN
|
#undef PHPCN
|
||||||
|
#undef PHPFN
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue