diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-12-04 22:11:23 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-12-04 22:11:23 +0000 |
commit | 1caa73afb4da381425160cbff68284a4dab1470b (patch) | |
tree | a5fa780cb150af303f72d4ec736fba9316d293a1 /tmux.h | |
parent | ddb5bb80fa9b24f47a1e5af9d808427d316bcf4a (diff) | |
download | rtmux-1caa73afb4da381425160cbff68284a4dab1470b.tar.gz rtmux-1caa73afb4da381425160cbff68284a4dab1470b.tar.bz2 rtmux-1caa73afb4da381425160cbff68284a4dab1470b.zip |
Sync OpenBSD patchset 580:
Eliminate duplicate code and ease the passage for server-wide options by adding
a -w flag to set-option and show-options and making setw and showw aliases to
set -w and show -w.
Note: setw and showw are still there, but now aliases for set -w and show -w.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 28 |
1 files changed, 7 insertions, 21 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.528 2009-12-02 15:10:44 tcunha Exp $ */ +/* $Id: tmux.h,v 1.529 2009-12-04 22:11:23 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1232,8 +1232,6 @@ struct set_option_entry { const char **choices; }; -extern const struct set_option_entry set_option_table[]; -extern const struct set_option_entry set_window_option_table[]; /* tmux.c */ extern struct options global_s_options; @@ -1376,24 +1374,6 @@ void tty_keys_init(struct tty *); void tty_keys_free(struct tty *); int tty_keys_next(struct tty *); -/* options-cmd.c */ -const char *set_option_print( - const struct set_option_entry *, struct options_entry *); -void set_option_string(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *, int); -void set_option_number(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); -void set_option_keys(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); -void set_option_colour(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); -void set_option_attributes(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); -void set_option_flag(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); -void set_option_choice(struct cmd_ctx *, - struct options *, const struct set_option_entry *, char *); - /* paste.c */ void paste_init_stack(struct paste_stack *); void paste_free_stack(struct paste_stack *); @@ -1409,6 +1389,12 @@ int paste_replace(struct paste_stack *, u_int, char *, size_t); extern const char clock_table[14][5][5]; void clock_draw(struct screen_write_ctx *, int, int); +/* cmd-set-option.c */ +extern const struct set_option_entry set_session_option_table[]; +extern const struct set_option_entry set_window_option_table[]; +const char *cmd_set_option_print( + const struct set_option_entry *, struct options_entry *); + /* cmd.c */ int cmd_pack_argv(int, char **, char *, size_t); int cmd_unpack_argv(char *, size_t, int, char ***); |