From: Jonas Fonseca Date: Sun, 9 May 2010 21:42:28 +0000 (-0400) Subject: Restructure option management code to separate section X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb129e3ab126b4b618268ed2b9c8b30382680576;p=tig.git Restructure option management code to separate section --- diff --git a/tig.c b/tig.c index 35b0cfa..b11c04b 100644 --- a/tig.c +++ b/tig.c @@ -2320,6 +2320,11 @@ static struct view views[] = { #define view_is_displayed(view) \ (view == display[0] || view == display[1]) + +/* + * View drawing. + */ + static inline void set_view_attr(struct view *view, enum line_type type) { @@ -2709,6 +2714,11 @@ redraw_display(bool clear) } } + +/* + * Option management + */ + static void toggle_enum_option_do(unsigned int *opt, const char *help, const struct enum_map *map, size_t size)