annotate.c (39ff7cdb5a5e6b75dd049255615828c6531cd109) | annotate.c (f06cff7c59b6b252d667435d7baad48687b41002) |
---|---|
1#include "../../util/util.h" 2#include "../browser.h" 3#include "../helpline.h" 4#include "../ui.h" 5#include "../util.h" 6#include "../../util/annotate.h" 7#include "../../util/hist.h" 8#include "../../util/sort.h" --- 1138 unchanged lines hidden (view full) --- 1147 if (prefixcmp(var, "annotate.") != 0) 1148 return 0; 1149 1150 name = var + 9; 1151 cfg = bsearch(name, annotate__configs, ARRAY_SIZE(annotate__configs), 1152 sizeof(struct annotate_config), annotate_config__cmp); 1153 1154 if (cfg == NULL) | 1#include "../../util/util.h" 2#include "../browser.h" 3#include "../helpline.h" 4#include "../ui.h" 5#include "../util.h" 6#include "../../util/annotate.h" 7#include "../../util/hist.h" 8#include "../../util/sort.h" --- 1138 unchanged lines hidden (view full) --- 1147 if (prefixcmp(var, "annotate.") != 0) 1148 return 0; 1149 1150 name = var + 9; 1151 cfg = bsearch(name, annotate__configs, ARRAY_SIZE(annotate__configs), 1152 sizeof(struct annotate_config), annotate_config__cmp); 1153 1154 if (cfg == NULL) |
1155 return -1; 1156 1157 *cfg->value = perf_config_bool(name, value); | 1155 ui__warning("%s variable unknown, ignoring...", var); 1156 else 1157 *cfg->value = perf_config_bool(name, value); |
1158 return 0; 1159} 1160 1161void annotate_browser__init(void) 1162{ 1163 perf_config(annotate__config, NULL); 1164} | 1158 return 0; 1159} 1160 1161void annotate_browser__init(void) 1162{ 1163 perf_config(annotate__config, NULL); 1164} |