version.pas 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {
  2. $Id$
  3. Copyright (C) 1998-2000 by Florian Klaempfl
  4. Version/target constants
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit version;
  19. interface
  20. const
  21. { word version for ppu file }
  22. wordversion = (1 shl 14)+0;
  23. { version string }
  24. version_nr = '1';
  25. release_nr = '00';
  26. patch_nr = '0';
  27. {$ifdef newcg}
  28. minorpatch = ' NCG';
  29. {$else newcg}
  30. {$ifdef newoptimizations}
  31. minorpatch = ' OPT';
  32. {$else}
  33. minorpatch = '';
  34. {$endif}
  35. {$endif newcg}
  36. { date string }
  37. {$ifdef FPC}
  38. date_string = {$I %DATE%};
  39. {$else}
  40. date_string = 'N/A';
  41. {$endif}
  42. { target cpu string }
  43. {$ifdef i386}
  44. target_cpu_string = 'i386';
  45. {$endif}
  46. {$ifdef m68k}
  47. target_cpu_string = 'm68k';
  48. {$endif}
  49. {$ifdef alpha}
  50. target_cpu_string = 'alpha';
  51. {$endif}
  52. {$ifdef powerpc}
  53. target_cpu_string = 'powerpc';
  54. {$endif}
  55. { source cpu string }
  56. {$ifdef cpu86}
  57. source_cpu_string = 'i386';
  58. {$endif}
  59. {$ifdef cpu68}
  60. source_cpu_string = 'm68k';
  61. {$endif}
  62. function version_string:string;
  63. function full_version_string:string;
  64. implementation
  65. function version_string:string;
  66. begin
  67. if patch_nr='0' then
  68. version_string := version_nr+'.'+release_nr
  69. else
  70. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  71. end;
  72. function full_version_string:string;
  73. begin
  74. if patch_nr='0' then
  75. full_version_string := version_nr+'.'+release_nr+minorpatch
  76. else
  77. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  78. end;
  79. begin
  80. end.
  81. {
  82. $Log$
  83. Revision 1.20 2000-07-10 09:17:27 pierre
  84. * fix wordversion
  85. Revision 1.19 2000/07/09 09:34:50 peter
  86. * version_string is now a function so it returns 1.00 instead of 1.00.0
  87. Revision 1.18 2000/07/06 20:08:46 peter
  88. * version 1.00.0 so the snapshots can test with this version number
  89. for a few days
  90. Revision 1.17 2000/03/21 21:35:27 peter
  91. * add OPT for optimizing compiler
  92. Revision 1.16 2000/02/09 13:23:09 peter
  93. * log truncated
  94. Revision 1.15 2000/01/28 20:47:26 michael
  95. + Changed patch number to 15
  96. Revision 1.14 2000/01/14 13:05:54 peter
  97. * version 0.99.14
  98. Revision 1.13 2000/01/07 01:14:49 peter
  99. * updated copyright to 2000
  100. Revision 1.12 1999/08/04 13:03:18 jonas
  101. * all tokens now start with an underscore
  102. * PowerPC compiles!!
  103. Revision 1.11 1999/08/02 17:17:12 florian
  104. * small changes for the new code generator
  105. Revision 1.10 1999/08/01 23:36:42 florian
  106. * some changes to compile the new code generator
  107. }