| 314 | |
| 315 | |
| 316 | ResultType input_type::Setup(LPTSTR aOptions, LPTSTR aEndKeys, LPTSTR aMatchList, size_t aMatchList_length) |
| 317 | { |
| 318 | ParseOptions(aOptions); |
| 319 | if (!SetKeyFlags(aEndKeys)) |
| 320 | return FAIL; |
| 321 | if (!SetMatchList(aMatchList, aMatchList_length)) |
| 322 | return FAIL; |
| 323 | |
| 324 | // For maintainability/simplicity/code size, it's allocated even if BufferLengthMax == 0. |
| 325 | if ( !(Buffer = tmalloc(BufferLengthMax + 1)) ) |
| 326 | return MemoryError(); |
| 327 | *Buffer = '\0'; |
| 328 | |
| 329 | return OK; |
| 330 | } |
| 331 | |
| 332 | |
| 333 | ResultType InputStart(input_type &input) |
nothing calls this directly
no test coverage detected