mc/lib
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
..
event Update template for .c files. 2023-03-19 20:34:24 +03:00
filehighlight Update template for .c files. 2023-03-19 20:34:24 +03:00
mcconfig Update template for .c files. 2023-03-19 20:34:24 +03:00
search Update template for .c files. 2023-03-19 20:34:24 +03:00
skin Update template for .c files. 2023-03-19 20:34:24 +03:00
strutil Update template for .c files. 2023-03-19 20:34:24 +03:00
tty Update template for .c files. 2023-03-19 20:34:24 +03:00
vfs Update template for .c files. 2023-03-19 20:34:24 +03:00
widget Update template for .c files. 2023-03-19 20:34:24 +03:00
Makefile.am Move definition of file_entry_t to separate file. 2023-03-19 20:34:23 +03:00
charsets.c Update template for .c files. 2023-03-19 20:34:24 +03:00
charsets.h (str_convert_to_input): make inline. 2021-03-14 19:30:42 +03:00
event-types.h Reimplement handling of ev_vfs_print_message_t message. 2015-11-05 14:33:21 +03:00
event.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00
file-entry.h Move definition of file_entry_t to separate file. 2023-03-19 20:34:23 +03:00
filehighlight.h Move definition of file_entry_t to separate file. 2023-03-19 20:34:23 +03:00
fileloc.h Ticket #4413: mcedit: syntax definitions in user location don't work. 2022-12-18 14:20:36 +03:00
fs.h Ticket #3464: (compute_namelen): remove... 2015-05-24 17:59:18 +03:00
glibcompat.c Update copyright years. 2023-01-28 21:38:05 +03:00
glibcompat.h Use G_OPTION_ENTRY_NULL macro. 2021-06-20 15:14:56 +03:00
global.c Update copyright years. 2023-01-28 21:38:05 +03:00
global.h Fix various typos in the source code (closes MidnightCommander/mc#177). 2023-01-28 21:38:05 +03:00
hook.c Update copyright years. 2023-01-28 21:38:05 +03:00
hook.h fixed doxygen documentation 2012-09-10 14:29:53 +03:00
keybind.c Update template for .c files. 2023-03-19 20:34:24 +03:00
keybind.h lib/keybind.h: remove unneeded includes. 2021-11-21 15:00:39 +03:00
lock.c Update template for .c files. 2023-03-19 20:34:24 +03:00
lock.h Changed lock_file() and unlock_file() functions 2012-03-06 11:52:30 +03:00
logging.c Update template for .c files. 2023-03-19 20:34:24 +03:00
logging.h Clarify __attribute ((format (printf))) usage. 2015-11-05 14:33:20 +03:00
mcconfig.h Ticket #3682: drop automatic migration of configuration 2021-02-22 21:16:52 +03:00
search.h mc_search: refactoring. 2022-10-10 21:07:40 +03:00
serialize.c Update template for .c files. 2023-03-19 20:34:24 +03:00
serialize.h lib/mcconfig: fix coding style; apply source file template. 2019-09-01 19:41:12 +03:00
shell.c Update template for .c files. 2023-03-19 20:34:24 +03:00
shell.h Fix typos. 2020-12-31 16:26:46 +03:00
skin.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00
stat-size.h Remove Cray support. 2020-10-13 16:34:55 +03:00
strescape.h Use argument names in function declarations. 2021-06-20 15:14:56 +03:00
strutil.h Fix various typos in the source code (closes MidnightCommander/mc#177). 2023-01-28 21:38:05 +03:00
timefmt.c Update template for .c files. 2023-03-19 20:34:24 +03:00
timefmt.h Fix various typos in the source code (closes MidnightCommander/mc#177). 2023-01-28 21:38:05 +03:00
unixcompat.h Sync with gnulib 4d4877e6c2123c4862c321f3eab28a55bf886216. 2018-11-24 14:40:42 +03:00
util.c Update template for .c files. 2023-03-19 20:34:24 +03:00
util.h Move definition of file_entry_t to separate file. 2023-03-19 20:34:23 +03:00
utilunix.c Update template for .c files. 2023-03-19 20:34:24 +03:00
utilunix.h Lib: removed includes to "src" directory 2011-03-21 23:55:52 +02:00
widget.h Create WBackground widget. 2020-03-08 20:17:29 +03:00