root/libutil/version.c(118.html)

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. get_version
  2. version

/*
 * Copyright (c) 1999, 2000, 2001, 2007
 *      Tama Communications Corporation
 *
 * This file is part of GNU GLOBAL.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #ifdef STDC_HEADERS #include <stdlib.h> #endif #include "version.h" const char *copy = "\ Copyright (c) 2008 Tama Communications Corporation\n\ License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n\ This is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n\ This is also commercial (for-profit) software based on BOKIN model.\n\ Please see the donation page <http://www.gnu.org/software/global/donation.html>.\n\ "; /* * get_version: get version string. */
char * get_version(void) { return VERSION; } /* * version: print version information. */
void version(const char *name, const int verbose) { if (name == NULL) name = progname; /* * if the -q option is not specified then always verbose * according to the GNU coding standard */
if (qflag) fprintf(stdout, "%s\n", VERSION); else { fprintf(stdout, "%s - %s\n", name, PACKAGE_STRING); fprintf(stdout, "%s", copy); } exit(0); }

/* [<][>][^][v][top][bottom][index][help] */