x-engine-c v0.2.31
The C engine for x-lang
Loading...
Searching...
No Matches
vector.h
Go to the documentation of this file.
1#ifndef X_TYPE_VECTOR_H
2#define X_TYPE_VECTOR_H
3
24/*
25 * ., .,
26 * {O,O}
27 * ( )
28 * " "
29 */
30
31#include "x-type.h"
32#include "x-vector.h"
33
34#define X_TYPE_VECTOR_NAME "VECTOR"
40#define X_TYPE_VECTOR_UNITS (-X_VECTOR_UNITS_LENGTH)
41
45#define x_obj_type_isvector(B,X) x_obj_is_type((B), (X), X_TYPE_VECTOR_NAME)
51#define x_mkvector(B, N, ...) x_make_vector((B), X_OBJ_FLAG_NONE, (N), __VA_ARGS__)
55x_obj_t *x_make_vector(x_obj_t *p_base, x_obj_flag_t flags, x_int_t length, ...);
56
63
64#endif /* X_TYPE_VECTOR_H */
static void x_obj_t * p_args
Definition x-prim.h:56
Definition x-obj.h:214
x_obj_t * x_type_vector_length(x_obj_t *p_base, x_obj_t *p_args)
Definition vector.c:77
x_obj_t * x_make_vector(x_obj_t *p_base, x_obj_flag_t flags, x_int_t length,...)
Definition vector.c:42
x_obj_t * x_type_vector_struct(x_obj_t *p_base, x_obj_t *p_args)
Definition vector.c:94
x_obj_t * x_type_vector_register(x_obj_t *p_base, x_obj_t *p_args)
Definition vector.c:114
enum x_obj_flag_enum x_obj_flag_t
Type system field accessors and type struct definition.
The vector layout – an object whose first data unit holds its length and whose other data units are i...
long x_int_t
Definition x.h:129