Make the char we use to instantiate single character constants static, as
PHP doesn't appear to take a copy. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9406 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
da3dab3777
commit
fa8bf1b870
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@
|
|||
"REGISTER_DOUBLE_CONSTANT(\"$symname\", $value, CONST_CS | CONST_PERSISTENT);";
|
||||
|
||||
%typemap(consttab) char {
|
||||
char swig_char = $value;
|
||||
static char swig_char = $value;
|
||||
REGISTER_STRINGL_CONSTANT("$symname", &swig_char, 1, CONST_CS | CONST_PERSISTENT);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue