- Timestamp:
- Aug 15, 2009, 7:08:19 PM (15 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:
- 0a0fb74
- Parents:
- ff7e289
- git-author:
- Anders Kaseorg <andersk@mit.edu> (07/22/09 03:07:36)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
rff7e289 r3f8514b 65 65 } 66 66 67 char *_owl_cmddict_execute(const owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc, const char *buff) {67 char *_owl_cmddict_execute(const owl_cmddict *cd, const 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(const owl_cmddict *cd, owl_context *ctx, const char *cmdbuff) {80 char *owl_cmddict_execute(const owl_cmddict *cd, const owl_context *ctx, const char *cmdbuff) { 81 81 char **argv; 82 82 int argc; … … 103 103 } 104 104 105 char *owl_cmddict_execute_argv(const owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc) {105 char *owl_cmddict_execute_argv(const owl_cmddict *cd, const owl_context *ctx, const char *const *argv, int argc) { 106 106 char *buff, *ptr; 107 107 int len = 0, i; … … 162 162 } 163 163 164 int owl_cmd_is_context_valid(owl_cmd *cmd, owl_context *ctx) {164 int owl_cmd_is_context_valid(owl_cmd *cmd, const owl_context *ctx) { 165 165 if (owl_context_matches(ctx, cmd->validctx)) return 1; 166 166 else return 0; 167 167 } 168 168 169 char *owl_cmd_execute(owl_cmd *cmd, const 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, const 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;
Note: See TracChangeset
for help on using the changeset viewer.