system.pp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2006 by Florian Klaempfl
  4. member of the Free Pascal development team.
  5. System unit for embedded systems
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. Unit System;
  13. {*****************************************************************************}
  14. interface
  15. {*****************************************************************************}
  16. {$define FPC_IS_SYSTEM}
  17. {$I-,Q-,H-,R-,V-}
  18. {$mode objfpc}
  19. Type
  20. { The compiler has all integer types defined internally. Here
  21. we define only aliases }
  22. DWord = LongWord;
  23. Cardinal = LongWord;
  24. Integer = SmallInt;
  25. UInt64 = QWord;
  26. ValReal = Double;
  27. { map comp to int64, }
  28. Comp = Int64;
  29. HResult = type longint;
  30. const
  31. { max. values for longint and int}
  32. maxLongint = $7fffffff;
  33. maxSmallint = 32767;
  34. maxint = maxsmallint;
  35. type
  36. { Java base class type }
  37. TObject = class external 'java.lang' name 'Object'
  38. protected
  39. function clone: TObject;
  40. public
  41. constructor create;
  42. function equals(obj: TObject): boolean;
  43. function hashcode: longint;
  44. end;
  45. {*****************************************************************************}
  46. implementation
  47. {*****************************************************************************}
  48. {*****************************************************************************
  49. Misc. System Dependent Functions
  50. *****************************************************************************}
  51. {*****************************************************************************
  52. SystemUnit Initialization
  53. *****************************************************************************}
  54. end.