/Users/ericb/Desktop/SRC680_m247/starmath/unxmacxi.pro_debug/misc/sm_dflt_version.c

Go to the documentation of this file.
00001 /*************************************************************************
00002  *
00003  *  OpenOffice.org - a multi-platform office productivity suite
00004  *
00005  *  $RCSfile: version.c,v $
00006  *
00007  *  $Revision: 1.7 $
00008  *
00009  *  last change: $Author: hr $ $Date: 2006/06/19 17:18:25 $
00010  *
00011  *  The Contents of this file are made available subject to
00012  *  the terms of GNU Lesser General Public License Version 2.1.
00013  *
00014  *
00015  *    GNU Lesser General Public License Version 2.1
00016  *    =============================================
00017  *    Copyright 2005 by Sun Microsystems, Inc.
00018  *    901 San Antonio Road, Palo Alto, CA 94303, USA
00019  *
00020  *    This library is free software; you can redistribute it and/or
00021  *    modify it under the terms of the GNU Lesser General Public
00022  *    License version 2.1, as published by the Free Software Foundation.
00023  *
00024  *    This library is distributed in the hope that it will be useful,
00025  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00026  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00027  *    Lesser General Public License for more details.
00028  *
00029  *    You should have received a copy of the GNU Lesser General Public
00030  *    License along with this library; if not, write to the Free Software
00031  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00032  *    MA  02111-1307  USA
00033  *
00034  ************************************************************************/
00035 
00036 
00037 
00038 #include <sm_dflt_version.h>
00039 
00040 
00041 struct VersionInfo
00042 {
00043         const char*     pTime;
00044         const char*     pDate;
00045         const char*     pUpd;
00046         const char*     pMinor;
00047         const char*     pBuild;
00048         const char*     pInpath;
00049 };
00050 
00051 static const struct VersionInfo g_aVersionInfo =
00052 {
00053         __TIME__,
00054         __DATE__,
00055         _UPD,
00056         _LAST_MINOR,
00057         _BUILD,
00058         _INPATH
00059 };
00060 
00061 #ifdef WNT
00062 __declspec(dllexport) const struct VersionInfo* GetVersionInfo(void);
00063 #endif
00064 
00065 #ifdef WNT
00066 __declspec(dllexport) const struct VersionInfo* GetVersionInfo(void)
00067 #else
00068 const struct VersionInfo *GetVersionInfo(void)
00069 #endif
00070 {
00071         return &g_aVersionInfo;
00072 }
00073 
00074 #if 0
00075 #include <stdio.h>
00076 
00077 int main( int argc, char **argv )
00078 {
00079         const VersionInfo *pInfo = GetVersionInfo();
00080         fprintf( stderr, "Date : %s\n", pInfo->pDate);
00081         fprintf( stderr, "Time : %s\n", pInfo->pTime);
00082         fprintf( stderr, "UPD : %s\n", pInfo->pUpd);
00083         delete pInfo;
00084         return 0;
00085 }
00086 #endif
00087 

Generated on Wed Feb 20 17:21:57 2008 for maths by  doxygen 1.5.1