sysutils.pp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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,objpas; { 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. exception = class(tobject)
  27. private
  28. fmessage : string;
  29. fhelpcontext : longint;
  30. public
  31. constructor create(const msg : string);
  32. //!! No array of const yet.
  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. exceptclass = class of exception;
  40. { math. exceptions }
  41. einterror = class(exception);
  42. edivbyzero = class(einterror);
  43. erangeerror = class(einterror);
  44. eintoverflow = class(einterror);
  45. ematherror = class(exception);
  46. { Read date & Time function declarations }
  47. {$i datih.inc}
  48. { Read String Handling functions declaration }
  49. {$i sysstrh.inc}
  50. { Read pchar handling functions declration }
  51. {$i syspchh.inc}
  52. { Read filename handling functions declaration }
  53. {$i finah.inc}
  54. implementation
  55. { Read filename handling functions implementation }
  56. {$i fina.inc}
  57. { Read date & Time function implementations }
  58. {$i dati.inc}
  59. { Read String Handling functions implementation }
  60. {$i sysstr.inc}
  61. { Read pchar handling functions implementation }
  62. {$i syspch.inc}
  63. constructor exception.create(const msg : string);
  64. begin
  65. inherited create;
  66. message:=msg;
  67. {!!!!!}
  68. end;
  69. {
  70. constructor exception.createfmt(const msg; const args : array of const);
  71. begin
  72. inherited create;
  73. end;
  74. }
  75. constructor exception.createres(indent : longint);
  76. begin
  77. inherited create;
  78. {!!!!!}
  79. end;
  80. end.
  81. {
  82. $Log$
  83. Revision 1.3 1998-07-29 15:44:32 michael
  84. included sysutils and math.pp as target. They compile now.
  85. Revision 1.2 1998/04/10 15:18:21 michael
  86. Added a lot of functions donated by GertJan Schouten
  87. Revision 1.1.1.1 1998/03/25 11:18:49 root
  88. * Restored version
  89. Revision 1.1 1998/02/05 11:11:32 michael
  90. + moved to objpas directory
  91. Revision 1.2 1998/02/03 15:27:25 florian
  92. *** empty log message ***
  93. Revision 1.1 1998/02/01 23:32:01 florian
  94. + initial revision
  95. }