From 23b843ae648cf4337f6287a33b3aa127a1330160 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 16 Dec 2007 01:09:18 +0200 Subject: [PATCH] option_types: Add comments to be found by grep. I was looking for code that handles OPT_COMMAND, so I grepped for it, but did not immediately find this array. Next time, I will. (cherry picked from commit f8863183b86b8dd64f9316965cfb69d69b5719d2) --- src/config/opttypes.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/config/opttypes.c b/src/config/opttypes.c index f159732c5..36496d674 100644 --- a/src/config/opttypes.c +++ b/src/config/opttypes.c @@ -395,20 +395,31 @@ tree_dup(struct option *opt, struct option *template) } const struct option_type_info option_types[] = { + /* The OPT_ comments below are here to be found by grep. */ + + /* OPT_BOOL */ { N_("Boolean"), bool_cmd, num_rd, num_wr, NULL, num_set, N_("[0|1]") }, + /* OPT_INT */ { N_("Integer"), gen_cmd, num_rd, num_wr, NULL, num_set, N_("") }, + /* OPT_LONG */ { N_("Longint"), gen_cmd, num_rd, long_wr, NULL, long_set, N_("") }, + /* OPT_STRING */ { N_("String"), gen_cmd, str_rd, str_wr, str_dup, str_set, N_("") }, + /* OPT_CODEPAGE */ { N_("Codepage"), gen_cmd, str_rd, cp_wr, NULL, cp_set, N_("") }, + /* OPT_LANGUAGE */ { N_("Language"), gen_cmd, str_rd, lang_wr, NULL, lang_set, N_("") }, + /* OPT_COLOR */ { N_("Color"), gen_cmd, str_rd, color_wr, NULL, color_set, N_("") }, + /* OPT_COMMAND */ { N_("Special"), exec_cmd, NULL, NULL, NULL, NULL, "" }, + /* OPT_ALIAS */ { N_("Alias"), redir_cmd, redir_rd, redir_wr, NULL, redir_set, "" }, - /* tree */ + /* OPT_TREE */ { N_("Folder"), NULL, NULL, NULL, tree_dup, NULL, "" }, };