From 4a1a758c2592095c758b923a8d06327864d68c5f Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Mon, 8 Nov 2010 11:47:55 +0200 Subject: [PATCH] maint: added some templates for newly created files Signed-off-by: Slava Zanko --- maint/template.c | 15 +++++++++------ maint/template.h | 16 ++++++++++++++++ maint/template.m4 | 17 +++++++++++++++++ maint/template.shell | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+), 6 deletions(-) create mode 100644 maint/template.h create mode 100644 maint/template.m4 create mode 100644 maint/template.shell diff --git a/maint/template.c b/maint/template.c index 4f851fcb0..02edd5f4c 100644 --- a/maint/template.c +++ b/maint/template.c @@ -40,14 +40,17 @@ #include "lib/global.h" #include "..." -/*** global variables **************************************************/ +/*** global variables ****************************************************************************/ -/*** file scope macro definitions **************************************/ +/*** file scope macro definitions ****************************************************************/ -/*** file scope type declarations **************************************/ +/*** file scope type declarations ****************************************************************/ -/*** file scope variables **********************************************/ +/*** file scope variables ************************************************************************/ -/*** file scope functions **********************************************/ +/*** file scope functions ************************************************************************/ +/* --------------------------------------------------------------------------------------------- */ -/*** public functions **************************************************/ +/* --------------------------------------------------------------------------------------------- */ +/*** public functions ****************************************************************************/ +/* --------------------------------------------------------------------------------------------- */ diff --git a/maint/template.h b/maint/template.h new file mode 100644 index 000000000..97aaa55d5 --- /dev/null +++ b/maint/template.h @@ -0,0 +1,16 @@ +#ifndef MC__TEMPLATE_H +#define MC__TEMPLATE_H + +/*** typedefs(not structures) and defined constants **********************************************/ + +/*** enums ***************************************************************************************/ + +/*** structures declarations (and typedefs of structures)*****************************************/ + +/*** global variables defined in .c file *********************************************************/ + +/*** declarations of public functions ************************************************************/ + +/*** inline functions ****************************************************************************/ + +#endif /* MC__TEMPLATE_H */ diff --git a/maint/template.m4 b/maint/template.m4 new file mode 100644 index 000000000..1fac622c3 --- /dev/null +++ b/maint/template.m4 @@ -0,0 +1,17 @@ +dnl @synopsis MACRO_NAME(MACRO-PARAM1,[MACRO-PARAM2],...) +dnl +dnl +dnl +dnl This macro takes next arguments: +dnl ... +dnl +dnl This macro calls: +dnl +dnl AC_SUBST(XX_SOME_SUBSTED_VAR) +dnl +dnl @category +dnl @author Firstname Secondname +dnl @version +dnl @license AllPermissive +dnl @copyright Free Software Foundation, Inc. + diff --git a/maint/template.shell b/maint/template.shell new file mode 100644 index 000000000..f4626714b --- /dev/null +++ b/maint/template.shell @@ -0,0 +1,32 @@ +#!/bin/bash + +# Midmight Commander - +# +# Copyright (C) Free Software Foundation, Inc. +# +# Written by: +# Firstname Secondname +# +# +# This file is part of the Midnight Commander. +# +# The Midnight Commander is free software; you can redistribute it +# and/or modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301, USA. + +#*** include section (source functions, for example) ******************* + +#*** file scope functions ********************************************** + +#*** main code *********************************************************