Diff for dead/diplomovka/xgrafix/src/Attic/xgnox.c between version 1.1 and 1.2
| version 1.1, 2001/09/20 14:12:00 |
version 1.2, 2002/07/07 23:57:58 |
| Line 89 void XGInit(int argc, char **argv, doubl |
|
| Line 89 void XGInit(int argc, char **argv, doubl |
|
| /*****************************************/ |
/*****************************************/ |
| /* Getting the code and input file names */ |
/* Getting the code and input file names */ |
| |
|
| sprintf(theCodeName, "%s", argv[0]); |
if (snprintf(theCodeName, theCodeName_LEN, "%s", argv[0]) == -1){ |
| |
fprintf(stderr, "Warning: theCodeName truncated at %s:%d\n", __FILE__, __LINE__); |
| |
} |
| theInputFile[0]='\0'; |
theInputFile[0]='\0'; |
| |
|
| /* Try to read the input parameters, i.e. -i -d -dp, etc. options */ |
/* Try to read the input parameters, i.e. -i -d -dp, etc. options */ |
| Line 101 void XGInit(int argc, char **argv, doubl |
|
| Line 103 void XGInit(int argc, char **argv, doubl |
|
| switch (argv[index][1]) { |
switch (argv[index][1]) { |
| case 'd': |
case 'd': |
| if (argv[index][2]!='\0' && argv[index][2]!='p' && |
if (argv[index][2]!='\0' && argv[index][2]!='p' && |
| strcmp(argv[index],"-display")) { |
strcmp(argv[index],"-display")) { |
| PrintUnknownOption(argv[index],argv[0]); |
PrintUnknownOption(argv[index],argv[0]); |
| exit(1); |
exit(1); |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|