kmalloc: Avoid code duplication.
[dragonfly.git] / contrib / dialog / version.c
blob1e72ce4789f8e5f0362095a1bd3d947f8ce719ca
1 /*
2 * $Id: version.c,v 1.6 2010/01/15 23:34:46 tom Exp $
4 * version.c -- dialog's version string
6 * Copyright 2005-2006,2010 Thomas E. Dickey
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.
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.
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.
23 #include <dialog.h>
25 #define quoted(a) #a
26 #define concat(a,b) a "-" quoted(b)
27 #define DLG_VERSION concat(DIALOG_VERSION,DIALOG_PATCHDATE)
29 const char *
30 dialog_version(void)
32 return DLG_VERSION;