Index: trunk/src/conf_act.c =================================================================== --- trunk/src/conf_act.c (revision 1895) +++ trunk/src/conf_act.c (revision 1896) @@ -251,7 +251,7 @@ { int expected = argv[0][0] - '0'; assert(argc == 1); -printf("Checkbuffer: %d == %d -> %d\n", (conf_core.editor.buffer_number + 1), expected, (conf_core.editor.buffer_number + 1) == expected ); + return (conf_core.editor.buffer_number + 1) == expected; } Index: trunk/src/flags.c =================================================================== --- trunk/src/flags.c (revision 1895) +++ trunk/src/flags.c (revision 1896) @@ -36,20 +36,7 @@ #include "data.h" #include "hid_flags.h" -#warning TODO: these must be removed in favor of conf +#warning TODO: REMOVE THIS FILE. RCSID("$Id$"); -/* The cast to (int) is ONLY valid because we know we are - * taking offsets on structures where the offset will fit - * in an integer variable. It silences compile warnings on - * 64bit machines. - */ -/* -#define OffsetOf(a,b) (int)(size_t)(&(((a *)0)->b)) -HID_Flag flags_flag_list[] = { - {"buffer", FlagBuffer, 0} - , -}; - -*/ Index: trunk/src/hid_flags.c =================================================================== --- trunk/src/hid_flags.c (revision 1895) +++ trunk/src/hid_flags.c (revision 1896) @@ -77,32 +77,6 @@ // abort(); } } - -#warning TODO: check this in practice -#if 0 - cp = strchr(name, ','); - if (cp) { - int wv; - - if (nbuf < (cp - name + 1)) { - nbuf = cp - name + 10; - buf = (char *) realloc(buf, nbuf); - } - memcpy(buf, name, cp - name); - buf[cp - name] = 0; - /* A number without units is just a number. */ - wv = GetValueEx(cp + 1, NULL, NULL, NULL, NULL, NULL); - f = hid_find_flag(buf); - if (!f) - return 0; - return f->function(f->parm) == wv; - } - - f = hid_find_flag(name); - if (!f) - return 0; - return f->function(f->parm); -#endif }