Lines Matching refs:context
44 ContextListNode(ContextListNode* next, const char* context, const char* filename) in ContextListNode() argument
45 : ContextNode(strdup(context), filename), next(next) { in ContextListNode()
49 free(const_cast<char*>(context())); in ~ContextListNode()
56 PrefixNode(struct PrefixNode* next, const char* prefix, ContextListNode* context) in PrefixNode()
57 : prefix(strdup(prefix)), prefix_len(strlen(prefix)), context(context), next(next) { in PrefixNode()
64 ContextListNode* context; member
73 static void ListAddAfterLen(PrefixNode** list, const char* prefix, ContextListNode* context) { in ListAddAfterLen() argument
80 ListAdd(next_list, prefix, context); in ListAddAfterLen()
85 ListAdd(next_list, prefix, context); in ListAddAfterLen()
214 char* context = nullptr; in InitializePropertiesFromFile() local
217 int items = read_spec_entries(buffer, 2, &prop_prefix, &context); in InitializePropertiesFromFile()
231 free(context); in InitializePropertiesFromFile()
236 contexts_, [context](ContextListNode* l) { return !strcmp(l->context(), context); }); in InitializePropertiesFromFile()
240 ListAdd(&contexts_, context, filename_); in InitializePropertiesFromFile()
244 free(context); in InitializePropertiesFromFile()
329 auto cnode = entry->context; in GetPropAreaForName()