Lines Matching refs:xy
10 struct xyarray *xy = zalloc(sizeof(*xy) + xlen * row_size); in xyarray__new() local
12 if (xy != NULL) { in xyarray__new()
13 xy->entry_size = entry_size; in xyarray__new()
14 xy->row_size = row_size; in xyarray__new()
15 xy->entries = xlen * ylen; in xyarray__new()
16 xy->max_x = xlen; in xyarray__new()
17 xy->max_y = ylen; in xyarray__new()
20 return xy; in xyarray__new()
23 void xyarray__reset(struct xyarray *xy) in xyarray__reset() argument
25 size_t n = xy->entries * xy->entry_size; in xyarray__reset()
27 memset(xy->contents, 0, n); in xyarray__reset()
30 void xyarray__delete(struct xyarray *xy) in xyarray__delete() argument
32 free(xy); in xyarray__delete()