classes.pp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. { exceptions aren't implemented yet in the compiler }
  12. {$define NoExceptions}
  13. { determine the type of the resource/form file }
  14. {$define Win16Res}
  15. unit Classes;
  16. interface
  17. uses
  18. objpas,dos;
  19. {$i classesh.inc}
  20. implementation
  21. {$i classes.inc}
  22. {****************************************************************************}
  23. {* THandleStream *}
  24. {****************************************************************************}
  25. procedure THandleStream.SetSize(NewSize: Longint);
  26. begin
  27. inherited SetSize(NewSize);
  28. {!!!!!}
  29. end;
  30. constructor THandleStream.Create(AHandle: Integer);
  31. begin
  32. inherited Create;
  33. FHandle:=AHandle;
  34. end;
  35. function THandleStream.Read(var Buffer; Count: Longint): Longint;
  36. begin
  37. {!!!!!}
  38. end;
  39. function THandleStream.Write(const Buffer; Count: Longint): Longint;
  40. begin
  41. {!!!!!}
  42. end;
  43. function THandleStream.Seek(Offset: Longint; Origin: Word): Longint;
  44. var
  45. regs : registers;
  46. begin
  47. regs.ebx:=FHandle;
  48. regs.ecx:=pos shr 16;
  49. regs.edx:=Offset and $ffff;
  50. regs.eax:=$4200+Origin;
  51. Intr($21,regs);
  52. if (regs.realflags and carryflag) <> 0 then
  53. InOutRes:=lo(regs.realeax);
  54. end;
  55. {****************************************************************************}
  56. {* TFileStream *}
  57. {****************************************************************************}
  58. constructor TFileStream.Create(const FileName: string; Mode: Word);
  59. begin
  60. {!!!!!}
  61. end;
  62. destructor TFileStream.Destroy;
  63. begin
  64. {!!!!!}
  65. end;
  66. end.
  67. {
  68. $Log$
  69. Revision 1.1 1998-05-04 12:16:01 florian
  70. + Initial revisions after making a new directory structure
  71. }