#define or ||
#define TRUE 1
#define FALSE 0
-#define MAYBE (int)(srandom(time(NULL)),random()%2)
+#define MAYBE (int)((_srtime?0:(time(&_srtime),srandom(_srtime))),random()%2)
+#define WHOKNOWS (int)(srandom(time(NULL)),random()%2)
#define bool_str(I) (I?"TRUE":"FALSE")
#define boolean int
#define mem struct
#define _ISTACK struct _IStack { int I; int _23; list(_IStack); } *_Iatom,*_Istack=NULL;
#define _SSTACK struct _SStack { char *S; int _23; list(_SSTACK); } *_Satom,*_Sstack=NULL;
#define _FSTACK struct _FStack { FILE *F; int _23; list(_FSTACK); } *_Fatom,*_Fstack=NULL;
-
+#define _SRTIME time_t _srtime=0;
#define _NEW_(ATOM,STACK,TYPE) (create(ATOM,TYPE),ATOM->_23=1,push(ATOM,STACK);ATOM->_23||pop(ATOM,STACK)&&0;ATOM->_23--)
#define _NEW_I for _NEW_(_Iatom,_Istack,_IStack)
/* ------------------------------------------------------------------- */
/* Voila - here we go ! */
/* ------------------------------------------------------------------- */
-#define define_cll1_globals _ISTACK _SSTACK _FSTACK _MSTACK _RSTACK //_QSTACK
-#define implement_cll1_functions _ECHO /* _GET_STR _GET_MEM */
-#define implement_cll1_library define_cll1_globals implement_cll1_functions
+#define define_cll1_globals _SRTIME _ISTACK _SSTACK _FSTACK _MSTACK _RSTACK //_QSTACK
+#define implement_cll1_functions _ECHO // _GET_STR _GET_MEM
+#define define_cll1_interfaces //_CAKE
+#define implement_cll1_library define_cll1_globals implement_cll1_functions define_cll1_interfaces
#define program implement_cll1_library int main(int argc, char **argv)
/* ------------------------------------------------------------------- */
#endif
program
{
- echo("Hello ",NULL,"world"," ! ");
- print("Hello","world",NULL,"!");
+ echo("Hello ",NULL," ","world"," ! ");
+ print("Hello", "world",NULL,"!");
+
+ print(MAYBE ? "Hello" : "Hi", WHOKNOWS ? "world" : "friend", MAYBE ? "!" : "?");
}