version.pas 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 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. {$i fpcdefs.inc}
  20. interface
  21. const
  22. { word version for ppu file }
  23. wordversion = (1 shl 14)+(9 shl 7) + 3;
  24. { version string }
  25. version_nr = '1';
  26. release_nr = '9';
  27. patch_nr = '3';
  28. minorpatch = '';
  29. { date string }
  30. {$ifdef FPC}
  31. date_string = {$I %DATE%};
  32. {$else}
  33. date_string = 'N/A';
  34. {$endif}
  35. { source cpu string }
  36. {$ifdef cpu86}
  37. source_cpu_string = 'i386';
  38. {$endif cpu86}
  39. {$ifdef cpupowerpc}
  40. source_cpu_string = 'powerpc';
  41. {$endif cpupowerpc}
  42. {$ifdef cpum68k}
  43. source_cpu_string = 'm68k';
  44. {$endif cpum68k}
  45. {$ifdef cpuia64}
  46. source_cpu_string = 'ia64';
  47. {$endif cpuia64}
  48. {$ifdef cpu86_64}
  49. source_cpu_string = 'x86_64';
  50. {$endif cpu86_64}
  51. {$ifdef cpusparc}
  52. source_cpu_string = 'sparc';
  53. {$endif cpusparc}
  54. {$ifdef cpusalpha}
  55. source_cpu_string = 'alpha';
  56. {$endif cpualpha}
  57. {$ifdef cpuvis}
  58. source_cpu_string = 'vis';
  59. {$endif cpuvis}
  60. {$ifdef cpuarm}
  61. source_cpu_string = 'arm';
  62. {$endif cpuarm}
  63. function version_string:string;
  64. function full_version_string:string;
  65. implementation
  66. function version_string:string;
  67. begin
  68. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  69. end;
  70. function full_version_string:string;
  71. begin
  72. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  73. end;
  74. end.
  75. {
  76. $Log$
  77. Revision 1.22 2004-01-11 20:59:41 florian
  78. * version changed to 1.9.3
  79. Revision 1.21 2004/01/03 12:31:44 michael
  80. + Changed version to 1.9.2
  81. Revision 1.20 2003/11/06 15:58:27 peter
  82. * 1.9.1
  83. Revision 1.19 2003/11/01 16:37:17 peter
  84. * don't remove .0 when patchlevel = 0
  85. Revision 1.17 2003/04/24 22:29:58 florian
  86. * fixed a lot of PowerPC related stuff
  87. Revision 1.16 2002/09/07 15:25:10 peter
  88. * old logs removed and tabs fixed
  89. Revision 1.15 2002/08/10 14:46:31 carl
  90. + moved target_cpu_string to cpuinfo
  91. * renamed asmmode enum.
  92. * assembler reader has now less ifdef's
  93. * move from nppcmem.pas -> ncgmem.pas vec. node.
  94. Revision 1.14 2002/08/09 19:15:41 carl
  95. - removed newcg define
  96. Revision 1.13 2002/07/04 20:43:02 florian
  97. * first x86-64 patches
  98. Revision 1.12 2002/05/18 13:34:21 peter
  99. * readded missing revisions
  100. Revision 1.11 2002/05/16 19:46:47 carl
  101. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  102. + try to fix temp allocation (still in ifdef)
  103. + generic constructor calls
  104. + start of tassembler / tmodulebase class cleanup
  105. Revision 1.9 2002/03/24 19:12:11 carl
  106. + patch for SPARC from Mazen NEIFER
  107. Revision 1.8 2002/03/01 12:47:21 pierre
  108. * used shl 7 for release number
  109. }