X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fboolean.c;h=77d1967d16ba7bbc9d6f943c7ca119526a27dfa0;hb=61ad8a2bf9aa7260d047255ed2bc0d79c67b8078;hp=ed44988b4d7d5294e3a85246f04e35fe69e915aa;hpb=9ae3b2218ffacd28b7bfccaa23d804fb0d399f9b;p=svn%2FCll1h%2F.git diff --git a/demos/boolean.c b/demos/boolean.c index ed44988..77d1967 100644 --- a/demos/boolean.c +++ b/demos/boolean.c @@ -4,7 +4,7 @@ program { const bool t = TRUE, f = FALSE; bool l, m = MAYBE; - def_str(s); + str s; print("TRUE and FALSE =", btoa(t and f) ); print("TRUE or FALSE =", btoa(t or f) ); @@ -17,6 +17,6 @@ program for_strs(s, "TRUE","false","yes","NO","True","FALSE","YES","no","Yes","No","1","0","abc","xyz","Eyes","Ears","rue","alse","oui","no","ano","ne"," ","NULL",NULL,EOL,"","ano","ne") { l = atob(s); - echo("\"", s, "\"\tmeans ", btoa(l),EOL); + echo("\"", s, "\"\tmeans ", btoa(l), EOL); } }