Mercurial > repos > rhope
changeset 123:4e4ecbca0b5d
Add bitwise and and or
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 28 Oct 2010 21:05:24 -0400 |
parents | 7361d70fbba6 |
children | 8aedae4f4ddd |
files | cbackend_c.rhope |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/cbackend_c.rhope Thu Oct 28 21:04:44 2010 -0400 +++ b/cbackend_c.rhope Thu Oct 28 21:05:24 2010 -0400 @@ -501,6 +501,16 @@ out <- [func]Add Operator Statement[source1,source2,dest," >> "] } +BitAnd@C Function[func,source1,source2,dest:out] +{ + out <- [func]Add Operator Statement[source1,source2,dest," & "] +} + +BitOr@C Function[func,source1,source2,dest:out] +{ + out <- [func]Add Operator Statement[source1,source2,dest," | "] +} + CompLess@C Function[func,source1,source2,dest:out] { out <- [func]Add Operator Statement[source1,source2,dest," < "] @@ -634,6 +644,7 @@ + Set Field Null@C Function[func,var,field:out] { out <- [func]Add Statement[ [[func]Field Result[var,field]]Append[" = NULL"] ]