mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
maint: added some templates for newly created files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
8ed0510df5
commit
4a1a758c25
@ -40,14 +40,17 @@
|
|||||||
#include "lib/global.h"
|
#include "lib/global.h"
|
||||||
#include "..."
|
#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
16
maint/template.h
Normal 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
17
maint/template.m4
Normal 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
32
maint/template.shell
Normal 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 *********************************************************
|
Loading…
Reference in New Issue
Block a user