classes.pp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. $Id$
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 1998 by Michael Van Canneyt and Florian Klaempfl
  5. Classes unit for win32
  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. {$mode objfpc}
  13. { Require threading }
  14. {$ifndef ver1_0}
  15. {$threading on}
  16. {$endif ver1_0}
  17. { determine the type of the resource/form file }
  18. {$define Win16Res}
  19. unit Classes;
  20. interface
  21. uses
  22. rtlconst,
  23. sysutils,
  24. types,
  25. typinfo,
  26. windows;
  27. {$i classesh.inc}
  28. implementation
  29. uses
  30. sysconst;
  31. { OS - independent class implementations are in /inc directory. }
  32. {$i classes.inc}
  33. initialization
  34. CommonInit;
  35. {$ifndef ver1_0}
  36. systhrds.InitCriticalSection(SynchronizeCritSect);
  37. ExecuteEvent := RtlEventCreate;
  38. SynchronizeMethod := nil;
  39. {$endif}
  40. finalization
  41. CommonCleanup;
  42. {$ifndef ver1_0}
  43. systhrds.DoneCriticalSection(SynchronizeCritSect);
  44. RtlEventDestroy(ExecuteEvent);
  45. {$endif}
  46. end.
  47. {
  48. $Log$
  49. Revision 1.6 2004-12-23 09:42:42 marco
  50. * first tthread.synchronize support (merged neli's patches)
  51. Revision 1.5 2004/01/22 17:11:23 peter
  52. * classes uses types to import TPoint and TRect
  53. Revision 1.4 2004/01/13 18:04:25 florian
  54. * make win32 fixed
  55. Revision 1.3 2004/01/10 19:35:18 michael
  56. + Moved all resource strings to rtlconst/sysconst
  57. Revision 1.2 2003/10/07 16:20:21 florian
  58. * win32 now uses aliases from the windows unit for types like trect
  59. Revision 1.1 2003/10/06 21:01:07 peter
  60. * moved classes unit to rtl
  61. Revision 1.1 2003/10/06 20:33:58 peter
  62. * classes moved to rtl for 1.1
  63. * classes .inc and classes.pp files moved to fcl/classes for
  64. backwards 1.0.x compatiblity to have it in the fcl
  65. Revision 1.4 2002/10/14 19:46:13 peter
  66. * threading switch
  67. Revision 1.3 2002/09/07 15:15:29 peter
  68. * old logs removed and tabs fixed
  69. }