global.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program 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
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* GLOBAL.H - RSAREF types and constants
  19. */
  20. /* PROTOTYPES should be set to one if and only if the compiler supports
  21. function argument prototyping.
  22. The following makes PROTOTYPES default to 0 if it has not already
  23. been defined with C compiler flags.
  24. */
  25. #ifndef PROTOTYPES
  26. #define PROTOTYPES 1
  27. #endif
  28. /* POINTER defines a generic pointer type */
  29. typedef unsigned char *POINTER;
  30. /* UINT2 defines a two byte word */
  31. typedef unsigned short int UINT2;
  32. /* UINT4 defines a four byte word */
  33. typedef unsigned long int UINT4;
  34. /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
  35. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
  36. returns an empty list.
  37. */
  38. #if PROTOTYPES
  39. #define PROTO_LIST(list) list
  40. #else
  41. #define PROTO_LIST(list) ()
  42. #endif