diff options
| author | Nick Barnes | 2001-10-31 14:40:56 +0000 |
|---|---|---|
| committer | Nick Barnes | 2001-10-31 14:40:56 +0000 |
| commit | 7acfca905d76140f4cc0b09c9a12de237de364cd (patch) | |
| tree | 3ed8babfa3a73d30f29e08ca5d5adcda4ca4e826 /mps/code/version.c | |
| parent | b7ce4893f9902d57cd67ac9a92fa6c3d5a8fc833 (diff) | |
| download | emacs-7acfca905d76140f4cc0b09c9a12de237de364cd.tar.gz emacs-7acfca905d76140f4cc0b09c9a12de237de364cd.zip | |
Branch imports for masters.
Copied from Perforce
Change: 23678
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/version.c')
| -rw-r--r-- | mps/code/version.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/mps/code/version.c b/mps/code/version.c new file mode 100644 index 00000000000..73517ab5a09 --- /dev/null +++ b/mps/code/version.c | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* impl.c.version: VERSION INSPECTION | ||
| 2 | * | ||
| 3 | * $HopeName$ | ||
| 4 | * Copyright (C) 2000 Harlequin Limited. All rights reserved. | ||
| 5 | * | ||
| 6 | * PURPOSE | ||
| 7 | * | ||
| 8 | * The purpose of this module is to provide a means by which the | ||
| 9 | * version of the MM library being used can be determined. | ||
| 10 | * | ||
| 11 | * DESIGN | ||
| 12 | * | ||
| 13 | * .design: See design.mps.version-library, but to let you in on a | ||
| 14 | * secret it works by declaring a string with all the necessary info | ||
| 15 | * in. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #include "mpm.h" | ||
| 19 | |||
| 20 | |||
| 21 | SRCID(version, "$HopeName$"); | ||
| 22 | |||
| 23 | |||
| 24 | /* MPS_RELEASE -- the release name | ||
| 25 | * | ||
| 26 | * .release: When making a new release, change the expansion of | ||
| 27 | * MPS_RELEASE to be a string of the form "release.dylan.crow.2" or | ||
| 28 | * whatever. | ||
| 29 | */ | ||
| 30 | |||
| 31 | #define MPS_RELEASE "$HopeName$ *** DEVELOPMENT ONLY ***" | ||
| 32 | |||
| 33 | |||
| 34 | /* MPSCopyrightNotice -- copyright notice for the binary | ||
| 35 | * | ||
| 36 | * .copyright.year: This one should have the current year in it | ||
| 37 | * (assuming we've made any substantial changes to the library this year). | ||
| 38 | */ | ||
| 39 | |||
| 40 | char MPSCopyrightNotice[] = | ||
| 41 | "Copyright (C) 2000 Harlequin Limited. All rights reserved."; | ||
| 42 | |||
| 43 | |||
| 44 | /* MPSVersion -- return version string | ||
| 45 | * | ||
| 46 | * The value of MPSVersion is a declared object comprising the | ||
| 47 | * concatenation of all the version info. | ||
| 48 | */ | ||
| 49 | |||
| 50 | char MPSVersionString[] = | ||
| 51 | "@(#)HQNMPS, " | ||
| 52 | "product." MPS_PROD_STRING ", " MPS_RELEASE ", platform." MPS_PF_STRING | ||
| 53 | ", variety." MPS_VARIETY_STRING ", compiled on " __DATE__ " " __TIME__; | ||
| 54 | |||
| 55 | char *MPSVersion(void) | ||
| 56 | { | ||
| 57 | return MPSVersionString; | ||
| 58 | } | ||