From a11d14b24b3322dddf03f5c6fb4f7d75165cd25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 31 Dec 2016 14:35:18 +0100 Subject: vis: typedef function type not pointer to function --- vis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 312da4b..192e5d2 100644 --- a/vis.h +++ b/vis.h @@ -448,11 +448,11 @@ void vis_cancel(Vis*); bool vis_cmd(Vis*, const char *cmd); /* type of user defined function which can be registered */ -typedef bool (*CmdFunc)(Vis*, Win*, void *data, bool force, +typedef bool (CmdFunc)(Vis*, Win*, void *data, bool force, const char *argv[], Cursor*, Filerange*); /* the function will be invoked whenever a command which matches a * unique prefix of the given name is executed */ -bool vis_cmd_register(Vis*, const char *name, void *data, CmdFunc); +bool vis_cmd_register(Vis*, const char *name, void *data, CmdFunc*); bool vis_cmd_unregister(Vis*, const char *name); /* execute any kind (:,?,/) of prompt command */ bool vis_prompt_cmd(Vis*, const char *cmd); -- cgit v1.2.3