shrub/gen164/5/trip.c

39 lines
945 B
C
Raw Normal View History

2013-09-29 00:21:18 +04:00
/* j/3/trip.c
**
** This file is in the public domain.
*/
#include "all.h"
#include "../pit.h"
/* functions
*/
u2_noun // transfer
j2_mby(Pt5, trip)(u2_wire wir_r,
2013-09-29 00:21:18 +04:00
u2_atom a) // retain
{
2014-06-03 09:07:32 +04:00
if ( u2_no == u2_stud(a) ) {
return u2_bl_bail(wir_r, c3__exit);
}
2013-09-29 00:21:18 +04:00
return j2_mbc(Pt3, rip)(wir_r, _3, a);
}
u2_noun // transfer
j2_mb(Pt5, trip)(u2_wire wir_r,
2013-09-29 00:21:18 +04:00
u2_noun cor) // retain
{
u2_noun a;
if ( (u2_none == (a = u2_frag(u2_cv_sam, cor))) ) {
return u2_bl_bail(wir_r, c3__fail);
} else {
return j2_mby(Pt5, trip)(wir_r, a);
}
}
/* structures
*/
u2_ho_jet
2013-09-29 00:21:18 +04:00
j2_mbj(Pt5, trip)[] = {
{ ".2", c3__hevy, j2_mb(Pt5, trip), Tier3, u2_none, u2_none },
{ }
};