本文整理汇总了C++中op_def_end函数的典型用法代码示例。如果您正苦于以下问题:C++ op_def_end函数的具体用法?C++ op_def_end怎么用?C++ op_def_end使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了op_def_end函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: op_def_end
/* ------ Initialization procedure ------ */
const op_def zfont_op_defs[] =
{
{"0currentfont", zcurrentfont},
{"2makefont", zmakefont},
{"2scalefont", zscalefont},
{"1setfont", zsetfont},
{"0cachestatus", zcachestatus},
{"1setcachelimit", zsetcachelimit},
{"1setcacheparams", zsetcacheparams},
{"0currentcacheparams", zcurrentcacheparams},
{"1.registerfont", zregisterfont},
{"1.setupUnicodeDecoder", zsetupUnicodeDecoder},
op_def_end(zfont_init)
};
/* ------ Subroutines ------ */
/* Validate a font parameter. */
int
font_param(const ref * pfdict, gs_font ** ppfont)
{ /*
* Check that pfdict is a read-only dictionary, that it has a FID
* entry whose value is a fontID, and that the fontID points to a
* gs_font structure whose associated PostScript dictionary is
* pfdict.
*/
ref *pid;
gs_font *pfont;
开发者ID:jonathan-mui,项目名称:ruby-ghostscript,代码行数:30,代码来源:zfont.c
示例2: zTBCPE
/* <source> <dict> TBCPEncode/filter <file> */
static int
zTBCPE(i_ctx_t *i_ctx_p)
{
return filter_write_simple(i_ctx_p, &s_TBCPE_template);
}
/* <target> TBCPDecode/filter <file> */
/* <target> <dict> TBCPDecode/filter <file> */
static int
zTBCPD(i_ctx_t *i_ctx_p)
{
stream_BCPD_state state;
state.signal_interrupt = no_bcp_signal_interrupt;
state.request_status = no_bcp_request_status;
return filter_read(i_ctx_p, 0, &s_TBCPD_template, (stream_state *)&state, 0);
}
/* ------ Initialization procedure ------ */
const op_def zfbcp_op_defs[] =
{
op_def_begin_filter(),
{"1BCPEncode", zBCPE},
{"1BCPDecode", zBCPD},
{"1TBCPEncode", zTBCPE},
{"1TBCPDecode", zTBCPD},
op_def_end(0)
};
开发者ID:MasterPlexus,项目名称:vendor_goldenve,代码行数:30,代码来源:zfbcp.c
示例3: check_type
{
os_ptr op = osp;
int code;
check_type(op[-3], t_integer);
check_type(op[-2], t_integer);
check_write_type(*op, t_string);
if (r_size(op) < 8)
return_error(gs_error_rangecheck);
code = encode_binary_token(i_ctx_p, op - 1, &op[-3].value.intval,
&op[-2].value.intval, op->value.bytes);
if (code < 0)
return code;
op[-1] = *op;
r_set_size(op - 1, 8);
pop(1);
return 0;
}
/* ------ Initialization procedure ------ */
const op_def zbseq_l2_op_defs[] =
{
op_def_begin_level2(),
{"1.installsystemnames", zinstallsystemnames},
{"0currentobjectformat", zcurrentobjectformat},
{"1setobjectformat", zsetobjectformat},
{"4.bosobject", zbosobject},
op_def_end(zbseq_init)
};
开发者ID:computersforpeace,项目名称:ghostpdl,代码行数:30,代码来源:zbseq.c
注:本文中的op_def_end函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论