mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-21 13:51:50 +03:00
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
|
/* 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,
|
||
|
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),
|
||
|
u2_rx(wir_r, mar));
|
||
|
}
|
||
|
}
|
||
|
u2_noun // transfer
|
||
|
j2_mb(Pt6, fine)(u2_wire wir_r,
|
||
|
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,
|
||
|
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
|
||
|
j2_mbj(Pt6, fine)[] = {
|
||
|
{ ".2", c3__hevy, j2_mb(Pt6, fine), Tier6_a, u2_none, u2_none },
|
||
|
{ }
|
||
|
};
|