aboutsummaryrefslogtreecommitdiffstats
path: root/l4array.h
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-12-07 19:44:12 +0800
committerLAN-TW <lantw44@gmail.com>2013-12-07 19:44:12 +0800
commit5fac283e3f4fae867b8429174d26078a090d2e0d (patch)
treed234f04f0939fd1ea3187a31e39d3c62bb9e7318 /l4array.h
parentdc258e02720308981a4f8a2e4848c582c1b71123 (diff)
downloadl4basic-5fac283e3f4fae867b8429174d26078a090d2e0d.tar.gz
l4basic-5fac283e3f4fae867b8429174d26078a090d2e0d.tar.zst
l4basic-5fac283e3f4fae867b8429174d26078a090d2e0d.zip
Change all tabs to spaces and add vim modeline
Diffstat (limited to 'l4array.h')
-rw-r--r--l4array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/l4array.h b/l4array.h
index d3e74ee..73fc884 100644
--- a/l4array.h
+++ b/l4array.h
@@ -7,12 +7,12 @@
typedef struct LbsArrayStruct {
/*< public >*/
void* data; /* data */
- size_t len; /* current length */
void (*free_func) (void* data);
/* function to free the element */
/*< private >*/
size_t size; /* element size */
+ size_t len; /* current length */
size_t max; /* maximal length */
unsigned ref_count; /* reference count */
bool is_alloc; /* is allocated using malloc */