mirror of
https://github.com/urbit/shrub.git
synced 2024-12-17 07:14:52 +03:00
b99b8969d9
Includes our first ever pass over the jets. Yikes.
30 lines
603 B
C
30 lines
603 B
C
/* j/3/mug.c
|
|
**
|
|
** This file is in the public domain.
|
|
*/
|
|
#include "all.h"
|
|
#include "../pit.h"
|
|
|
|
/* functions
|
|
*/
|
|
u2_weak // transfer
|
|
j2_mb(Pt3, mug)(u2_wire wir_r,
|
|
u2_noun cor) // retain
|
|
{
|
|
u2_noun sam;
|
|
|
|
if ( u2_none == (sam = u2_frag(u2_cv_sam, cor)) ) {
|
|
return u2_bl_bail(wir_r, c3__exit);
|
|
} else {
|
|
return u2_mug(sam);
|
|
}
|
|
}
|
|
|
|
/* structures
|
|
*/
|
|
u2_ho_jet
|
|
j2_mbj(Pt3, mug)[] = {
|
|
{ ".2", c3__lite, j2_mb(Pt3, mug), Tier3, u2_none, u2_none },
|
|
{ }
|
|
};
|