From 032c12b70eab531d27898fbb8d00a5c499c5cb47 Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Sat, 18 Aug 2012 23:58:22 +0000 Subject: [PATCH] move signed char to the group of types for which no unsigned exist git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13657 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/c/c.swg | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Lib/c/c.swg b/Lib/c/c.swg index 7ac0e7bd8..b1a35e830 100644 --- a/Lib/c/c.swg +++ b/Lib/c/c.swg @@ -135,7 +135,7 @@ PRE short POST, PRE int POST, PRE long POST, PRE long long POST, PRE char POST, //this macro is necessary, because 'unsigned double' is not allowed. %define in_assignment_cast_unsigned_only(PRE, POST) -PRE float POST, PRE double POST "$1 = ($1_ltype) $input;" +PRE float POST, PRE double POST, PRE signed char POST "$1 = ($1_ltype) $input;" %enddef %define in_assignment_group(PRE) @@ -149,8 +149,6 @@ in_assignment_cast(,**); in_assignment_group(); in_assignment_group(const); -in_assignment_group(signed); -in_assignment_group(signed const); in_assignment_group(unsigned); in_assignment_group(unsigned const); @@ -366,7 +364,7 @@ PRE short POST, PRE int POST, PRE long POST, PRE long long POST, PRE char POST, //this macro is necessary, because 'unsigned double' is not allowed. %define out_assignment_no_cast_unsigned_only(PRE, POST) -PRE float POST, PRE double POST "$result = $1;" +PRE float POST, PRE double POST, PRE signed char POST "$result = $1;" %enddef %define out_assignment_group(PRE) @@ -380,8 +378,6 @@ out_assignment_no_cast(,**); out_assignment_group(); out_assignment_group(const); -out_assignment_group(signed); -out_assignment_group(signed const); out_assignment_group(unsigned); out_assignment_group(unsigned const);