Lines Matching refs:current
189 Category *current,
192 current = previous = categories;
194 while (current != NULL) {
195 if (strcmp (current->name, name) > 0) {
198 previous = current;
199 current = current->next;
203 if (current == NULL) {
207 newCategory->next = current;
209 if (current == categories) {
261 Resource *current, *previous;
270 current = previous = category->hash[hash];
272 while (current != NULL) {
273 comparison = strcmp (current->file, resource->file);
277 strcmp(current->name, resource->name) != 0) break;
279 previous = current;
280 current = current->next;
287 } else if (current == NULL) {
292 resource->next = current;
294 if (current == category->hash[hash]) {
306 Duplicate *dup, *previous, *current;
317 current = previous = category->duplicates;
319 while (current != NULL) {
320 if (strcmp (current->name, res1->name) >= 0) break;
321 previous = current;
322 current = current->next;
326 else if (current == NULL) {
330 dup->next = current;
332 if (current == category->duplicates) category->duplicates = dup;
345 *current,
371 current = previous = category->list;
373 while (current != NULL) {
374 comparison = strcmp (current->name, resourceName);
377 comparison = strcmp (current->file, fileName);
382 EnterDuplicateWarning(category, current, resource);
392 previous = current;
393 current = current->next;
398 } else if (current == NULL) {
402 resource->next = current;
404 if (current == category->list) {
463 UPRResource *resource, *current, *previous;
500 current = previous = UPRresources[hash];
502 while (current != NULL) {
503 comparison = strcmp (current->file, resource->file);
509 if (strcmp(current->name, resource->name) != 0 ||
510 strcmp(current->category, resource->category) != 0) { /* Same */
511 if (strcmp(current->category, "mkpsresPrivate") == 0 &&
512 strcmp(current->name, "NONRESOURCE") == 0) {
515 free(current->name);
516 current->name = resource->name;
517 free(current->category);
518 current->category = resource->category;
526 fprintf(stderr, " Using %s\n", current->category);
534 previous = current;
535 current = current->next;
542 } else if (current == NULL) {
546 resource->next = current;
548 if (current == UPRresources[hash]) {