mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-03 14:37:05 +03:00
9edda1bb73
fixes #294
36 lines
479 B
C
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;
|
|
}
|