示例#1
0
static int lua_kpathsea_init_prog(lua_State * L)
{
    kpathsea *kp = (kpathsea *) luaL_checkudata(L, 1, KPATHSEA_METATABLE);
    const char *prefix = luaL_checkstring(L, 2);
    unsigned dpi = (unsigned) luaL_checkinteger(L, 3);
    const char *mode = luaL_checkstring(L, 4);
    const char *fallback = luaL_optstring(L, 5, NULL);
    kpathsea_init_prog(*kp, prefix, dpi, mode, fallback);
    return 0;
}
示例#2
0
文件: proginit.c 项目: genesi/luatex
void
kpse_init_prog (const_string prefix,  unsigned dpi,  
                const_string mode, const_string fallback)
{
  kpathsea_init_prog(kpse_def,prefix,dpi,mode,fallback);
}