#define or ||
#define TRUE 1
#define FALSE 0
+#define bool_str(I) (I?"TRUE":"FALSE")
+#define boolean int
+#define mem struct
+#define construct struct
/* ------------------------------------------------------------------- */
/* 2. C<<1 basic data types - updated 2008-01-07 by xCh. */
/* ------------------------------------------------------------------- */
+#define Create_str(ID,INIT) char *ID=INIT
+#define Define_str(ID) char *ID=NULL
+#define Create_mem(ID,TYPE) struct TYPE *ID=get_mem(TYPE)
+#define Create_mem_in_context(ID,TYPE,CONTEXT) struct TYPE *ID=get_mem_in_context(TYPE,CONTEXT)
+#define Define_mem(ID,TYPE) struct TYPE *ID=NULL
+#define Define_mems(ID1,I2,TYPE) Define_mem(ID1,TYPE);Define_mem(ID2,TYPE)
-#define Create_str(ID,STRATOM) char *ID=get_str(STRATOM);
-#define Create_mem()
+/* .... well.. ehm.. not very useful... :-) */
+#define Create_var(ID,TYPE,INIT) TYPE ID=INIT
+#define Define_var(ID,TYPE) TYPE ID
/* ------------------------------------------------------------------- */
#define list(T) struct T *_next
#define tree(T) struct T *_next;struct T *_seek
--- /dev/null
+#include "cll1.h"
+
+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) );
+}