mc/lib/tty
Andrew Borodin 7257f794d2 Update template for .c files.
Add section for forward declarations of local functions. This section is
located before file scope variables because functions can be used in
strucutres (see find.c for example):

/*** forward declarations (file scope functions) *************************************************/

/* button callbacks */
static int start_stop (WButton * button, int action);
static int find_do_view_file (WButton * button, int action);
static int find_do_edit_file (WButton * button, int action);

/*** file scope variables ************************************************************************/

static struct
{
    ...
    bcback_fn callback;
} fbuts[] =
{
    ...
    { B_STOP, NORMAL_BUTTON, N_("S&uspend"), 0, 0, NULL, start_stop },
    ...
    { B_VIEW, NORMAL_BUTTON, N_("&View - F3"), 0, 0, NULL, find_do_view_file },
    { B_VIEW, NORMAL_BUTTON, N_("&Edit - F4"), 0, 0, NULL, find_do_edit_file }
};

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2023-03-19 20:34:24 +03:00
..
Makefile.am Ticket #117: refactoring of SIGWINCH hangling. 2019-09-01 19:22:21 +03:00
color-internal.c Update template for .c files. 2023-03-19 20:34:24 +03:00
color-internal.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00
color-ncurses.c Update template for .c files. 2023-03-19 20:34:24 +03:00
color-slang.c Update template for .c files. 2023-03-19 20:34:24 +03:00
color-slang.h Ticket #3065: support of italic text. 2015-02-17 15:22:53 +03:00
color.c Update template for .c files. 2023-03-19 20:34:24 +03:00
color.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00
key.c Update template for .c files. 2023-03-19 20:34:24 +03:00
key.h Change type from int to gboolean for variables controlled by checkboxes. 2017-01-22 18:44:22 +03:00
keyxdef.c Update copyright years. 2023-01-28 21:38:05 +03:00
mouse.c Update copyright years. 2023-01-28 21:38:05 +03:00
mouse.h Drop old mouse API and use the new one. 2016-04-01 15:29:55 +03:00
tty-internal.c Update copyright years. 2023-01-28 21:38:05 +03:00
tty-internal.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00
tty-ncurses.c Update template for .c files. 2023-03-19 20:34:24 +03:00
tty-ncurses.h Ticket #4200: fix FTBFS with ncurses build with --disable-widec. 2021-08-28 11:46:53 +03:00
tty-slang.c Update template for .c files. 2023-03-19 20:34:24 +03:00
tty-slang.h Ticket #4200: fix FTBFS with ncurses build with --disable-widec. 2021-08-28 11:46:53 +03:00
tty.c Update template for .c files. 2023-03-19 20:34:24 +03:00
tty.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00
win.c Update template for .c files. 2023-03-19 20:34:24 +03:00
win.h Do not duplicate alternate screen switching. 2016-05-05 10:01:13 +03:00
x11conn.c Update template for .c files. 2023-03-19 20:34:24 +03:00
x11conn.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00