Lines Matching refs:m
127 static bool has_data_type_information(struct marker *m) in has_data_type_information() argument
129 return m->type >= TYPE_UINT8; in has_data_type_information()
132 static struct marker *next_type_marker(struct marker *m) in next_type_marker() argument
134 while (m && !has_data_type_information(m)) in next_type_marker()
135 m = m->next; in next_type_marker()
136 return m; in next_type_marker()
139 size_t type_marker_length(struct marker *m) in type_marker_length() argument
141 struct marker *next = next_type_marker(m->next); in type_marker_length()
144 return next->offset - m->offset; in type_marker_length()
167 struct marker *m = prop->val.markers; in guess_value_type() local
179 for_each_marker_of_type(m, LABEL) { in guess_value_type()
180 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in guess_value_type()
182 if ((m->offset % sizeof(cell_t)) != 0) in guess_value_type()
199 struct marker *m = prop->val.markers; in write_propval() local
219 if (!next_type_marker(m)) { in write_propval()
225 m = &dummy_marker; in write_propval()
228 for_each_marker(m) { in write_propval()
229 size_t chunk_len = (m->next ? m->next->offset : len) - m->offset; in write_propval()
230 size_t data_len = type_marker_length(m) ? : len - m->offset; in write_propval()
231 const char *p = &prop->val.val[m->offset]; in write_propval()
233 if (has_data_type_information(m)) { in write_propval()
234 emit_type = m->type; in write_propval()
236 } else if (m->type == LABEL) in write_propval()
237 fprintf(f, " %s:", m->ref); in write_propval()
238 else if (m->offset) in write_propval()
264 size_t pos = m->offset + chunk_len; in write_propval()