A.2   File Heading

Every file containing C or Tcl code--whether it is a header file, a resource file, or a file that implements a host tool, a library of routines, or an application--must contain a standard file heading. The conventions in this section define the standard for the heading that must come at the beginning of every source file.

The file heading consists of the blocks described below. The blocks are separated by one or more empty lines (in Tcl, empty comment lines) and contain no empty lines within the block. This facilitates automated processing of the heading.

The version number is a two-digit number and a letter (for example, 03c). The letter is incremented for internal changes, and the number is incremented for large changes, especially those that materially affect the module's external interface.

The following example shows a standard file heading from a C source file:

Example A-1:  Standard File Heading (C Version)

/* fooLib.c - foo subroutine library */ 
 
/* Copyright 1984-1995 Wind River Systems, Inc. */ 
 
/* 
modification history 
-------------------- 
02a,15sep92,nfs  added defines MAX_FOOS and MIN_FATS. 
01b,15feb86,dnw  added routines fooGet() and fooPut(); 
                 added check for invalid index in fooFind(). 
01a,10feb86,dnw  written. 
*/