xref: /freebsd/contrib/dialog/version.c (revision 0761549550dad58bfcc0f227ba6ffa78b4d8c017)
1 /*
2  *  $Id: version.c,v 1.6 2010/01/15 23:34:46 tom Exp $
3  *
4  *  version.c -- dialog's version string
5  *
6  *  Copyright 2005-2006,2010	Thomas E. Dickey
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU Lesser General Public License, version 2.1
10  *  as published by the Free Software Foundation.
11  *
12  *  This program is distributed in the hope that it will be useful, but
13  *  WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  *  Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public
18  *  License along with this program; if not, write to
19  *	Free Software Foundation, Inc.
20  *	51 Franklin St., Fifth Floor
21  *	Boston, MA 02110, USA.
22  */
23 #include <dialog.h>
24 
25 #define quoted(a)	#a
26 #define concat(a,b)	a "-" quoted(b)
27 #define DLG_VERSION	concat(DIALOG_VERSION,DIALOG_PATCHDATE)
28 
29 const char *
30 dialog_version(void)
31 {
32     return DLG_VERSION;
33 }
34