/packages/libgbafpc/src/gba/gba_types.inc

https://github.com/slibre/freepascal · Unknown · 65 lines · 47 code · 18 blank · 0 comment · 0 complexity · 1290e7e3eb87950fafc1f9ffcdda847a MD5 · raw file

  1. (*
  2. $Id$
  3. ------------------------------------------------------------------------------
  4. Header file for libgba type definitions
  5. Copyright 2003-2005 by Dave Murphy.
  6. This library is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU Library General Public
  8. License as published by the Free Software Foundation; either
  9. version 2 of the License, or (at your option) any later version.
  10. This library is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. Library General Public License for more details.
  14. You should have received a copy of the GNU Library General Public
  15. License along with this library; if not, write to the Free Software
  16. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  17. USA.
  18. Please report all bugs and problems through the bug tracker at
  19. "http://sourceforge.net/tracker/?group_id=114505&atid=668551".
  20. ------------------------------------------------------------------------------
  21. Conversion by Legolas (http://itaprogaming.free.fr) for freepascal compiler
  22. (http://www.freepascal.org)
  23. Copyright (C) 2006 Francesco Lombardi
  24. Check http://sourceforge.net/projects/libndsfpc for updates
  25. ------------------------------------------------------------------------------
  26. $Log$
  27. *)
  28. {$ifdef GBA_INTERFACE}
  29. //---------------------------------------------------------------------------------
  30. // Data types
  31. //---------------------------------------------------------------------------------
  32. type
  33. (* Unsigned types *)
  34. u8 = byte;
  35. u16 = word;
  36. u32 = dword;
  37. pu8 = ^u8;
  38. pu16 = ^u16;
  39. pu32 = ^u32;
  40. (* Signed types *)
  41. s8 = shortint;
  42. s16 = smallint;
  43. s32 = longint;
  44. ps8 = ^s8;
  45. ps16 = ^s16;
  46. ps32 = ^s32;
  47. {$endif GBA_INTERFACE}