urbit/jets/f/help.c

33 lines
515 B
C
Raw Normal View History

2017-09-28 03:47:26 +03:00
/* j/6/help.c
**
*/
#include "all.h"
/* functions
*/
u3_noun
2018-04-25 07:57:54 +03:00
u3qf_form(u3_noun sag,
2017-09-28 03:47:26 +03:00
u3_noun tip)
{
if ( c3__void == tip ) {
return c3__void;
}
2018-04-25 07:57:54 +03:00
if ( c3__noun == tip ) {
return c3__noun;
}
else return u3nt(c3__form, u3k(sag), u3k(tip));
2017-09-28 03:47:26 +03:00
}
u3_noun
2018-04-25 07:57:54 +03:00
u3wf_form(u3_noun cor)
2017-09-28 03:47:26 +03:00
{
u3_noun sag, tip;
if ( c3n == u3r_mean(cor, u3x_sam_2, &sag, u3x_sam_3, &tip, 0) ) {
return u3m_bail(c3__fail);
} else {
2018-04-25 07:57:54 +03:00
return u3qf_form(sag, tip);
2017-09-28 03:47:26 +03:00
}
}