maint: added some templates for newly created files

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2010-11-08 11:47:55 +02:00 committed by Andrew Borodin
parent 8ed0510df5
commit 4a1a758c25
4 changed files with 74 additions and 6 deletions

View File

@ -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 ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */

16
maint/template.h Normal file
View File

@ -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 */

17
maint/template.m4 Normal file
View File

@ -0,0 +1,17 @@
dnl @synopsis MACRO_NAME(MACRO-PARAM1,[MACRO-PARAM2],...)
dnl
dnl <one line comment what the file is for>
dnl
dnl This macro takes next arguments:
dnl ...
dnl
dnl This macro calls:
dnl
dnl AC_SUBST(XX_SOME_SUBSTED_VAR)
dnl
dnl @category <CategoryNameHere>
dnl @author Firstname Secondname <your@email.in.net>
dnl @version <modified date>
dnl @license AllPermissive
dnl @copyright Free Software Foundation, Inc.

32
maint/template.shell Normal file
View File

@ -0,0 +1,32 @@
#!/bin/bash
# Midmight Commander - <one line comment what the file is for>
#
# Copyright (C) <YEARS> Free Software Foundation, Inc.
#
# Written by:
# Firstname Secondname <your@email.in.net>
#
#
# 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 *********************************************************