mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 02:41:35 +03:00
b99b8969d9
Includes our first ever pass over the jets. Yikes.
33 lines
769 B
C
33 lines
769 B
C
/* j/5/mink.c
|
|
**
|
|
** This file is in the public domain.
|
|
*/
|
|
#include "all.h"
|
|
#include "../pit.h"
|
|
|
|
u2_weak // produce
|
|
j2_mb(Pt5, mink)(u2_wire wir_r,
|
|
u2_noun cor) // retain
|
|
{
|
|
u2_noun bus, fol, fly;
|
|
|
|
if ( u2_no == u2_mean(cor, u2_cv_sam_4, &bus,
|
|
u2_cv_sam_5, &fol,
|
|
u2_cv_sam_3, &fly,
|
|
0) )
|
|
{
|
|
return u2_bl_bail(wir_r, c3__exit);
|
|
}
|
|
else {
|
|
return u2_cn_mink(u2k(bus), u2k(fol), u2k(fly));
|
|
}
|
|
}
|
|
|
|
/* structures
|
|
*/
|
|
u2_ho_jet
|
|
j2_mbj(Pt5, mink)[] = {
|
|
{ ".2", c3__lite, j2_mb(Pt5, mink), Tier5, u2_none, u2_none },
|
|
{ }
|
|
};
|