[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/5] .ios: Add a completer (same as for the .close command)
From: |
Jose E. Marchesi |
Subject: |
Re: [PATCH 5/5] .ios: Add a completer (same as for the .close command) |
Date: |
Fri, 21 Feb 2020 18:54:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
OK for master.
Thanks!
---
ChangeLog | 6 ++++++
src/pk-ios.c | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dce14fc8..173308bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-16 John Darrington <address@hidden>
+
+ * src/pk-ios.c (close_completion_function): rename to
+ ios_completion_function and use for both the close and
+ ios commands.
+
2020-02-16 John Darrington <address@hidden>
* src/ios.h (struct ios): New structure.
diff --git a/src/pk-ios.c b/src/pk-ios.c
index 43c340a3..edaba40b 100644
--- a/src/pk-ios.c
+++ b/src/pk-ios.c
@@ -35,7 +35,7 @@
#endif
static char *
-close_completion_function (const char *x, int state)
+ios_completion_function (const char *x, int state)
{
static ios io;
if (state == 0)
@@ -328,7 +328,7 @@ pk_cmd_mem (int argc, struct pk_cmd_arg argv[],
uint64_t uflags)
}
struct pk_cmd ios_cmd =
- {"ios", "t", "", 0, NULL, pk_cmd_ios, "ios #ID", NULL};
+ {"ios", "t", "", 0, NULL, pk_cmd_ios, "ios #ID",
ios_completion_function};
struct pk_cmd file_cmd =
{"file", "f", "", 0, NULL, pk_cmd_file, "file FILENAME",
rl_filename_completion_function};
@@ -337,7 +337,7 @@ struct pk_cmd mem_cmd =
{"mem", "ts", "", 0, NULL, pk_cmd_mem, "mem NAME", NULL};
struct pk_cmd close_cmd =
- {"close", "?t", "", PK_CMD_F_REQ_IO, NULL, pk_cmd_close, "close [#ID]",
close_completion_function};
+ {"close", "?t", "", PK_CMD_F_REQ_IO, NULL, pk_cmd_close, "close [#ID]",
ios_completion_function};
struct pk_cmd info_ios_cmd =
{"ios", "", "", 0, NULL, pk_cmd_info_ios, "info ios", NULL};
- [PATCH 1/5] Explicitly set completer members of pk_cmd structs to NULL where appropriate., John Darrington, 2020/02/21
- [PATCH 5/5] .ios: Add a completer (same as for the .close command), John Darrington, 2020/02/21
- Re: [PATCH 5/5] .ios: Add a completer (same as for the .close command),
Jose E. Marchesi <=
- [PATCH 3/5] REPL: Fix bug in command line completion., John Darrington, 2020/02/21
- [PATCH 4/5] Fix erroneous completer for the .close command, John Darrington, 2020/02/21
- [PATCH 2/5] REPL: Use null_completion_function as the default, John Darrington, 2020/02/21
- Re: [PATCH 1/5] Explicitly set completer members of pk_cmd structs to NULL where appropriate., Jose E. Marchesi, 2020/02/21