shrub/gen164/2/drop.c
2014-08-19 17:49:16 -04:00

40 lines
823 B
C

/* j/2/drop.c
**
** This file is in the public domain.
*/
#include "all.h"
#include "../pit.h"
/* functions
*/
u2_weak // transfer
j2_mbc(Pt2, drop)(u2_noun a) // retain
{
if ( 0 == a ) {
return u2_nul;
}
else {
return u2nc(0, u2k(u2t(a)));
}
}
u2_noun // transfer
j2_mb(Pt2, drop)(u2_noun cor) // retain
{
u2_noun a;
if ( u2_none == (a = u2_cr_at(u2_cv_sam, cor)) ) {
return u2_none;
} else {
return j2_mbc(Pt2, drop)(a);
}
}
/* structures
*/
u2_ho_jet
j2_mbj(Pt2, drop)[] = {
{ ".2", c3__lite, j2_mb(Pt2, drop), Tier2, u2_none, u2_none },
{ }
};