2013-09-29 00:21:18 +04:00
|
|
|
/* j/6/type.c
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* new template for type switching
|
|
|
|
*/
|
|
|
|
{
|
2014-09-06 00:13:24 +04:00
|
|
|
u3_noun p_sut, q_sut, r_sut;
|
2013-09-29 00:21:18 +04:00
|
|
|
|
2014-11-05 04:18:47 +03:00
|
|
|
if ( c3n == u3du(sut) ) switch ( sut ) {
|
2014-11-06 03:20:01 +03:00
|
|
|
default: return u3m_bail(c3__fail);
|
2013-09-29 00:21:18 +04:00
|
|
|
|
2014-04-22 05:22:11 +04:00
|
|
|
case c3__noun:
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
case c3__void:
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
2014-09-06 00:13:24 +04:00
|
|
|
else switch ( u3h(sut) ) {
|
2014-11-06 03:20:01 +03:00
|
|
|
default: return u3m_bail(c3__fail);
|
2013-09-29 00:21:18 +04:00
|
|
|
|
2015-12-28 00:36:49 +03:00
|
|
|
case c3__atom: u3x_cell(u3t(sut), &p_sut, &q_sut);
|
2015-12-27 23:17:04 +03:00
|
|
|
{
|
|
|
|
}
|
2014-11-06 03:20:01 +03:00
|
|
|
case c3__cell: u3x_cell(u3t(sut), &p_sut, &q_sut);
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
|
|
|
}
|
2014-11-06 03:20:01 +03:00
|
|
|
case c3__core: u3x_cell(u3t(sut), &p_sut, &q_sut);
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
|
|
|
}
|
2014-11-06 03:20:01 +03:00
|
|
|
case c3__face: u3x_cell(u3t(sut), &p_sut, &q_sut);
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
|
|
|
}
|
2016-01-14 12:52:50 +03:00
|
|
|
case c3__fork: p_sut = u3t(sut);
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
|
|
|
}
|
2018-05-25 01:40:28 +03:00
|
|
|
case c3__hint: u3x_cell(u3t(sut), &p_sut, &q_sut);
|
|
|
|
{
|
|
|
|
}
|
|
|
|
case c3__hold: u3x_cell(u3t(sut), &p_sut, &q_sut);
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|