1
1
mirror of https://github.com/urbit/shrub.git synced 2024-12-17 23:32:56 +03:00
shrub/gen164/6/fine.c

46 lines
1.3 KiB
C
Raw Normal View History

2013-09-29 00:21:18 +04:00
/* j/6/fine.c
**
** This file is in the public domain.
*/
#include "all.h"
#include "../pit.h"
/* functions
*/
u2_noun // transfer
j2_mby(Pt6, fine)(u2_wire wir_r,
2013-09-29 00:21:18 +04:00
u2_noun fuv,
u2_noun lup, // retain
u2_noun mar) // retain
{
if ( (c3__void == lup) || (c3__void == mar) ) {
return c3__void;
} else {
return u2_bq(wir_r, c3__fine, u2_rx(wir_r, fuv),
u2_rx(wir_r, lup),
2013-09-29 00:21:18 +04:00
u2_rx(wir_r, mar));
}
}
u2_noun // transfer
j2_mb(Pt6, fine)(u2_wire wir_r,
2013-09-29 00:21:18 +04:00
u2_noun cor) // retain
{
u2_noun fuv, lup, mar;
if ( u2_no == u2_mean(cor, u2_cv_sam_2, &fuv,
u2_cv_sam_6, &lup,
2013-09-29 00:21:18 +04:00
u2_cv_sam_7, &mar, 0) ) {
return u2_bl_bail(wir_r, c3__fail);
} else {
return j2_mby(Pt6, fine)(wir_r, fuv, lup, mar);
}
}
/* structures
*/
u2_ho_jet
2013-09-29 00:21:18 +04:00
j2_mbj(Pt6, fine)[] = {
{ ".2", c3__hevy, j2_mb(Pt6, fine), Tier6_a, u2_none, u2_none },
{ }
};