From 5ab4376dddcfd328837db8b2f84784a53b9187c3 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 7 Sep 2010 16:37:00 +0100 Subject: [PATCH] readline: fix the signature of CompletionFunc --- vapi/readline.vapi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vapi/readline.vapi b/vapi/readline.vapi index ece78c67b..c0335cc21 100644 --- a/vapi/readline.vapi +++ b/vapi/readline.vapi @@ -25,8 +25,8 @@ namespace Readline { [CCode (cname = "rl_command_func_t", has_target = false)] public delegate int CommandFunc (int a, int b); - [CCode (cname = "rl_completion_func_t", has_target = false)] - public delegate string[] CompletionFunc (string str, int a, int b); + [CCode (cname = "rl_completion_func_t", has_target = false, array_length = false, array_null_terminated = true)] + public delegate string[]? CompletionFunc (string str, int a, int b); [CCode (cname = "rl_quote_func_t", has_target = false)] public delegate string? CompentryFunc (string str, int a); [CCode (cname = "rl_quote_func_t", has_target = false)] -- 2.47.2