示例#1
0
文件: idl.c 项目: cortoproject/idl
/* Parse an IDL file */
int idl_loadFile(cx_string file, int argc, char* argv[], void* udata) {
    idl_Parser p;
    CX_UNUSED(udata);
    CX_UNUSED(argc);
    CX_UNUSED(argv);

    /* Parse IDL */
    p = idl_ParserCreate(file, NULL);
    if (!p) {
        goto error;
    }
    
    idl_Parser_parse(p);
    cx_release(p);

    return 0;
error:
    return -1;
}
示例#2
0
文件: tags.c 项目: w23/sifon
void tag_dtor(void *obj) {
  tag_ptr this = (tag_ptr)obj;
  cx_release(this->key);
  cx_release(this->value);
}