diff options
author | Leif Middelschulte <leif.middelschulte@gmail.com> | 2012-08-18 23:58:22 +0000 |
---|---|---|
committer | Leif Middelschulte <leif.middelschulte@gmail.com> | 2012-08-18 23:58:22 +0000 |
commit | 032c12b70eab531d27898fbb8d00a5c499c5cb47 (patch) | |
tree | 593e207b611f3acd24a026a5410aeb17247eab33 | |
parent | 04efe5fe661078ef0109db08120fa1df19a5e82a (diff) | |
download | swig-032c12b70eab531d27898fbb8d00a5c499c5cb47.tar.gz |
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
-rw-r--r-- | Lib/c/c.swg | 8 |
1 files 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); |