コード例 #1
0
ファイル: complete.c プロジェクト: Jaharmi/zsh
    CONDDEF("after", 0, cond_range, 1, 1, 0),
    CONDDEF("between", 0, cond_range, 2, 2, 1),
    CONDDEF("prefix", 0, cond_psfix, 1, 2, CVT_PREPAT),
    CONDDEF("suffix", 0, cond_psfix, 1, 2, CVT_SUFPAT),
};

static struct funcwrap wrapper[] = {
    WRAPDEF(comp_wrapper),
};

/* The order of the entries in this table has to match the *HOOK
 * macros in comp.h */

/**/
struct hookdef comphooks[] = {
    HOOKDEF("insert_match", NULL, HOOKF_ALL),
    HOOKDEF("menu_start", NULL, HOOKF_ALL),
    HOOKDEF("compctl_make", NULL, 0),
    HOOKDEF("compctl_cleanup", NULL, 0),
    HOOKDEF("comp_list_matches", ilistmatches, 0),
};

static struct features module_features = {
    bintab, sizeof(bintab)/sizeof(*bintab),
    cotab, sizeof(cotab)/sizeof(*cotab),
    NULL, 0,
    NULL, 0,
    0
};

/**/
コード例 #2
0
ファイル: zle_main.c プロジェクト: xyzy/mips-zsh_5.2
    return NULL;
}

static struct builtin bintab[] = {
    BUILTIN("bindkey", 0, bin_bindkey, 0, -1, 0, "evaM:ldDANmrsLRp", NULL),
    BUILTIN("vared",   0, bin_vared,   1,  1, 0, "aAcef:hi:M:m:p:r:t:", NULL),
    BUILTIN("zle",     0, bin_zle,     0, -1, 0, "aAcCDfFgGIKlLmMNrRTUw", NULL),
};

/* The order of the entries in this table has to match the *HOOK
 * macros in zle.h */

/**/
mod_export struct hookdef zlehooks[] = {
    /* LISTMATCHESHOOK */
    HOOKDEF("list_matches", NULL, 0),
    /* COMPLETEHOOK */
    HOOKDEF("complete", NULL, 0),
    /* BEFORECOMPLETEHOOK */
    HOOKDEF("before_complete", NULL, 0),
    /* AFTERCOMPLETEHOOK */
    HOOKDEF("after_complete", NULL, 0),
    /* ACCEPTCOMPHOOK */
    HOOKDEF("accept_completion", NULL, 0),
    /* INVALIDATELISTHOOK */
    HOOKDEF("invalidate_list", NULL, 0),
};

static struct features module_features = {
    bintab, sizeof(bintab)/sizeof(*bintab),
    NULL, 0,
コード例 #3
0
ファイル: init.c プロジェクト: AMDmi3/zsh
/**/
mod_export int hasam, hasbw, hasxn, hasye;

/* Value of the Co (max_colors) entry: may not be set */

/**/
mod_export int tccolours;

/* SIGCHLD mask */

/**/
mod_export sigset_t sigchld_mask;

/**/
mod_export struct hookdef zshhooks[] = {
    HOOKDEF("exit", NULL, HOOKF_ALL),
    HOOKDEF("before_trap", NULL, HOOKF_ALL),
    HOOKDEF("after_trap", NULL, HOOKF_ALL),
};

/* keep executing lists until EOF found */

/**/
enum loop_return
loop(int toplevel, int justonce)
{
    Eprog prog;
    int err, non_empty = 0;

    queue_signals();
    pushheap();
コード例 #4
0
ファイル: g_engine.cpp プロジェクト: mehmehsomeone/OpenRP
			__asm1__( push DDL_RETSUCCESS );
			__asm1__( ret );
		}
		__EndHook( DoneDL )
	}
#endif //HOOK_DoneDL



// --------------------------------
// Hook table

static hookEntry_t hooks[] =
{
	#ifdef HOOK_Q3INFOBOOM
		HOOKDEF( Q3IB_HOOKPOS,	Q3IB_ORIGBYTES,	0xE8,	Hook_Q3InfoBoom,		"Q3InfoBoom patch"							),
	#endif
	#ifdef HOOK_Q3FILL
		HOOKDEF( CACH_HOOKPOS,	CACH_ORIGBYTES,	0xE8,	Hook_CACheck,			"Connection activity check (Anti-Q3Fill)"	),
	#endif
	#ifdef HOOK_SvSayFix
		HOOKDEF( SVS_HOOKPOS,	SVS_ORIGBYTES,	0xE9,	Hook_SvSay,				"SvSay fix"									),
	#endif
	#ifdef HOOK_DoneDL
		HOOKDEF( DDL_HOOKPOS,	DDL_ORIGBYTES,	0xE9,	Hook_DoneDL,			"DoneDL fix"									),
	#endif
};
static const int numHooks = ARRAY_LEN( hooks );

#endif // PATCH_ENGINE