summaryrefslogtreecommitdiff
path: root/Lib/lua/wchar.i
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2010-04-23 06:44:47 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2010-04-23 06:44:47 +0000
commit2535297efbc72e857ac0865a4bd3e0e4ca331ca2 (patch)
tree80c195b333f01b02c3ddd4c529534d4454e57eb3 /Lib/lua/wchar.i
parentbdea09ed83828592b08b1151e0f14517cccd8b68 (diff)
downloadswig-2535297efbc72e857ac0865a4bd3e0e4ca331ca2.tar.gz
minor formatting change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11995 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/lua/wchar.i')
-rw-r--r--Lib/lua/wchar.i8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/lua/wchar.i b/Lib/lua/wchar.i
index 02b5428be..92f7ed0e2 100644
--- a/Lib/lua/wchar.i
+++ b/Lib/lua/wchar.i
@@ -12,11 +12,11 @@
%{
#include <stdlib.h>
-wchar_t* str2wstr(const char* str, int len)
+wchar_t* str2wstr(const char *str, int len)
{
wchar_t* p;
if (str==0 || len<1) return 0;
- p=(wchar*)malloc((len+1)*sizeof(wchar_t));
+ p=(wchar *)malloc((len+1)*sizeof(wchar_t));
if (p==0) return 0;
if (mbstowcs(p, str, len)==-1)
{
@@ -28,13 +28,13 @@ wchar_t* str2wstr(const char* str, int len)
}
%}
-%typemap(in, checkfn="SWIG_lua_isnilstring", fragment="SWIG_lua_isnilstring") wchar_t*
+%typemap(in, checkfn="SWIG_lua_isnilstring", fragment="SWIG_lua_isnilstring") wchar_t *
%{
$1 = str2wstr(lua_tostring( L, $input ),lua_strlen( L, $input ));
if ($1==0) {lua_pushfstring(L,"Error in converting to wchar (arg %d)",$input);goto fail;}
%}
-%typemap(freearg) wchar_t*
+%typemap(freearg) wchar_t *
%{
free($1);
%}