mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-17 11:51:32 +03:00
49 lines
925 B
C
49 lines
925 B
C
/* j/6/flor.c
|
|
**
|
|
** This file is in the public domain.
|
|
*/
|
|
#include "all.h"
|
|
|
|
|
|
/* functions
|
|
*/
|
|
u2_noun
|
|
u2_cqf_flor(
|
|
u2_noun bos,
|
|
u2_noun nif)
|
|
{
|
|
if ( u2_yes == u2_cr_sing(1, u2h(bos)) ) {
|
|
if ( (u2_nul == u2t(bos)) ) {
|
|
return u2k(bos);
|
|
}
|
|
else return u2k(nif);
|
|
}
|
|
else {
|
|
if ( u2_yes == u2_cr_sing(1, u2h(nif)) ) {
|
|
if ( (u2_nul == u2t(nif)) ) {
|
|
return u2k(nif);
|
|
}
|
|
else return u2k(bos);
|
|
}
|
|
else {
|
|
return u2nq
|
|
(6,
|
|
u2k(bos),
|
|
u2nc(1, u2_yes),
|
|
u2k(nif));
|
|
}
|
|
}
|
|
}
|
|
u2_noun
|
|
u2_cwf_flor(
|
|
u2_noun cor)
|
|
{
|
|
u2_noun bos, nif;
|
|
|
|
if ( u2_no == u2_cr_mean(cor, u2_cv_sam_2, &bos, u2_cv_sam_3, &nif, 0) ) {
|
|
return u2_cm_bail(c3__fail);
|
|
} else {
|
|
return u2_cqf_flor(bos, nif);
|
|
}
|
|
}
|