/packages/libogcfpc/src/gctypes.pp

https://github.com/slibre/freepascal · Puppet · 44 lines · 33 code · 11 blank · 0 comment · 2 complexity · eb7814958783d59677afbab36fa20f01 MD5 · raw file

  1. unit gctypes;
  2. interface
  3. uses
  4. ctypes;
  5. const
  6. LITTLE_ENDIAN = 3412;
  7. BIG_ENDIAN = 1234;
  8. BYTE_ORDER = BIG_ENDIAN;
  9. type
  10. f32 = cfloat;
  11. f64 = cdouble;
  12. ppcchar = ^pcchar;
  13. __argv = record
  14. argvMagic: cint; // argv magic number, set to 0x5f617267 ('_arg') if valid
  15. commandLine: pcchar; // base address of command line, set of null terminated strings
  16. length: cint; // total length of command line
  17. argc: integer;
  18. argv: ppcchar;
  19. endARGV: ppcchar; // internal use, host ip for dslink
  20. end;
  21. Targv = __argv;
  22. Pargv = ^Targv;
  23. timespec = record
  24. tv_sec: Longint;
  25. tv_nsec: Longint;
  26. end;
  27. ptimespec = ^timespec;
  28. var
  29. __system_argv: pargv; cvar; external;
  30. const
  31. ARGV_MAGIC = $5f617267;
  32. implementation
  33. end.