urbit/j/6/bull.c
2014-09-05 13:13:24 -07:00

35 lines
617 B
C

/* j/6/bull.c
**
** This file is in the public domain.
*/
#include "all.h"
/* functions
*/
u3_noun
u3_cqf_bull(
u3_noun bid,
u3_noun der)
{
if ( (c3__void == der) ||
(c3__void == u3t(u3t(u3t(bid)))) )
{
return c3__void;
}
else return u3nt
(c3__bull, u3k(bid), u3k(der));
}
u3_noun
u3_cwf_bull(
u3_noun cor)
{
u3_noun bid, der;
if ( u3_no == u3_cr_mean(cor, u3_cv_sam_2, &bid, u3_cv_sam_3, &der, 0) ) {
return u3_cm_bail(c3__fail);
} else {
return u3_cqf_bull(bid, der);
}
}