2013-09-29 00:21:18 +04:00
|
|
|
/* j/6/ut.c
|
|
|
|
**
|
|
|
|
** This file is in the public domain.
|
|
|
|
*/
|
|
|
|
#include "all.h"
|
|
|
|
#include "../pit.h"
|
|
|
|
|
2013-12-05 02:30:09 +04:00
|
|
|
// duck: create a duck core for mean.
|
|
|
|
//
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun
|
2014-09-03 07:36:29 +04:00
|
|
|
u2_cqfu_duck(
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun van,
|
|
|
|
u2_noun typ)
|
2013-12-05 02:30:09 +04:00
|
|
|
{
|
2014-08-21 01:18:34 +04:00
|
|
|
u2_noun von = u2_ci_molt(u2k(van), u2_cv_sam, u2k(typ), 0);
|
2014-08-21 01:24:29 +04:00
|
|
|
u2_noun ret = u2_cj_hook(u2k(von), "dune");
|
2013-12-05 02:30:09 +04:00
|
|
|
|
2014-08-21 01:18:34 +04:00
|
|
|
u2z(von);
|
2013-12-05 02:30:09 +04:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
// dung: create a dunk core for mean (noun caption)
|
|
|
|
//
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun
|
2014-09-03 07:36:29 +04:00
|
|
|
u2_cqfu_dung(
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun van,
|
|
|
|
u2_noun paz,
|
|
|
|
u2_noun typ)
|
2013-12-05 02:30:09 +04:00
|
|
|
{
|
2014-08-21 01:18:34 +04:00
|
|
|
u2_noun von = u2_ci_molt(u2k(van), u2_cv_sam, u2k(typ), 0);
|
2014-08-21 01:24:29 +04:00
|
|
|
u2_noun duq = u2_cj_hook(u2k(von), "dunk");
|
2014-08-21 01:18:34 +04:00
|
|
|
u2_noun ret = u2_ci_molt(u2k(duq), u2_cv_sam, u2k(paz), 0);
|
2013-12-05 02:30:09 +04:00
|
|
|
|
2014-08-21 01:18:34 +04:00
|
|
|
u2z(duq);
|
|
|
|
u2z(von);
|
2013-12-05 02:30:09 +04:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2013-09-29 00:21:18 +04:00
|
|
|
// dunq: create a dunk core for mean
|
|
|
|
//
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun
|
2014-09-03 07:36:29 +04:00
|
|
|
u2_cqfu_dunq(
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun van,
|
|
|
|
const c3_c* paz_c,
|
|
|
|
u2_noun typ)
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
2014-08-21 01:18:34 +04:00
|
|
|
u2_noun von = u2_ci_molt(u2k(van), u2_cv_sam, u2k(typ), 0);
|
2014-08-21 01:24:29 +04:00
|
|
|
u2_noun duq = u2_cj_hook(u2k(von), "dunk");
|
2014-08-21 01:18:34 +04:00
|
|
|
u2_noun paz = u2_ci_string(paz_c);
|
|
|
|
u2_noun ret = u2_ci_molt(u2k(duq), u2_cv_sam, u2k(paz), 0);
|
|
|
|
|
|
|
|
u2z(paz);
|
|
|
|
u2z(duq);
|
|
|
|
u2z(von);
|
2013-09-29 00:21:18 +04:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
// shew: create a show core for mean
|
|
|
|
//
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun
|
2014-09-03 07:36:29 +04:00
|
|
|
u2_cqfu_shew(
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun van,
|
|
|
|
u2_noun mol)
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
2014-08-21 01:24:29 +04:00
|
|
|
u2_noun sho = u2_cj_hook(u2k(van), "show");
|
2014-08-21 01:18:34 +04:00
|
|
|
u2_noun ret = u2_ci_molt(u2k(sho), u2_cv_sam, u2k(mol), 0);
|
2014-04-22 05:22:11 +04:00
|
|
|
|
2014-08-21 01:18:34 +04:00
|
|
|
u2z(sho);
|
|
|
|
u2z(mol);
|
2013-09-29 00:21:18 +04:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
// shep: show with caption and style
|
|
|
|
//
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun
|
2014-09-03 07:36:29 +04:00
|
|
|
u2_cqfu_shep(
|
2014-09-04 01:33:18 +04:00
|
|
|
u2_noun van,
|
|
|
|
const c3_c* paz_c,
|
|
|
|
u2_noun sty,
|
|
|
|
u2_noun mol)
|
2013-09-29 00:21:18 +04:00
|
|
|
{
|
2014-09-03 07:36:29 +04:00
|
|
|
return u2_cqfu_shew
|
2014-08-21 01:18:34 +04:00
|
|
|
(van,
|
|
|
|
u2nc
|
|
|
|
(u2nc('c', u2_ci_string(paz_c)),
|
|
|
|
u2nc(u2k(sty), mol)));
|
2013-09-29 00:21:18 +04:00
|
|
|
}
|
|
|
|
|