Changeset ff7e289 for cmd.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:19 PM (15 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
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)
Message:
Add const qualifiers for owl_cmddict *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmd.c

    re19eb97 rff7e289  
    3434
    3535/* free the list with owl_cmddict_namelist_free */
    36 void owl_cmddict_get_names(owl_cmddict *d, owl_list *l) {
     36void owl_cmddict_get_names(const owl_cmddict *d, owl_list *l) {
    3737  owl_dict_get_keys(d, l);
    3838}
    3939
    40 owl_cmd *owl_cmddict_find(owl_cmddict *d, const char *name) {
     40owl_cmd *owl_cmddict_find(const owl_cmddict *d, const char *name) {
    4141  return owl_dict_find_element(d, name);
    4242}
     
    6565}
    6666
    67 char *_owl_cmddict_execute(owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc, const char *buff) {
     67char *_owl_cmddict_execute(const owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc, const char *buff) {
    6868  char *retval = NULL;
    6969  owl_cmd *cmd;
     
    7878}
    7979
    80 char *owl_cmddict_execute(owl_cmddict *cd, owl_context *ctx, const char *cmdbuff) {
     80char *owl_cmddict_execute(const owl_cmddict *cd, owl_context *ctx, const char *cmdbuff) {
    8181  char **argv;
    8282  int argc;
     
    103103}
    104104
    105 char *owl_cmddict_execute_argv(owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc) {
     105char *owl_cmddict_execute_argv(const owl_cmddict *cd, owl_context *ctx, const char *const *argv, int argc) {
    106106  char *buff, *ptr;
    107107  int len = 0, i;
     
    167167}
    168168
    169 char *owl_cmd_execute(owl_cmd *cmd, owl_cmddict *cd, owl_context *ctx, int argc, const char *const *argv, const char *cmdbuff) {
     169char *owl_cmd_execute(owl_cmd *cmd, const owl_cmddict *cd, owl_context *ctx, int argc, const char *const *argv, const char *cmdbuff) {
    170170  static int alias_recurse_depth = 0;
    171171  int ival=0;
     
    255255
    256256
    257 void owl_cmd_get_help(owl_cmddict *d, const char *name, owl_fmtext *fm) {
     257void owl_cmd_get_help(const owl_cmddict *d, const char *name, owl_fmtext *fm) {
    258258  const char *s;
    259259  char *indent;
Note: See TracChangeset for help on using the changeset viewer.