Lines Matching refs:m
10 struct marker *m, *nm; in data_free() local
12 m = d.markers; in data_free()
13 while (m) { in data_free()
14 nm = m->next; in data_free()
15 free(m->ref); in data_free()
16 free(m); in data_free()
17 m = nm; in data_free()
115 struct data data_insert_at_marker(struct data d, struct marker *m, in data_insert_at_marker() argument
119 memmove(d.val + m->offset + len, d.val + m->offset, d.len - m->offset); in data_insert_at_marker()
120 memcpy(d.val + m->offset, p, len); in data_insert_at_marker()
124 m = m->next; in data_insert_at_marker()
125 for_each_marker(m) in data_insert_at_marker()
126 m->offset += len; in data_insert_at_marker()
130 static struct data data_append_markers(struct data d, struct marker *m) in data_append_markers() argument
137 *mp = m; in data_append_markers()
229 struct marker *m; in data_add_marker() local
231 m = xmalloc(sizeof(*m)); in data_add_marker()
232 m->offset = d.len; in data_add_marker()
233 m->type = type; in data_add_marker()
234 m->ref = ref; in data_add_marker()
235 m->next = NULL; in data_add_marker()
237 return data_append_markers(d, m); in data_add_marker()