comparison config.c @ 431:440efd7d27a9

Read key bindings from config file
author Mike Pavone <pavone@retrodev.com>
date Wed, 10 Jul 2013 22:48:17 -0700
parents 7f84090ab1cd
children 140af5509ce7
comparison
equal deleted inserted replaced
430:7f84090ab1cd 431:440efd7d27a9
120 char * key = curline; 120 char * key = curline;
121 if (*key) { 121 if (*key) {
122 if (prefix) { 122 if (prefix) {
123 key = alloc_concat(prefix, key); 123 key = alloc_concat(prefix, key);
124 } 124 }
125 head = tern_insert_ptr(head, key, val); 125 head = tern_insert_ptr(head, key, strdup(val));
126 if (prefix) { 126 if (prefix) {
127 free(key); 127 free(key);
128 } 128 }
129 } 129 }
130 } 130 }