| 1 |
(* M2Version.def provides simple procedures which retrieve. |
| 2 |
|
| 3 |
Copyright (C) 2001-2025 Free Software Foundation, Inc. |
| 4 |
Contributed by Gaius Mulley <[email protected]>. |
| 5 |
|
| 6 |
This file is part of GNU Modula-2. |
| 7 |
|
| 8 |
GNU Modula-2 is free software; you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation; either version 3, or (at your option) |
| 11 |
any later version. |
| 12 |
|
| 13 |
GNU Modula-2 is distributed in the hope that it will be useful, but |
| 14 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with GNU Modula-2; see the file COPYING3. If not see |
| 20 |
<http://www.gnu.org/licenses/>. *) |
| 21 |
|
| 22 |
DEFINITION MODULE M2Version ; |
| 23 |
|
| 24 |
(* |
| 25 |
Title : M2Version |
| 26 |
Author : Gaius Mulley |
| 27 |
System : UNIX (gm2) |
| 28 |
Date : Thu May 12 13:22:16 1994 |
| 29 |
Description: provides simple procedures which retrieve |
| 30 |
version strings for gm2 and gcc. |
| 31 |
The implementation module is generated by the |
| 32 |
makeversion script. |
| 33 |
*) |
| 34 |
|
| 35 |
FROM DynamicStrings IMPORT String ; |
| 36 |
EXPORT QUALIFIED GetGM2Version, GetGM2Date, GetGCCVersion, GetYear ; |
| 37 |
|
| 38 |
|
| 39 |
(* |
| 40 |
GetGM2Version - returns a string containing the numeric version. |
| 41 |
For example '0.68' |
| 42 |
*) |
| 43 |
|
| 44 |
PROCEDURE GetGM2Version () : String ; |
| 45 |
|
| 46 |
|
| 47 |
(* |
| 48 |
GetGM2Date - returns the date in the numerical form YYYYMMDD. |
| 49 |
This is the date of the build. |
| 50 |
*) |
| 51 |
|
| 52 |
PROCEDURE GetGM2Date () : String ; |
| 53 |
|
| 54 |
|
| 55 |
(* |
| 56 |
GetGCCVersion - return the numeric version of gcc. |
| 57 |
For example '4.1.2'. |
| 58 |
*) |
| 59 |
|
| 60 |
PROCEDURE GetGCCVersion () : String ; |
| 61 |
|
| 62 |
|
| 63 |
(* |
| 64 |
GetYear - returns the year of the build. |
| 65 |
*) |
| 66 |
|
| 67 |
PROCEDURE GetYear () : String ; |
| 68 |
|
| 69 |
|
| 70 |
END M2Version. |