minor formatting changes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11996 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2535297efb
commit
ff8f6b5c66
2 changed files with 7 additions and 11 deletions
|
|
@ -147,8 +147,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
%define Name ## _mutable(TYPEMAP,EXP...)
|
%define Name ## _mutable(TYPEMAP,EXP...)
|
||||||
%typemap(in,noblock=1,fragment=#SWIG_AsCharPtrAndSize) TYPEMAP
|
%typemap(in,noblock=1,fragment=#SWIG_AsCharPtrAndSize) TYPEMAP (int res, Char *t = 0, size_t n = 0, int alloc = 0, size_t expansion = 0) {
|
||||||
(int res, Char* t = 0, size_t n = 0, int alloc = 0, size_t expansion = 0) {
|
|
||||||
#if #EXP != ""
|
#if #EXP != ""
|
||||||
expansion += EXP;
|
expansion += EXP;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
/* out */
|
/* out */
|
||||||
|
|
||||||
%typemap(out,noblock=1,fragment=#SWIG_FromCharPtr) Char *, const Char* {
|
%typemap(out,noblock=1,fragment=#SWIG_FromCharPtr) Char *, const Char * {
|
||||||
%set_output(SWIG_FromCharPtr((const Char *)$1));
|
%set_output(SWIG_FromCharPtr((const Char *)$1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
|
|
||||||
/* varout */
|
/* varout */
|
||||||
|
|
||||||
%typemap(varout,noblock=1,fragment=#SWIG_FromCharPtr) Char*, const Char* {
|
%typemap(varout,noblock=1,fragment=#SWIG_FromCharPtr) Char *, const Char * {
|
||||||
%set_varoutput(SWIG_FromCharPtr($1));
|
%set_varoutput(SWIG_FromCharPtr($1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -165,8 +165,7 @@
|
||||||
|
|
||||||
/* directorout */
|
/* directorout */
|
||||||
|
|
||||||
%typemap(directorout,noblock=1,fragment=#SWIG_AsCharPtr,warning=SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG)
|
%typemap(directorout,noblock=1,fragment=#SWIG_AsCharPtr,warning=SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG) Char * (int res, Char *buf = 0, int alloc = SWIG_NEWOBJ) {
|
||||||
Char * (int res, Char* buf = 0, int alloc = SWIG_NEWOBJ) {
|
|
||||||
res = SWIG_AsCharPtr($input, &buf, &alloc);
|
res = SWIG_AsCharPtr($input, &buf, &alloc);
|
||||||
if (!SWIG_IsOK(res)) {
|
if (!SWIG_IsOK(res)) {
|
||||||
%dirout_fail(res, "$type");
|
%dirout_fail(res, "$type");
|
||||||
|
|
@ -184,9 +183,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
%typemap(directorout,noblock=1,fragment=#SWIG_AsCharPtr,warning=SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG)
|
%typemap(directorout,noblock=1,fragment=#SWIG_AsCharPtr,warning=SWIGWARN_TYPEMAP_DIRECTOROUT_PTR_MSG) Char *const& (int res, Char *buf = 0, int alloc = SWIG_NEWOBJ), Char const*const& (int res, Char *buf = 0, int alloc = SWIG_NEWOBJ) {
|
||||||
Char * const& (int res, Char* buf = 0, int alloc = SWIG_NEWOBJ),
|
|
||||||
Char const* const& (int res, Char* buf = 0, int alloc = SWIG_NEWOBJ) {
|
|
||||||
res = SWIG_AsCharPtr($input, &buf, &alloc);
|
res = SWIG_AsCharPtr($input, &buf, &alloc);
|
||||||
if (!SWIG_IsOK(res)) {
|
if (!SWIG_IsOK(res)) {
|
||||||
%dirout_fail(res, "$type");
|
%dirout_fail(res, "$type");
|
||||||
|
|
@ -226,8 +223,8 @@
|
||||||
* Unknown size const Character array Char[ANY] handling
|
* Unknown size const Character array Char[ANY] handling
|
||||||
* ------------------------------------------------------------ */
|
* ------------------------------------------------------------ */
|
||||||
|
|
||||||
%apply Char* { Char [] };
|
%apply Char * { Char [] };
|
||||||
%apply const Char* { const Char [] };
|
%apply const Char * { const Char [] };
|
||||||
|
|
||||||
%typemap(varin,noblock=1,warning="462:Unable to set variable of type Char []") Char []
|
%typemap(varin,noblock=1,warning="462:Unable to set variable of type Char []") Char []
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue