diff cbackend_c.rhope @ 123:4e4ecbca0b5d

Add bitwise and and or
author Mike Pavone <pavone@retrodev.com>
date Thu, 28 Oct 2010 21:05:24 -0400
parents cd25171e1bb2
children 50406500334d
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"] ]