summaryrefslogtreecommitdiffstats
path: root/include/cmsys.h
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-16 20:42:12 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-16 20:42:12 +0800
commit4b2100223f8e50617bd729f5a4050e9129f1710f (patch)
tree3b29fc57d7ffc2d120028ded90b68b4826408ef0 /include/cmsys.h
parentddc440223f72563fb76f7e927a25bd7b70a83f06 (diff)
downloadpttbbs-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/cmsys.h')
-rw-r--r--include/cmsys.h6
1 files changed, 3 insertions, 3 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);