Lines Matching defs:category

224   Category *category = categories;
226 while (category != NULL) {
227 if (strcmp (category->name, name) == 0)
230 category = category->next;
233 if (category == NULL)
234 category = AddCategory (name);
236 return (category);
257 static void AddHashedResource(resource, category)
259 Category *category;
264 if (category->hash == NULL) {
265 category->hash = (Resource **) ckcalloc(HASHSIZE, sizeof(Resource *),
270 current = previous = category->hash[hash];
283 if (category->hash[hash] == NULL) {
284 category->hash[hash] = resource;
294 if (current == category->hash[hash]) {
295 category->hash[hash] = resource;
302 void EnterDuplicateWarning(category, res1, res2)
303 Category *category;
317 current = previous = category->duplicates;
325 if (category->duplicates == NULL) category->duplicates = dup;
332 if (current == category->duplicates) category->duplicates = dup;
343 Category *category = FindCategory (categoryName);
367 AddHashedResource(resource, category);
371 current = previous = category->list;
382 EnterDuplicateWarning(category, current, resource);
396 if (category->list == NULL) {
397 category->list = resource;
404 if (current == category->list) {
405 category->list = resource;
416 Category *category = FindCategory (categoryName);
420 for (resource = category->list;
426 if (category->hash == NULL) return false;
429 for (resource = category->hash[i];
442 char *category;
491 resource->category = ckmalloc (strlen (categoryName) + 1,
494 strcpy(resource->category, categoryName);
510 strcmp(current->category, resource->category) != 0) { /* Same */
511 if (strcmp(current->category, "mkpsresPrivate") == 0 &&
517 free(current->category);
518 current->category = resource->category;
526 fprintf(stderr, " Using %s\n", current->category);
530 free (resource->category);
999 char *category;
1021 /* Process category */
1034 category = line;
1042 free(category);
1046 free(category);
1058 if (strcmp(category, "FontBDFSizes") == 0) {
1060 } else if (strcmp(category, "FontFamily") == 0) {
1062 } else AddUPRResource (category, line,
1396 printf("Please enter resource category: ");
1496 AddResource(resource->category, resource->name, resource->file,
1711 Category *category;
1716 for (category = categories; category != NULL; category = category->next) {
1717 if (strcmp(category->name, "FontBDFSizes") == 0 ||
1718 strcmp(category->name, "FontFamily") == 0) {
1722 for (resource = category->list; resource != NULL;
1730 if (category->hash != NULL) {
1732 for (resource = category->hash[bucket]; resource != NULL;
1747 if (strcmp(upr->category, "FontBDFSizes") != 0 &&
1748 strcmp(upr->category, "FontFamily") != 0) {
1760 AddResource(upr->category, upr->name, upr->file, upr->noPrefix);
1772 if (strcmp(upr->category, "FontBDFSizes") == 0) {
1788 AddResource(upr->category, upr->name, ch, false);
1792 } else if (strcmp(upr->category, "FontFamily") == 0) {
1804 AddResource(upr->category, upr->name, upr->file, false);
1815 Category *category;
1823 category = categories;
1825 while (category != NULL) {
1826 if (strcmp(category->name, "FontBDFSizes") == 0 ||
1827 strcmp(category->name, "FontFamily") == 0 ||
1828 strcmp(category->name, "FontBlendPositions") == 0 ||
1829 strcmp(category->name, "FontBlendMap") == 0 ||
1830 strcmp(category->name, "FontAxes") == 0) {
1831 category = category->next;
1834 resource = category->list;
1865 if (category->hash != NULL) {
1867 for (resource = category->hash[bucket]; resource != NULL;
1896 category = category->next;
1943 Category *category;
1957 category = categories;
1959 while (category != NULL) {
1960 outs(category->name);
1962 category = category->next;
1972 category = categories;
1974 while (category != NULL) {
1975 resource = category->list;
1976 outs(category->name);
1978 if (strcmp(category->name, "FontBDFSizes") != 0 &&
1979 strcmp(category->name, "FontFamily") != 0) {
2005 if (category->hash != NULL) {
2007 for (resource = category->hash[bucket]; resource != NULL;
2020 category = category->next;
2211 Category *category;
2214 for (category = categories; category != NULL; category = category->next) {
2215 if (category->duplicates == NULL) continue;
2224 fprintf(stderr, "Category %s:\n", category->name);
2225 for (dup = category->duplicates; dup != NULL; dup = dup->next) {