Thu, 20 Oct 2011 14:13:56 +0200
Changed author comments + added signatures for upcomming bfile heuristics
/* * settings.c * * Created on: 15.09.2011 * Author: Mike */ #include "settings.h" settings_t* new_settings_t() { settings_t *settings = malloc(sizeof(settings_t)); if (settings != NULL) { #ifdef _WIN32 settings->fileSeparator = '\\'; #else settings->fileSeparator = '/'; #endif /* _WIN32 */ settings->recursive = false; settings->includeSuffixes = false; settings->matchesOnly = false; settings->suffixList = new_string_list_t(); settings->verbose = true; } return settings; } void destroy_settings_t(settings_t* settings) { destroy_string_list_t(settings->suffixList); free(settings); }