shrub/jets/e/mink.c

48 lines
846 B
C
Raw Normal View History

2013-09-29 00:21:18 +04:00
/* j/5/mink.c
**
*/
#include "all.h"
2014-09-04 07:10:43 +04:00
2013-09-29 00:21:18 +04:00
2014-09-06 00:13:24 +04:00
u3_noun
2014-11-06 22:13:57 +03:00
u3we_mink(u3_noun cor)
2013-09-29 00:21:18 +04:00
{
2014-09-06 00:13:24 +04:00
u3_noun bus, fol, fly;
2013-09-29 00:21:18 +04:00
2014-11-18 00:56:51 +03:00
if ( c3n == u3r_mean(cor, u3x_sam_4, &bus,
2015-08-28 17:14:14 +03:00
u3x_sam_5, &fol,
u3x_sam_3, &fly,
0) )
2013-09-29 00:21:18 +04:00
{
2014-11-06 03:20:01 +03:00
return u3m_bail(c3__exit);
2013-09-29 00:21:18 +04:00
}
else {
2015-01-15 22:10:29 +03:00
u3_noun som;
som = u3n_nock_in(u3k(fly), u3k(bus), u3k(fol));
return som;
2013-09-29 00:21:18 +04:00
}
}
2016-02-02 22:52:10 +03:00
u3_noun
u3we_mick(u3_noun cor)
{
u3_noun bus, fol, sea;
if ( c3n == u3r_mean(cor, u3x_sam_4, &bus,
u3x_sam_5, &fol,
u3x_sam_3, &sea,
0) )
{
return u3m_bail(c3__exit);
}
else {
u3_noun som;
som = u3n_nock_it(u3k(sea), u3k(bus), u3k(fol));
return som;
}
}