mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 04:11:49 +03:00
33 lines
515 B
C
33 lines
515 B
C
/* j/6/help.c
|
|
**
|
|
*/
|
|
#include "all.h"
|
|
|
|
|
|
/* functions
|
|
*/
|
|
u3_noun
|
|
u3qf_hint(u3_noun sag,
|
|
u3_noun tip)
|
|
{
|
|
if ( c3__void == tip ) {
|
|
return c3__void;
|
|
}
|
|
if ( c3__noun == tip ) {
|
|
return c3__noun;
|
|
}
|
|
else return u3nt(c3__hint, u3k(sag), u3k(tip));
|
|
}
|
|
u3_noun
|
|
u3wf_hint(u3_noun cor)
|
|
{
|
|
u3_noun sag, tip;
|
|
|
|
if ( c3n == u3r_mean(cor, u3x_sam_2, &sag, u3x_sam_3, &tip, 0) ) {
|
|
return u3m_bail(c3__fail);
|
|
} else {
|
|
return u3qf_hint(sag, tip);
|
|
}
|
|
}
|
|
|