From 3d4e8889889e5e36302454225999f7e146d3219c Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Wed, 12 Jan 2011 14:55:02 +0000 Subject: Update dialog to version 20100428. This changes the license under which dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new features and a new and better libdialog API. The existing libdialog will be kept temporarily as libodialog for compatibility purposes until sade, sysinstall and tzsetup have been either updated or replaced. __FreeBSD_version is now 900030. Discussed on: -current Approved by: core Obtained from: http://invisible-island.net/dialog --- contrib/dialog/version.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 contrib/dialog/version.c (limited to 'contrib/dialog/version.c') diff --git a/contrib/dialog/version.c b/contrib/dialog/version.c new file mode 100644 index 0000000..1e72ce4 --- /dev/null +++ b/contrib/dialog/version.c @@ -0,0 +1,33 @@ +/* + * $Id: version.c,v 1.6 2010/01/15 23:34:46 tom Exp $ + * + * version.c -- dialog's version string + * + * Copyright 2005-2006,2010 Thomas E. Dickey + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License, version 2.1 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this program; if not, write to + * Free Software Foundation, Inc. + * 51 Franklin St., Fifth Floor + * Boston, MA 02110, USA. + */ +#include + +#define quoted(a) #a +#define concat(a,b) a "-" quoted(b) +#define DLG_VERSION concat(DIALOG_VERSION,DIALOG_PATCHDATE) + +const char * +dialog_version(void) +{ + return DLG_VERSION; +} -- cgit v1.1