File: version.c

package info (click to toggle)
dialog 1.0-20060221-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,040 kB
  • ctags: 1,239
  • sloc: ansic: 11,308; sh: 7,591; perl: 355; makefile: 238; python: 164
file content (34 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 *  $Id: version.c,v 1.4 2005/11/27 15:11:49 tom Exp $
 *
 *  version.c -- dialog's version string
 *
 *  Copyright 2003,2005	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 as
 *  published by the Free Software Foundation; either version 2.1 of the
 *  License, or (at your option) any later version.
 *
 *  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 <dialog.h>

#define quoted(a)	#a
#define concat(a,b)	a "-" quoted(b)
#define DLG_VERSION	concat(DIALOG_VERSION,DIALOG_PATCHDATE)

char *
dialog_version(void)
{
    return DLG_VERSION;
}