diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:44:47 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-15 17:44:47 +0000 |
commit | ff90170738dad3ab6d302790672c57a3e10e9075 (patch) | |
tree | 7bee01c0f92b2536cb6850cdfbb4d040b61ab8a2 /tmux.h | |
parent | 6ebb1df8fe161678c3550e59774ec4894551ba3e (diff) | |
download | rtmux-ff90170738dad3ab6d302790672c57a3e10e9075.tar.gz rtmux-ff90170738dad3ab6d302790672c57a3e10e9075.tar.bz2 rtmux-ff90170738dad3ab6d302790672c57a3e10e9075.zip |
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.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.364 2009-07-15 17:44:25 nicm Exp $ */ +/* $Id: tmux.h,v 1.365 2009-07-15 17:44:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -940,8 +940,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; |