示例#1
0
文件: menu.c 项目: vidarh/ACE
void menu() {
    insymbol();
    if (try_change_event_trapping_status(lastsym)) return;
    if (eat(clearsym)) gen_jsr("_ClearMenu");
    else if (eat(waitsym)) gen_jsr("_WaitMenu");
    else {
        parse_call_func_args("l,l,l",0); /* menu-id,item-id,state */
        if (!peek(comma)) {
            gen_call_void("_ChangeMenuState",12);
            return;	
        }
        opt_arg(stringtype,0); /* title-string */
        opt_arg(stringtype,0); /* command_key */
        gen_call_void("_ModifyMenu",20);
    }
}
示例#2
0
/*
 * call-seq:
 *   nwfilter.undefine -> nil
 *
 * Call +virNWFilterUndefine+[http://www.libvirt.org/html/libvirt-libvirt.html#virNWFilterUndefine]
 * to undefine the network filter.
 */
static VALUE libvirt_nwfilter_undefine(VALUE s) {
    gen_call_void(virNWFilterUndefine, conn(s), nwfilter_get(s));
}