sysutils.pp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1998 by Florian Klaempfl
  5. member of the Free Pascal development team
  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 sysutils;
  13. interface
  14. uses dos; { should become platform independent }
  15. type
  16. { some helpful data types }
  17. tprocedure = procedure;
  18. tfilename = string;
  19. longrec = packed record
  20. lo,hi : word;
  21. end;
  22. wordrec = packed record
  23. lo,hi : byte;
  24. end;
  25. { exceptions }
  26. exceptclass = class of exception;
  27. exception = class(tobject)
  28. private
  29. fmessage : string;
  30. fhelpcontext : longint;
  31. public
  32. constructor create(const msg : string);
  33. constructor createfmt(const msg; const args : array of const);
  34. constructor createres(indent : longint);
  35. { !!!! }
  36. property helpcontext : longint read fhelpcontext write fhelpcontext;
  37. property message : string read fmessage write fmessage;
  38. end;
  39. { math. exceptions }
  40. einterror = class(exception);
  41. edivbyzero = class(einterror);
  42. erangeerror = class(einterror);
  43. eintoverflow = class(einterror);
  44. ematherror = class(exception);
  45. { Read date & Time function declarations }
  46. {$i datih.inc}
  47. { Read String Handling functions declaration }
  48. {$i sysstrh.inc}
  49. { Read pchar handling functions declration }
  50. {$i syspchh.inc}
  51. { Read filename handling functions declaration }
  52. {$i finah.inc}
  53. implementation
  54. { Read filename handling functions implementation }
  55. {$i fina.inc}
  56. { Read date & Time function implementations }
  57. {$i dati.inc}
  58. { Read String Handling functions implementation }
  59. {$i sysstr.inc}
  60. { Read pchar handling functions implementation }
  61. {$i syspch.inc}
  62. constructor texception.create(const msg : string);
  63. begin
  64. inherited create;
  65. message:=msg;
  66. {!!!!!}
  67. end;
  68. constructor texception.createfmt(const msg; const args : array of const);
  69. begin
  70. inherited create;
  71. {!!!!!}
  72. end;
  73. constructor texception.createres(indent : longint);
  74. begin
  75. inherited create;
  76. {!!!!!}
  77. end;
  78. end.
  79. {
  80. $Log$
  81. Revision 1.2 1998-04-10 15:18:21 michael
  82. Added a lot of functions donated by GertJan Schouten
  83. Revision 1.1.1.1 1998/03/25 11:18:49 root
  84. * Restored version
  85. Revision 1.1 1998/02/05 11:11:32 michael
  86. + moved to objpas directory
  87. Revision 1.2 1998/02/03 15:27:25 florian
  88. *** empty log message ***
  89. Revision 1.1 1998/02/01 23:32:01 florian
  90. + initial revision
  91. }