Lines Matching defs:elements
28 const char **elements;
51 const char **elements)
57 parent_path.elements = elements;
80 const char **elements = NULL;
83 if (local_parent->path.elements != NULL) {
84 elements = talloc_array(mem_ctx, const char *,
85 str_list_length(local_parent->path.elements) + 1);
86 for (el = 0; local_parent->path.elements[el] != NULL; el++) {
87 elements[el] = talloc_reference(elements,
88 local_parent->path.elements[el]);
90 elements[el] = NULL;
92 elements = NULL;
99 elements = talloc_realloc(mem_ctx, elements, const char *, el+2);
100 elements[el] = talloc_strdup(elements, curbegin);
102 elements[el] = NULL;
120 talloc_steal(curkey, elements));
134 mp->path.elements == NULL)
143 mp->path.elements);
169 const char **elements;
188 if (local_parent->path.elements != NULL) {
189 elements = talloc_array(hivekey, const char *,
190 str_list_length(local_parent->path.elements)+2);
191 for (i = 0; local_parent->path.elements[i] != NULL; i++) {
192 elements[i] = talloc_reference(elements,
193 local_parent->path.elements[i]);
196 elements = talloc_array(hivekey, const char *, 2);
200 elements[i] = talloc_strdup(elements, name);
201 elements[i+1] = NULL;
205 elements);
326 const char **elements)
336 if (elements != NULL && str_list_length(elements) != 0) {
337 mp->path.elements = talloc_array(mp, const char *,
338 str_list_length(elements));
339 for (i = 0; elements[i] != NULL; i++) {
340 mp->path.elements[i] = talloc_reference(mp->path.elements,
341 elements[i]);
343 mp->path.elements[i] = NULL;
345 mp->path.elements = NULL;