Corrected __cpluscplus typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cd940e3a13
commit
64bd8a0660
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@
|
||||||
%define %cstring_output_maxsize(TYPEMAP, SIZE)
|
%define %cstring_output_maxsize(TYPEMAP, SIZE)
|
||||||
%typemap(in) (TYPEMAP, SIZE) {
|
%typemap(in) (TYPEMAP, SIZE) {
|
||||||
$2 = caml_val_long($input);
|
$2 = caml_val_long($input);
|
||||||
#ifdef __cpluscplus
|
#ifdef __cplusplus
|
||||||
$1 = ($1_ltype) new char[$2+1];
|
$1 = ($1_ltype) new char[$2+1];
|
||||||
#else
|
#else
|
||||||
$1 = ($1_ltype) malloc($2+1);
|
$1 = ($1_ltype) malloc($2+1);
|
||||||
|
|
@ -189,7 +189,7 @@
|
||||||
%define %cstring_output_withsize(TYPEMAP, SIZE)
|
%define %cstring_output_withsize(TYPEMAP, SIZE)
|
||||||
%typemap(in) (TYPEMAP, SIZE) {
|
%typemap(in) (TYPEMAP, SIZE) {
|
||||||
int n = caml_val_long($input);
|
int n = caml_val_long($input);
|
||||||
#ifdef __cpluscplus
|
#ifdef __cplusplus
|
||||||
$1 = ($1_ltype) new char[n+1];
|
$1 = ($1_ltype) new char[n+1];
|
||||||
$2 = ($2_ltype) new $*1_ltype;
|
$2 = ($2_ltype) new $*1_ltype;
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue