comparison config.c @ 1140:4490c9c12272

Detect system type from filename if header based methods fail. Allow overriding system type from command line.
author Michael Pavone <pavone@retrodev.com>
date Mon, 02 Jan 2017 21:46:26 -0800
parents 540cc4a7d626
children 369da70ee2c2
comparison
equal deleted inserted replaced
1139:160e3f597cec 1140:4490c9c12272
114 return ret; 114 return ret;
115 } 115 }
116 116
117 tern_node *parse_bundled_config(char *config_name) 117 tern_node *parse_bundled_config(char *config_name)
118 { 118 {
119 long confsize; 119 uint32_t confsize;
120 char *confdata = read_bundled_file(config_name, &confsize); 120 char *confdata = read_bundled_file(config_name, &confsize);
121 tern_node *ret = NULL; 121 tern_node *ret = NULL;
122 if (confdata) { 122 if (confdata) {
123 confdata[confsize] = 0; 123 confdata[confsize] = 0;
124 ret = parse_config(confdata); 124 ret = parse_config(confdata);