dynarrh.inc 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. {
  2. This file is part of the Free Pascal Run time library.
  3. Copyright (c) 1999-2005 by the Free Pascal development team
  4. This file contains type declarations necessary for the dynamic
  5. array routine helpers in syshelp.inc
  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. type
  13. tdynarrayindex = sizeint;
  14. pdynarrayindex = ^tdynarrayindex;
  15. pdynarraytypeinfo = ^tdynarraytypeinfo;
  16. tdynarraytypeinfo = packed record
  17. kind : byte;
  18. namelen : byte;
  19. { here the chars follow, we've to skip them }
  20. elesize : sizeint;
  21. eletype : pdynarraytypeinfo;
  22. vartype : longint;
  23. end;
  24. procedure DynArraySetLength(var a: Pointer; typeInfo: Pointer; dimCnt: SizeInt; lengthVec: PSizeInt);