add object module from corelib
This commit is contained in:
15
object/array.h
Normal file
15
object/array.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef _BLUELIB_ARRAY_H_
|
||||
#define _BLUELIB_ARRAY_H_
|
||||
|
||||
#include "../object.h"
|
||||
|
||||
struct b_array {
|
||||
struct b_object ar_base;
|
||||
/* number of items in array */
|
||||
unsigned int ar_len;
|
||||
/* maximum number of items that can currently be stored in array */
|
||||
unsigned int ar_cap;
|
||||
struct b_object **ar_data;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user