Lines Matching refs:data_ptr
94 struct expr_id_data *data_ptr = NULL, *old_data = NULL;
98 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data);
100 free(data_ptr);
157 struct expr_id_data *data_ptr = NULL, *old_data = NULL;
161 data_ptr = malloc(sizeof(*data_ptr));
162 if (!data_ptr)
164 data_ptr->val.val = val;
165 data_ptr->val.source_count = source_count;
166 data_ptr->kind = EXPR_ID_DATA__VALUE;
168 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data);
170 free(data_ptr);
178 struct expr_id_data *data_ptr = NULL, *old_data = NULL;
183 data_ptr = zalloc(sizeof(*data_ptr));
184 if (!data_ptr)
189 free(data_ptr);
199 data_ptr->ref.metric_name = ref->metric_name;
200 data_ptr->ref.metric_expr = ref->metric_expr;
201 data_ptr->kind = EXPR_ID_DATA__REF;
203 ret = hashmap__set(ctx->ids, name, data_ptr, &old_key, &old_data);
205 free(data_ptr);