diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-08-29 23:19:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-08-29 23:19:53 +0000 |
commit | e3430b38f830e9fa001b214615ea81090184b962 (patch) | |
tree | c94fa2852b2ca53c02c935e854ec070df793bd9a /usr.bin/tmux | |
parent | 4cb67ce140aec47637db332e641b711b85f8a7b0 (diff) |
struct args_entry can go into arguments.c.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/arguments.c | 8 | ||||
-rw-r--r-- | usr.bin/tmux/tmux.h | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c index 0628adaa27f..feb4faffc41 100644 --- a/usr.bin/tmux/arguments.c +++ b/usr.bin/tmux/arguments.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arguments.c,v 1.10 2014/10/20 23:27:14 nicm Exp $ */ +/* $OpenBSD: arguments.c,v 1.11 2015/08/29 23:19:52 nicm Exp $ */ /* * Copyright (c) 2010 Nicholas Marriott <nicm@users.sourceforge.net> @@ -29,6 +29,12 @@ * Manipulate command arguments. */ +struct args_entry { + u_char flag; + char *value; + RB_ENTRY(args_entry) entry; +}; + struct args_entry *args_find(struct args *, u_char); RB_GENERATE(args_tree, args_entry, entry, args_cmp); diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index c97af5b8ca5..c9b27912fdb 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.543 2015/08/29 09:36:46 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.544 2015/08/29 23:19:52 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1257,13 +1257,8 @@ struct client { TAILQ_HEAD(clients, client); /* Parsed arguments structures. */ -struct args_entry { - u_char flag; - char *value; - RB_ENTRY(args_entry) entry; -}; +struct args_entry; RB_HEAD(args_tree, args_entry); - struct args { struct args_tree tree; int argc; |