| 383 | } |
| 384 | |
| 385 | FIO_ctx_t* FIO_createContext(void) |
| 386 | { |
| 387 | FIO_ctx_t* const ret = (FIO_ctx_t*)malloc(sizeof(FIO_ctx_t)); |
| 388 | if (!ret) EXM_THROW(21, "Allocation error : not enough memory"); |
| 389 | |
| 390 | ret->currFileIdx = 0; |
| 391 | ret->hasStdinInput = 0; |
| 392 | ret->hasStdoutOutput = 0; |
| 393 | ret->nbFilesTotal = 1; |
| 394 | ret->nbFilesProcessed = 0; |
| 395 | ret->totalBytesInput = 0; |
| 396 | ret->totalBytesOutput = 0; |
| 397 | return ret; |
| 398 | } |
| 399 | |
| 400 | void FIO_freePreferences(FIO_prefs_t* const prefs) |
| 401 | { |