diff options
author | Jürg Billeter <j@bitron.ch> | 2008-05-30 23:10:31 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-05-30 23:10:31 +0000 |
commit | f8ae444c1a135d8e6f05cfb62f815fe1c2390e06 (patch) | |
tree | 4478c485b73cefd30fe89b2b14d2b37f4ced5cbf /ccode/valaccodeunaryexpression.vala | |
parent | 33cb1ce35b493a59e0c5037c198bab58894651a8 (diff) | |
download | vala-f8ae444c1a135d8e6f05cfb62f815fe1c2390e06.tar.gz |
Improvements to nullable struct support
2008-05-31 Jürg Billeter <j@bitron.ch>
* ccode/valaccodeunaryexpression.vala:
* gobject/valaccodegenerator.vala:
* gobject/valaccodeinvocationexpressionbinding.vala:
Improvements to nullable struct support
svn path=/trunk/; revision=1503
Diffstat (limited to 'ccode/valaccodeunaryexpression.vala')
-rw-r--r-- | ccode/valaccodeunaryexpression.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ccode/valaccodeunaryexpression.vala b/ccode/valaccodeunaryexpression.vala index 4bf746668..82c37062c 100644 --- a/ccode/valaccodeunaryexpression.vala +++ b/ccode/valaccodeunaryexpression.vala @@ -51,7 +51,7 @@ public class Vala.CCodeUnaryExpression : CCodeExpression { } else if (operator == CCodeUnaryOperator.BITWISE_COMPLEMENT) { writer.write_string ("~"); } else if (operator == CCodeUnaryOperator.POINTER_INDIRECTION) { - writer.write_string ("*"); + writer.write_string ("(*"); } else if (operator == CCodeUnaryOperator.ADDRESS_OF) { writer.write_string ("&"); } else if (operator == CCodeUnaryOperator.PREFIX_INCREMENT) { @@ -66,6 +66,8 @@ public class Vala.CCodeUnaryExpression : CCodeExpression { writer.write_string ("++"); } else if (operator == CCodeUnaryOperator.POSTFIX_DECREMENT) { writer.write_string ("--"); + } else if (operator == CCodeUnaryOperator.POINTER_INDIRECTION) { + writer.write_string (")"); } } } |