urbit/gen164/6/core.c
2014-01-06 12:37:42 -08:00

41 lines
1.1 KiB
C

/* j/6/core.c
**
** This file is in the public domain.
*/
#include "all.h"
#include "../pit.h"
/* functions
*/
u2_noun // transfer
j2_mby(Pt6, core)(u2_wire wir_r,
u2_noun pac, // retain
u2_noun con) // retain
{
if ( (c3__void == pac) ) {
return c3__void;
} else {
return u2_bt(wir_r, c3__core, u2_rx(wir_r, pac), u2_rx(wir_r, con));
}
}
u2_noun // transfer
j2_mb(Pt6, core)(u2_wire wir_r,
u2_noun cor) // retain
{
u2_noun pac, con;
if ( u2_no == u2_mean(cor, u2_cv_sam_2, &pac, u2_cv_sam_3, &con, 0) ) {
return u2_bl_bail(wir_r, c3__fail);
} else {
return j2_mby(Pt6, core)(wir_r, pac, con);
}
}
/* structures
*/
u2_ho_jet
j2_mbj(Pt6, core)[] = {
{ ".2", c3__hevy, j2_mb(Pt6, core), Tier6_a, u2_none, u2_none },
{ }
};