Feature #305

fundamental vector type

Added by Joerg Behrens over 6 years ago. Updated over 4 years ago.

Status:New Start date:10/15/2012
Priority:Normal Due date:
Assignee:- % Done:

10%

Category:-
Target version:-

Description

It might be useful to have a fundamental vector type

struct vec_DATA_TYPE { int n; int cap; DATA_TYPE *p;};

in order to simplify the code, e.g. to reduce the number of arguments when vector-like information is passed (DATA_TYPE *p, n)

History

#1 Updated by Thomas Jahns over 4 years ago

  • % Done changed from 0 to 10

commit:0fb2c5e38479301988ee48d80e7ef04473cb5f60 add this for position extents (struct Xt_pos_ext -> struct Xt_pos_ext_vec) (see source:src/xt_cover.h@0fb2c5e38479301988ee48d80e7ef04473cb5f60#L58, commit:13726249d9431b04008b5513a3483c81bb0a495f does the same for int (struct int_vec, see source:src/xt_idxstripes.c@13726249d9431b04008b5513a3483c81bb0a495f#L996). This could be used as a model perhaps.

Also available in: Atom PDF