xref: /dflybsd-src/contrib/dialog/version.c (revision b2dabe2e739bd72461a68ac543307c2dedfb048c)
15382d832SPeter Avalos /*
2*a8e38dc0SAntonio Huete Jimenez  *  $Id: version.c,v 1.7 2022/04/03 22:38:16 tom Exp $
35382d832SPeter Avalos  *
45382d832SPeter Avalos  *  version.c -- dialog's version string
55382d832SPeter Avalos  *
6*a8e38dc0SAntonio Huete Jimenez  *  Copyright 2005-2010,2022	Thomas E. Dickey
75382d832SPeter Avalos  *
85382d832SPeter Avalos  *  This program is free software; you can redistribute it and/or modify
95382d832SPeter Avalos  *  it under the terms of the GNU Lesser General Public License, version 2.1
105382d832SPeter Avalos  *  as published by the Free Software Foundation.
115382d832SPeter Avalos  *
125382d832SPeter Avalos  *  This program is distributed in the hope that it will be useful, but
135382d832SPeter Avalos  *  WITHOUT ANY WARRANTY; without even the implied warranty of
145382d832SPeter Avalos  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
155382d832SPeter Avalos  *  Lesser General Public License for more details.
165382d832SPeter Avalos  *
175382d832SPeter Avalos  *  You should have received a copy of the GNU Lesser General Public
185382d832SPeter Avalos  *  License along with this program; if not, write to
195382d832SPeter Avalos  *	Free Software Foundation, Inc.
205382d832SPeter Avalos  *	51 Franklin St., Fifth Floor
215382d832SPeter Avalos  *	Boston, MA 02110, USA.
225382d832SPeter Avalos  */
23*a8e38dc0SAntonio Huete Jimenez #include <dlg_internals.h>
245382d832SPeter Avalos 
255382d832SPeter Avalos #define quoted(a)	#a
265382d832SPeter Avalos #define concat(a,b)	a "-" quoted(b)
275382d832SPeter Avalos #define DLG_VERSION	concat(DIALOG_VERSION,DIALOG_PATCHDATE)
285382d832SPeter Avalos 
295382d832SPeter Avalos const char *
dialog_version(void)305382d832SPeter Avalos dialog_version(void)
315382d832SPeter Avalos {
325382d832SPeter Avalos     return DLG_VERSION;
335382d832SPeter Avalos }
34