settings.c

changeset 34
fa9bda32de17
parent 33
1a2d7298bc82
child 35
35120de6ee53
--- a/settings.c	Tue Oct 02 10:49:25 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/*
- * 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->matchesOnly        = false;
-    settings->includeSuffixes         = new_string_list_t();
-    settings->excludeSuffixes    = new_string_list_t();
-    settings->verbose            = true;
-    settings->bfileHeuristics    = new_bfile_heuristics_t();
-    settings->confusing_lnlen    = false;
-    settings->regex              = new_regex_parser_t();
-  }
-
-  return settings;
-}
-
-void destroy_settings_t(settings_t* settings) {
-  destroy_regex_parser_t(settings->regex);
-  destroy_string_list_t(settings->includeSuffixes);
-  destroy_string_list_t(settings->excludeSuffixes);
-  destroy_bfile_heuristics_t(settings->bfileHeuristics);
-  free(settings);
-}

mercurial