version.pas 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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) + 0;
  24. { version string }
  25. version_nr = '1';
  26. release_nr = '9';
  27. patch_nr = '0';
  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}
  39. {$ifdef cpupowerpc}
  40. source_cpu_string = 'powerpc';
  41. {$endif}
  42. {$ifdef cpum68k}
  43. source_cpu_string = 'm68k';
  44. {$endif cpum68k}
  45. {$ifdef cpuia64}
  46. target_cpu_string = 'ia64';
  47. {$endif}
  48. {$ifdef cpu86_64}
  49. source_cpu_string = 'x86_64';
  50. {$endif}
  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. function version_string:string;
  61. function full_version_string:string;
  62. implementation
  63. function version_string:string;
  64. begin
  65. version_string := version_nr+'.'+release_nr+'.'+patch_nr;
  66. end;
  67. function full_version_string:string;
  68. begin
  69. full_version_string := version_nr+'.'+release_nr+'.'+patch_nr+minorpatch;
  70. end;
  71. end.
  72. {
  73. $Log$
  74. Revision 1.19 2003-11-01 16:37:17 peter
  75. * don't remove .0 when patchlevel = 0
  76. Revision 1.17 2003/04/24 22:29:58 florian
  77. * fixed a lot of PowerPC related stuff
  78. Revision 1.16 2002/09/07 15:25:10 peter
  79. * old logs removed and tabs fixed
  80. Revision 1.15 2002/08/10 14:46:31 carl
  81. + moved target_cpu_string to cpuinfo
  82. * renamed asmmode enum.
  83. * assembler reader has now less ifdef's
  84. * move from nppcmem.pas -> ncgmem.pas vec. node.
  85. Revision 1.14 2002/08/09 19:15:41 carl
  86. - removed newcg define
  87. Revision 1.13 2002/07/04 20:43:02 florian
  88. * first x86-64 patches
  89. Revision 1.12 2002/05/18 13:34:21 peter
  90. * readded missing revisions
  91. Revision 1.11 2002/05/16 19:46:47 carl
  92. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  93. + try to fix temp allocation (still in ifdef)
  94. + generic constructor calls
  95. + start of tassembler / tmodulebase class cleanup
  96. Revision 1.9 2002/03/24 19:12:11 carl
  97. + patch for SPARC from Mazen NEIFER
  98. Revision 1.8 2002/03/01 12:47:21 pierre
  99. * used shl 7 for release number
  100. }