Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

cvsid.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- A telephony toolkit for Linux.
00003  *
00004  * CVSID Macro for including CVS file Id in source files.
00005  * 
00006  * Copyright (C) 2004, William Waites
00007  *
00008  * William Waites <ww@styx.org>
00009  *
00010  * This program is free software, distributed under the following
00011  * terms:
00012  *
00013  *        1. Any copies of this file must retain this copyright
00014  *           notice intact.
00015  *        2. A non-exclusive, non-cancellible license is given
00016  *           to Digium Inc. (Linux Support Services) in order that
00017  *           they may license this file to third parties under terms
00018  *           of their choosing on the condition that if they do so
00019  *           they must also make this file, or any derivative of
00020  *           it, available under terms of the the GNU General Public
00021  *           License.
00022  *        3. If you have not recieved this file under a proprietary
00023  *           license from Digium or one of their licensees, or the
00024  *           author, it is distributed to you under terms of the GNU
00025  *           General Public License.
00026  * 
00027  * If you do not have a copy of the GNU GPL, which should be
00028  * available in the root directory of this source tree, it can
00029  * be found at:
00030  *
00031  *        http://www.gnu.org/licenses/gpl.html
00032  *           
00033  */
00034 
00035 /*
00036  * To use this macro, in the source file put the lines:
00037  *
00038  * #include <asterisk/cvsid.h>
00039  * #ifndef lint
00040  * CVSID("$Id: cvsid.h,v 1.2 2004/01/27 00:30:03 markster Exp $");
00041  * #endif
00042  *
00043  * You will then be able to run strings(1) on the resulting
00044  * binary and find out what revisions of each source file were
00045  * used to build it, since when checked into a CVS repository,
00046  * the portion of the string between the dollar signs will be
00047  * replaced with version information for the file.
00048  */
00049 
00050 #ifndef ASTERISK_CVSID_H
00051 #define ASTERISK_CVSID_H
00052 
00053 #ifdef __GNUC__
00054 #define CVSID(x) static char __cvsid[] __attribute__ ((unused)) = x
00055 #else
00056 #define CVSID(x) static char __cvsid[] = x
00057 #endif
00058 
00059 #endif /* ASTERISK_CVSID_H */
00060 
00061 

Generated on Sat Nov 25 19:09:34 2006 for Asterisk by  doxygen 1.4.2