shrub/jets/e/trip.c
2015-06-23 21:29:11 -04:00

36 lines
479 B
C

/* j/5/trip.c
**
*/
#include "all.h"
/* functions
*/
u3_noun
u3qe_trip(u3_atom a)
{
if ( c3n == u3ud(a) ) {
return u3m_bail(c3__exit);
}
return u3qc_rip(3, a);
}
u3_noun
u3we_trip(u3_noun cor)
{
u3_noun a;
if ( (u3_none == (a = u3r_at(u3x_sam, cor))) ) {
return u3m_bail(c3__fail);
} else {
return u3qe_trip(a);
}
}
u3_atom
u3ke_trip(u3_noun a)
{
u3_atom b = u3qe_trip(a);
u3z(a);
return b;
}