__cpluscplus typo fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d4a9ac02c8
commit
a0cdda2db9
2 changed files with 3 additions and 3 deletions
|
|
@ -167,7 +167,7 @@
|
|||
SWIG_fail;
|
||||
}
|
||||
$2 = ($2_ltype) temp;
|
||||
#ifdef __cpluscplus
|
||||
#ifdef __cplusplus
|
||||
$1 = ($1_ltype) new char[$2+1];
|
||||
#else
|
||||
$1 = ($1_ltype) malloc($2+1);
|
||||
|
|
@ -204,7 +204,7 @@
|
|||
if (Tcl_GetLongFromObj(interp,$input,&n) != TCL_OK) {
|
||||
SWIG_fail;
|
||||
}
|
||||
#ifdef __cpluscplus
|
||||
#ifdef __cplusplus
|
||||
$1 = ($1_ltype) new char[n+1];
|
||||
$2 = ($2_ltype) new $*1_ltype;
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ short InstallConsole _ANSI_ARGS_((short fd));
|
|||
*----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifdef __cpluscplus
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
extern int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue