diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-16 20:42:12 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-06-16 20:42:12 +0800 |
commit | 4b2100223f8e50617bd729f5a4050e9129f1710f (patch) | |
tree | 3b29fc57d7ffc2d120028ded90b68b4826408ef0 /include | |
parent | ddc440223f72563fb76f7e927a25bd7b70a83f06 (diff) | |
download | pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.gz pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.bz2 pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.lz pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.xz pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.tar.zst pttbbs-4b2100223f8e50617bd729f5a4050e9129f1710f.zip |
Add const modifier
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4374 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/cmsys.h | 6 | ||||
-rw-r--r-- | include/proto.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/cmsys.h b/include/cmsys.h index 0c565bb4..9b3ccef3 100644 --- a/include/cmsys.h +++ b/include/cmsys.h @@ -161,13 +161,13 @@ extern void Vector_init(struct Vector *self, const int size); extern void Vector_init_const(struct Vector *self, char * base, const int length, const int size); extern void Vector_delete(struct Vector *self); extern void Vector_clear(struct Vector *self, const int size); -extern int Vector_length(struct Vector *self); +extern int Vector_length(const struct Vector *self); extern void Vector_resize(struct Vector *self, const int length); extern void Vector_add(struct Vector *self, const char *name); -extern const char* Vector_get(struct Vector *self, const int idx); +extern const char* Vector_get(const struct Vector *self, const int idx); extern int Vector_MaxLen(const struct Vector *list, const int offset, const int count); extern int Vector_match(const struct Vector *src, struct Vector *dst, const int key, const int pos); -extern void Vector_sublist(struct Vector *src, struct Vector *dst, const char *tag); +extern void Vector_sublist(const struct Vector *src, struct Vector *dst, const char *tag); extern int Vector_remove(struct Vector *self, const char *name); extern int Vector_search(const struct Vector *self, const char *name); diff --git a/include/proto.h b/include/proto.h index 680a2b9c..228ee393 100644 --- a/include/proto.h +++ b/include/proto.h @@ -428,7 +428,7 @@ typedef int (*gnc_comp_func)(int, const char*, int); typedef int (*gnc_perm_func)(int); typedef char* (*gnc_getname_func)(int); -extern void namecomplete2(struct Vector *namelist, const char *prompt, char *data); +extern void namecomplete2(const struct Vector *namelist, const char *prompt, char *data); extern void ShowVector(struct Vector *self, int row, int column, const char *prompt); extern void ToggleVector(struct Vector *list, int *recipient, const char *listfile, const char *msg); |