diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-24 18:46:58 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-24 18:46:58 (GMT) |
commit | 0358fdc162eb0f2ae59636d7effd696e2aede85c (patch) | |
tree | b834618d0d5027f234720a0d2b1c54b5a7ac7693 /src | |
parent | 1d3c16da705df628cdeeb90cce0b7420a1fc092b (diff) | |
download | uscxml-0358fdc162eb0f2ae59636d7effd696e2aede85c.zip uscxml-0358fdc162eb0f2ae59636d7effd696e2aede85c.tar.gz uscxml-0358fdc162eb0f2ae59636d7effd696e2aede85c.tar.bz2 |
Disabled unused label warning
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/swig/php/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/bindings/swig/php/uscxmlNativePHP.php | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/bindings/swig/php/CMakeLists.txt b/src/bindings/swig/php/CMakeLists.txt index aa21910..8f6103d 100644 --- a/src/bindings/swig/php/CMakeLists.txt +++ b/src/bindings/swig/php/CMakeLists.txt @@ -11,7 +11,7 @@ endif() # copied from cmake's FindPHP4.cmake and adapted if(APPLE) # this is a hack for now - set(PHP_MODULE_CXX_FLAGS "${CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS} -Wl,-flat_namespace") + set(PHP_MODULE_CXX_FLAGS "${CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS} -Wl,-flat_namespace -Wno-unused-label") foreach(symbol __efree __emalloc diff --git a/src/bindings/swig/php/uscxmlNativePHP.php b/src/bindings/swig/php/uscxmlNativePHP.php index a0c8cd2..769ed4c 100644 --- a/src/bindings/swig/php/uscxmlNativePHP.php +++ b/src/bindings/swig/php/uscxmlNativePHP.php @@ -2,7 +2,7 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.9 + * Version 2.0.7 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -250,14 +250,15 @@ class Blob { return $this->_pData[$var]; } - function __construct($size_or_data,$size=null,$adopt=false) { + function __construct($size_or_data,$size=null,$mimeType=null,$adopt=false) { if (is_resource($size_or_data) && get_resource_type($size_or_data) === '_p_uscxml__Blob') { $this->_cPtr=$size_or_data; return; } switch (func_num_args()) { case 1: $this->_cPtr=new_Blob($size_or_data); break; - default: $this->_cPtr=new_Blob($size_or_data,$size,$adopt); + case 2: $this->_cPtr=new_Blob($size_or_data,$size); break; + default: $this->_cPtr=new_Blob($size_or_data,$size,$mimeType,$adopt); } } @@ -308,7 +309,7 @@ class Data { const INTERPRETED = Data_INTERPRETED; - function __construct($atom__or_data_or_dom=null,$type__or_size=null,$adopt=null) { + function __construct($atom__or_data_or_dom=null,$type__or_size=null,$mimeType=null,$adopt=null) { if (is_resource($atom__or_data_or_dom) && get_resource_type($atom__or_data_or_dom) === '_p_uscxml__Data') { $this->_cPtr=$atom__or_data_or_dom; return; @@ -317,7 +318,8 @@ class Data { case 0: $this->_cPtr=new_Data(); break; case 1: $this->_cPtr=new_Data($atom__or_data_or_dom); break; case 2: $this->_cPtr=new_Data($atom__or_data_or_dom,$type__or_size); break; - default: $this->_cPtr=new_Data($atom__or_data_or_dom,$type__or_size,$adopt); + case 3: $this->_cPtr=new_Data($atom__or_data_or_dom,$type__or_size,$mimeType); break; + default: $this->_cPtr=new_Data($atom__or_data_or_dom,$type__or_size,$mimeType,$adopt); } } |