1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: xdefaults.c |
2 | * File: xdefaults.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: xdefaults.C,v 1.9 2004/02/01 01:34:41 pcg Exp $ |
4 | * $Id: xdefaults.C,v 1.10 2004/02/13 12:11:05 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
7 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1997,1998 mj olesen <olesen@me.queensu.ca> |
9 | * Copyright (c) 1997,1998 mj olesen <olesen@me.queensu.ca> |
… | |
… | |
498 | { |
498 | { |
499 | if (optList_isReverse(entry)) |
499 | if (optList_isReverse(entry)) |
500 | flag = flag == On ? Off : On; |
500 | flag = flag == On ? Off : On; |
501 | if (optList_strlen(entry)) |
501 | if (optList_strlen(entry)) |
502 | { /* string value */ |
502 | { /* string value */ |
503 | const char *str = argv[++i]; |
503 | const char *str = argv[++i]; |
504 | |
504 | |
505 | #ifdef DEBUG_RESOURCES |
505 | #ifdef DEBUG_RESOURCES |
506 | fprintf(stderr, "string (%s,%s) = ", |
506 | fprintf(stderr, "string (%s,%s) = ", |
507 | optList[entry].opt ? optList[entry].opt : "nil", |
507 | optList[entry].opt ? optList[entry].opt : "nil", |
508 | optList[entry].kw ? optList[entry].kw : "nil"); |
508 | optList[entry].kw ? optList[entry].kw : "nil"); |