[PHP] For std_vector.i and std_map.i, rename empty() to is_empty()
since "empty" is a PHP reserved word. Based of patch from Mark Klein in SF#1943417. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
70ff1c3005
commit
b2cea3c42a
3 changed files with 12 additions and 1 deletions
|
|
@ -1,7 +1,12 @@
|
||||||
Version 1.3.37 (in progress)
|
Version 1.3.37 (in progress)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
2008-07-03: olly
|
2008-07-04: olly
|
||||||
|
[PHP] For std_vector.i and std_map.i, rename empty() to is_empty()
|
||||||
|
since "empty" is a PHP reserved word. Based of patch from Mark Klein
|
||||||
|
in SF#1943417.
|
||||||
|
|
||||||
|
2008-07-04: olly
|
||||||
[PHP] The deprecated command line option "-make" has been removed.
|
[PHP] The deprecated command line option "-make" has been removed.
|
||||||
Searches on Google codesearch suggest that nobody is using it now
|
Searches on Google codesearch suggest that nobody is using it now
|
||||||
anyway.
|
anyway.
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ namespace std {
|
||||||
map(const map<K,T> &);
|
map(const map<K,T> &);
|
||||||
|
|
||||||
unsigned int size() const;
|
unsigned int size() const;
|
||||||
|
%rename(is_empty) empty;
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
void clear();
|
void clear();
|
||||||
%extend {
|
%extend {
|
||||||
|
|
@ -69,6 +70,7 @@ namespace std {
|
||||||
map(const map<K,T> &);
|
map(const map<K,T> &);
|
||||||
|
|
||||||
unsigned int size() const;
|
unsigned int size() const;
|
||||||
|
%rename(is_empty) empty;
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
void clear();
|
void clear();
|
||||||
%extend {
|
%extend {
|
||||||
|
|
@ -105,6 +107,7 @@ namespace std {
|
||||||
map(const map<K,T> &);
|
map(const map<K,T> &);
|
||||||
|
|
||||||
unsigned int size() const;
|
unsigned int size() const;
|
||||||
|
%rename(is_empty) empty;
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
void clear();
|
void clear();
|
||||||
%extend {
|
%extend {
|
||||||
|
|
@ -142,6 +145,7 @@ namespace std {
|
||||||
map(const map<K,T> &);
|
map(const map<K,T> &);
|
||||||
|
|
||||||
unsigned int size() const;
|
unsigned int size() const;
|
||||||
|
%rename(is_empty) empty;
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
void clear();
|
void clear();
|
||||||
%extend {
|
%extend {
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ namespace std {
|
||||||
public:
|
public:
|
||||||
vector(unsigned int size = 0);
|
vector(unsigned int size = 0);
|
||||||
unsigned int size() const;
|
unsigned int size() const;
|
||||||
|
%rename(is_empty) empty;
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
void clear();
|
void clear();
|
||||||
%rename(push) push_back;
|
%rename(push) push_back;
|
||||||
|
|
@ -86,6 +87,7 @@ namespace std {
|
||||||
public:
|
public:
|
||||||
vector(unsigned int size = 0);
|
vector(unsigned int size = 0);
|
||||||
unsigned int size() const;
|
unsigned int size() const;
|
||||||
|
%rename(is_empty) empty;
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
void clear();
|
void clear();
|
||||||
%rename(push) push_back;
|
%rename(push) push_back;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue