Having to update NSETOPTION/NSETWINDOWOPTION when adding new options is a bit

annoying and it is only use for iterating, so use a sentinel to mark the end of
each array instead. Different fix for a problem pointed out by Kalle Olavi
Niemitalo.
This commit is contained in:
Nicholas Marriott
2009-07-15 07:50:34 +00:00
parent 615d85fb23
commit ca617d679f
6 changed files with 17 additions and 27 deletions

2
tmux.h
View File

@ -941,8 +941,6 @@ struct set_option_entry {
};
extern const struct set_option_entry set_option_table[];
extern const struct set_option_entry set_window_option_table[];
#define NSETOPTION 26
#define NSETWINDOWOPTION 20
/* tmux.c */
extern volatile sig_atomic_t sigwinch;