Rev 10 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 10 | Rev 13 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | // - Alles in Funktionen kapseln. Als Parameter: Array of integer (= dot notation) oder Array of byte (= hex notation) |
35 | // - Alles in Funktionen kapseln. Als Parameter: Array of integer (= dot notation) oder Array of byte (= hex notation) |
36 | 36 | ||
37 | // MINOR THINGS |
37 | // MINOR THINGS |
38 | // - All stderr: Output new line at stdOut and close stdOut |
38 | // - All stderr: Output new line at stdOut and close stdOut |
39 | // - Make as much GMP as possible (e.g. nBinary counter, nBinaryWork etc) |
39 | // - Make as much GMP as possible (e.g. nBinary counter, nBinaryWork etc) |
40 | // - überlegen, wie man die return-codes (errorcodes) besser verteilt/definiert |
40 | // - Think aout how to better define the return codes (error codes) |
41 | // - irgendwie in funktionen kapseln (z.b. class-tag-parser usw) |
41 | // - irgendwie in funktionen kapseln (z.b. class-tag-parser usw) |
42 | // - "TODO"s beachten (unklare dinge) |
42 | // - Look at all "TODO"s (especially things which are not clear) |
43 | 43 | ||
44 | // MINOR PROBLEMS IN CLI-INTERPRETATION: |
44 | // MINOR PROBLEMS IN CLI-INTERPRETATION: |
45 | // - A wrong error message is shown when trying to encode "-0.0" or "x" |
45 | // - A wrong error message is shown when trying to encode "-0.0" or "x" |
46 | // - 2.9a9 is not recognized as error |
46 | // - 2.9a9 is not recognized as error |
47 | // - "./oid R 2.999" is not interpretet correctly |
47 | // - "./oid R 2.999" is not interpretet correctly |
Line 240... | Line 240... | ||
240 | fprintf(stderr, "Incomplete command line.\n"); |
240 | fprintf(stderr, "Incomplete command line.\n"); |
241 | return EXIT_FAILURE; |
241 | return EXIT_FAILURE; |
242 | } |
242 | } |
243 | } |
243 | } |
244 | } else { |
244 | } else { |
245 | if (fInName != NULL) { // TODO: (Unklar) Was bewirkt das? Auch für fOutName notwendig? |
245 | if (fInName != NULL) { // TODO: (Not clear): What does this? Is this also important for fOutName? |
246 | break; |
246 | break; |
247 | } |
247 | } |
248 | 248 | ||
249 | nAfterOption = 1; |
249 | nAfterOption = 1; |
250 | if (strlen(argv[n]) + strlen(abCommandLine) >= sizeof(abCommandLine)-2) { // TODO: warum -2 ? |
250 | if (strlen(argv[n]) + strlen(abCommandLine) >= sizeof(abCommandLine)-2) { // TODO: warum -2 ? |
Line 256... | Line 256... | ||
256 | if (abCommandLine == NULL) { |
256 | if (abCommandLine == NULL) { |
257 | fprintf(stderr, "Memory reallocation failure!\n"); |
257 | fprintf(stderr, "Memory reallocation failure!\n"); |
258 | return EXIT_FAILURE; |
258 | return EXIT_FAILURE; |
259 | } |
259 | } |
260 | } |
260 | } |
261 | strcat(abCommandLine, argv[n]); // (fügt ein \0 automatisch an) |
261 | strcat(abCommandLine, argv[n]); // (automatically inserts an "\0") |
262 | if (n != argc - 1 && nMode != MODE_HEX_TO_DOT) { |
262 | if (n != argc - 1 && nMode != MODE_HEX_TO_DOT) { |
263 | strcat(abCommandLine, "."); |
263 | strcat(abCommandLine, "."); |
264 | } |
264 | } |
265 | } |
265 | } |
266 | n++; |
266 | n++; |