summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-16 15:16:49 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-16 15:16:49 +0800
commitc16f23e758c7a14452484d32962d5bed5c22d75e (patch)
tree1babdcb496a726e4cd4565adf0170a40ef2e03b5 /include
parent27a7b80caaae56e5ee058e70f4b95c50f86b5b5d (diff)
downloadpttbbs-c16f23e758c7a14452484d32962d5bed5c22d75e.tar
pttbbs-c16f23e758c7a14452484d32962d5bed5c22d75e.tar.gz
pttbbs-c16f23e758c7a14452484d32962d5bed5c22d75e.tar.bz2
pttbbs-c16f23e758c7a14452484d32962d5bed5c22d75e.tar.lz
pttbbs-c16f23e758c7a14452484d32962d5bed5c22d75e.tar.xz
pttbbs-c16f23e758c7a14452484d32962d5bed5c22d75e.tar.zst
pttbbs-c16f23e758c7a14452484d32962d5bed5c22d75e.zip
Constant vector (initialized with reference to given data)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4369 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/cmsys.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cmsys.h b/include/cmsys.h
index 8d4c07bf..0c565bb4 100644
--- a/include/cmsys.h
+++ b/include/cmsys.h
@@ -6,6 +6,7 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <stdbool.h>
#include "osdep.h"
#include "config.h" // XXX for TIMET64, but config.h has too much thing I don't want ...
@@ -153,9 +154,11 @@ struct Vector {
int length;
int capacity;
char *base;
+ bool constant;
};
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);