- Timestamp:
- Aug 15, 2009, 7:08:19 PM (16 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 3f8514b
- Parents:
- e5c9b14a
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 00:21:46)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
re19eb97 rff7e289 34 34 35 35 /* free the list with owl_cmddict_namelist_free */ 36 void owl_cmddict_get_names( owl_cmddict *d, owl_list *l) {36 void owl_cmddict_get_names(const owl_cmddict *d, owl_list *l) { 37 37 owl_dict_get_keys(d, l); 38 38 } 39 39 40 owl_cmd *owl_cmddict_find( owl_cmddict *d, const char *name) {40 owl_cmd *owl_cmddict_find(const owl_cmddict *d, const char *name) { 41 41 return owl_dict_find_element(d, name); 42 42 } … … 65 65 } 66 66 67 char *_owl_cmddict_execute( owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc, const char *buff) {67 char *_owl_cmddict_execute(const owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc, const char *buff) { 68 68 char *retval = NULL; 69 69 owl_cmd *cmd; … … 78 78 } 79 79 80 char *owl_cmddict_execute( owl_cmddict *cd, owl_context *ctx, const char *cmdbuff) {80 char *owl_cmddict_execute(const owl_cmddict *cd, owl_context *ctx, const char *cmdbuff) { 81 81 char **argv; 82 82 int argc; … … 103 103 } 104 104 105 char *owl_cmddict_execute_argv( owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc) {105 char *owl_cmddict_execute_argv(const owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc) { 106 106 char *buff, *ptr; 107 107 int len = 0, i; … … 167 167 } 168 168 169 char *owl_cmd_execute(owl_cmd *cmd, owl_cmddict *cd, owl_context *ctx, int argc, const char *const *argv, const char *cmdbuff) {169 char *owl_cmd_execute(owl_cmd *cmd, const owl_cmddict *cd, owl_context *ctx, int argc, const char *const *argv, const char *cmdbuff) { 170 170 static int alias_recurse_depth = 0; 171 171 int ival=0; … … 255 255 256 256 257 void owl_cmd_get_help( owl_cmddict *d, const char *name, owl_fmtext *fm) {257 void owl_cmd_get_help(const owl_cmddict *d, const char *name, owl_fmtext *fm) { 258 258 const char *s; 259 259 char *indent;
Note: See TracChangeset
for help on using the changeset viewer.