Freeciv-3.1: /fast/freeciv/nightly/S3_1/common/version.h Source File

Freeciv-3.1

Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__VERSION_H
14#define FC__VERSION_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20#if !defined(FC__FREECIV_CONFIG_H) && !defined(FC_CONFIG_H)
21#error Files including version.h should also include freeciv_config.h directly
22#endif
23
24/* This is only used in version.c, and only if IS_BETA_VERSION is true.
25 * The month[] array is defined in version.c (index: 1 == Jan, 2 == Feb, ...).
26 */
27#ifndef NEXT_RELEASE_MONTH
28#define NEXT_RELEASE_MONTH (month[FREECIV_RELEASE_MONTH])
29#endif
30
31/* version informational strings */
32const char *freeciv_name_version(void);
33const char *word_version(void);
34const char *fc_git_revision(void);
35const char *fc_comparable_version(void);
36const char *freeciv_datafile_version(void);
37
38const char *freeciv_motto(void);
39
40/* If returns NULL, not a beta version. */
41const char *beta_message(void);
42const char *alpha_message(void);
43const char *unstable_message(void);
44
45#ifdef __cplusplus
46}
47#endif /* __cplusplus */
48
49#endif /* FC__VERSION_H */
fc_comparable_version
const char * fc_comparable_version(void)
Definition version.c:95
fc_git_revision
const char * fc_git_revision(void)
Definition version.c:75
unstable_message
const char * unstable_message(void)
Definition version.c:160
freeciv_name_version
const char * freeciv_name_version(void)
Definition version.c:35
freeciv_datafile_version
const char * freeciv_datafile_version(void)
Definition version.c:186
beta_message
const char * beta_message(void)
Definition version.c:104
freeciv_motto
const char * freeciv_motto(void)
Definition version.c:177
word_version
const char * word_version(void)
Definition version.c:62
alpha_message
const char * alpha_message(void)
Definition version.c:147