summaryrefslogtreecommitdiff
path: root/src/gui/gui-completion.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-07-20 18:12:07 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-20 18:12:07 +0200
commiteab011073224b13ada61f80f3731e8dd459b7bfa (patch)
treebc05f9c4bd577a2c8ae7b8917098a4f6c54c8310 /src/gui/gui-completion.c
parent658013a1e42967e498629367ac7d2d39ba7eec51 (diff)
downloadweechat-eab011073224b13ada61f80f3731e8dd459b7bfa.zip
core: add support of arrays in hdata variables
Diffstat (limited to 'src/gui/gui-completion.c')
-rw-r--r--src/gui/gui-completion.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c
index 159290be2..9b7ef2fe2 100644
--- a/src/gui/gui-completion.c
+++ b/src/gui/gui-completion.c
@@ -1217,25 +1217,25 @@ gui_completion_hdata_completion_cb (void *data, const char *hdata_name)
hdata = hdata_new (NULL, hdata_name, NULL, NULL);
if (hdata)
{
- HDATA_VAR(struct t_gui_completion, buffer, POINTER, "buffer");
- HDATA_VAR(struct t_gui_completion, context, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, base_command, STRING, NULL);
- HDATA_VAR(struct t_gui_completion, base_command_arg_index, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, base_word, STRING, NULL);
- HDATA_VAR(struct t_gui_completion, base_word_pos, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, position, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, args, STRING, NULL);
- HDATA_VAR(struct t_gui_completion, direction, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, add_space, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, force_partial_completion, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, completion_list, POINTER, NULL);
- HDATA_VAR(struct t_gui_completion, word_found, STRING, NULL);
- HDATA_VAR(struct t_gui_completion, word_found_is_nick, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, position_replace, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, diff_size, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, diff_length, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion, partial_completion_list, POINTER, "completion_partial");
- HDATA_VAR(struct t_gui_completion, last_partial_completion, POINTER, "completion_partial");
+ HDATA_VAR(struct t_gui_completion, buffer, POINTER, NULL, "buffer");
+ HDATA_VAR(struct t_gui_completion, context, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, base_command, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, base_command_arg_index, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, base_word, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, base_word_pos, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, position, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, args, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, direction, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, add_space, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, force_partial_completion, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, completion_list, POINTER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, word_found, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, word_found_is_nick, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, position_replace, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, diff_size, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, diff_length, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion, partial_completion_list, POINTER, NULL, "completion_partial");
+ HDATA_VAR(struct t_gui_completion, last_partial_completion, POINTER, NULL, "completion_partial");
}
return hdata;
}
@@ -1256,10 +1256,10 @@ gui_completion_hdata_completion_partial_cb (void *data, const char *hdata_name)
hdata = hdata_new (NULL, hdata_name, "prev_item", "next_item");
if (hdata)
{
- HDATA_VAR(struct t_gui_completion_partial, word, STRING, NULL);
- HDATA_VAR(struct t_gui_completion_partial, count, INTEGER, NULL);
- HDATA_VAR(struct t_gui_completion_partial, prev_item, POINTER, hdata_name);
- HDATA_VAR(struct t_gui_completion_partial, next_item, POINTER, hdata_name);
+ HDATA_VAR(struct t_gui_completion_partial, word, STRING, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion_partial, count, INTEGER, NULL, NULL);
+ HDATA_VAR(struct t_gui_completion_partial, prev_item, POINTER, NULL, hdata_name);
+ HDATA_VAR(struct t_gui_completion_partial, next_item, POINTER, NULL, hdata_name);
}
return hdata;
}