X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fboolean.c;h=aee578c514ecff1c3823044513809acf27ac65d1;hb=005431b86f12649bcb4e2dd230c8ef4d4347cd35;hp=838e31c44789501a0058e74167b13f1913c72e57;hpb=099b0ca0180a985138b03ed81290e7268e051756;p=svn%2FCll1h%2F.git diff --git a/demos/boolean.c b/demos/boolean.c index 838e31c..aee578c 100644 --- a/demos/boolean.c +++ b/demos/boolean.c @@ -2,10 +2,13 @@ program { - boolean t=TRUE,f=FALSE; - - printf("TRUE and FALSE = %s", bool_str(t and f) ); - printf(",TRUE or FALSE = %s", bool_str(t or f) ); - printf(",not FALSE = %s", bool_str(not f) ); - printf(",not TRUE = %s\n", bool_str(not t) ); + boolean t = TRUE, f = FALSE, m = MAYBE; + + print("TRUE and FALSE = ", bool_str(t and f) ); + print("TRUE or FALSE = ", bool_str(t or f) ); + print("TRUE and MAYBE = ", bool_str(t and m) ); + print("FALSE or MAYBE = ", bool_str(t or m) ); + print("not FALSE = ", bool_str(not f) ); + print("not TRUE = ", bool_str(not t) ); + print("not MAYBE = ", bool_str(not m) ); }