version.pas 2.9 KB

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