Changes in cmd.c [d427f08:ce68f23]
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
rd427f08 rce68f23 28 28 } 29 29 30 void owl_cmddict_get_names(const owl_cmddict *d, owl_list *l) {31 owl_dict_get_keys(d, l);30 GPtrArray *owl_cmddict_get_names(const owl_cmddict *d) { 31 return owl_dict_get_keys(d); 32 32 } 33 33 … … 56 56 57 57 /* caller must free the return */ 58 G_GNUC_WARN_UNUSED_RESULTchar *_owl_cmddict_execute(const owl_cmddict *cd, const owl_context *ctx, const char *const *argv, int argc, const char *buff)58 CALLER_OWN char *_owl_cmddict_execute(const owl_cmddict *cd, const owl_context *ctx, const char *const *argv, int argc, const char *buff) 59 59 { 60 60 char *retval = NULL; … … 73 73 74 74 /* caller must free the return */ 75 G_GNUC_WARN_UNUSED_RESULTchar *owl_cmddict_execute(const owl_cmddict *cd, const owl_context *ctx, const char *cmdbuff)75 CALLER_OWN char *owl_cmddict_execute(const owl_cmddict *cd, const owl_context *ctx, const char *cmdbuff) 76 76 { 77 77 char **argv; … … 97 97 98 98 /* caller must free the return */ 99 G_GNUC_WARN_UNUSED_RESULTchar *owl_cmddict_execute_argv(const owl_cmddict *cd, const owl_context *ctx, const char *const *argv, int argc)99 CALLER_OWN char *owl_cmddict_execute_argv(const owl_cmddict *cd, const owl_context *ctx, const char *const *argv, int argc) 100 100 { 101 101 char *buff; … … 154 154 155 155 /* caller must free the result */ 156 G_GNUC_WARN_UNUSED_RESULTchar *owl_cmd_execute(const owl_cmd *cmd, const owl_cmddict *cd, const owl_context *ctx, int argc, const char *const *argv, const char *cmdbuff)156 CALLER_OWN char *owl_cmd_execute(const owl_cmd *cmd, const owl_cmddict *cd, const owl_context *ctx, int argc, const char *const *argv, const char *cmdbuff) 157 157 { 158 158 static int alias_recurse_depth = 0; … … 228 228 229 229 /* returns a summary line describing this keymap. the caller must free. */ 230 G_GNUC_WARN_UNUSED_RESULTchar *owl_cmd_describe(const owl_cmd *cmd)230 CALLER_OWN char *owl_cmd_describe(const owl_cmd *cmd) 231 231 { 232 232 if (!cmd || !cmd->name || !cmd->summary) return NULL;
Note: See TracChangeset
for help on using the changeset viewer.