lib/version.c

説明を見る。
00001 /* 
00002    Unix SMB/CIFS implementation.
00003    Samba Version functions
00004    
00005    Copyright (C) Stefan Metzmacher      2003
00006    
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2 of the License, or
00010    (at your option) any later version.
00011    
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016    
00017    You should have received a copy of the GNU General Public License
00018    along with this program; if not, write to the Free Software
00019    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 */
00021 
00022 #include "includes.h"
00023 
00024 const char *samba_version_string(void)
00025 {
00026 #ifndef SAMBA_VERSION_VENDOR_SUFFIX
00027         return SAMBA_VERSION_OFFICIAL_STRING;
00028 #else
00029         static fstring samba_version;
00030         static BOOL init_samba_version;
00031 #ifdef SAMBA_VERSION_VENDOR_PATCH
00032         fstring tmp_version;
00033         size_t remaining;
00034 #endif
00035 
00036         if (init_samba_version)
00037                 return samba_version;
00038 
00039         snprintf(samba_version,sizeof(samba_version),"%s-%s",
00040                 SAMBA_VERSION_OFFICIAL_STRING,
00041                 SAMBA_VERSION_VENDOR_SUFFIX);
00042 
00043 #ifdef SAMBA_VERSION_VENDOR_PATCH
00044         remaining = sizeof(samba_version)-strlen(samba_version);
00045         snprintf( tmp_version, sizeof(tmp_version),  "-%d", SAMBA_VERSION_VENDOR_PATCH);
00046         strlcat( samba_version, tmp_version, remaining-1 );
00047 #endif
00048 
00049         init_samba_version = True;
00050         return samba_version;
00051 #endif
00052 }

Sambaに対してSat Aug 29 21:23:00 2009に生成されました。  doxygen 1.4.7