2005-07-04 02:47:35 +04:00
|
|
|
/*
|
|
|
|
REPLACE: one line comment what the file is for.
|
2005-02-07 03:06:16 +03:00
|
|
|
|
2011-10-15 14:56:47 +04:00
|
|
|
Copyright (C) <YEARS>
|
2014-02-12 10:33:10 +04:00
|
|
|
Free Software Foundation, Inc.
|
2005-02-07 03:06:16 +03:00
|
|
|
|
|
|
|
Written by:
|
|
|
|
AUTHOR <MAIL>, YEARS.
|
|
|
|
|
2005-07-04 02:47:35 +04:00
|
|
|
This file is part of the Midnight Commander.
|
2005-02-07 03:06:16 +03:00
|
|
|
|
2011-10-15 14:56:47 +04:00
|
|
|
The Midnight Commander is free software: you can redistribute it
|
2005-07-04 02:47:35 +04:00
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
2011-10-15 14:56:47 +04:00
|
|
|
published by the Free Software Foundation, either version 3 of the License,
|
|
|
|
or (at your option) any later version.
|
2005-07-04 02:47:35 +04:00
|
|
|
|
2011-10-15 14:56:47 +04:00
|
|
|
The Midnight Commander is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2005-02-07 03:06:16 +03:00
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2011-10-15 14:56:47 +04:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2005-02-07 03:06:16 +03:00
|
|
|
*/
|
|
|
|
|
2009-02-07 00:09:50 +03:00
|
|
|
/** \file
|
|
|
|
* \brief This is a template file (here goes brief description).
|
|
|
|
* \author Author1
|
|
|
|
* \author Author2
|
|
|
|
* \date 20xx
|
|
|
|
*
|
|
|
|
* Detailed description.
|
|
|
|
*/
|
|
|
|
|
2005-02-09 22:46:32 +03:00
|
|
|
#include <config.h>
|
2005-02-07 03:06:16 +03:00
|
|
|
|
2005-02-08 12:06:51 +03:00
|
|
|
#include <System Headers> /* see maint/headers.txt for details */
|
2005-02-07 03:06:16 +03:00
|
|
|
|
2010-01-21 15:11:14 +03:00
|
|
|
#include "lib/global.h"
|
2005-02-07 03:06:16 +03:00
|
|
|
#include "..."
|
|
|
|
|
2010-11-08 12:47:55 +03:00
|
|
|
/*** global variables ****************************************************************************/
|
2005-02-07 03:06:16 +03:00
|
|
|
|
2010-11-08 12:47:55 +03:00
|
|
|
/*** file scope macro definitions ****************************************************************/
|
2005-02-07 03:06:16 +03:00
|
|
|
|
2010-11-08 12:47:55 +03:00
|
|
|
/*** file scope type declarations ****************************************************************/
|
2005-02-07 03:06:16 +03:00
|
|
|
|
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-02-24 09:27:11 +03:00
|
|
|
/*** forward declarations (file scope functions) *************************************************/
|
|
|
|
|
2010-11-08 12:47:55 +03:00
|
|
|
/*** file scope variables ************************************************************************/
|
2005-02-07 03:06:16 +03:00
|
|
|
|
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-02-24 09:27:11 +03:00
|
|
|
/* --------------------------------------------------------------------------------------------- */
|
2010-11-08 12:47:55 +03:00
|
|
|
/*** file scope functions ************************************************************************/
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|
2005-02-07 03:06:16 +03:00
|
|
|
|
2010-11-08 12:47:55 +03:00
|
|
|
/* --------------------------------------------------------------------------------------------- */
|
|
|
|
/*** public functions ****************************************************************************/
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|