/opengles/src/codegen/codegen.h

http://ftk.googlecode.com/ · C Header · 74 lines · 35 code · 11 blank · 28 comment · 0 complexity · d9a35b76d00a5676402a8a58e286d830 MD5 · raw file

  1. #ifndef CODEGEN_CODEGEN_H
  2. #define CODEGEN_CODEGEN_H 1
  3. /****************************************************************************/
  4. /* */
  5. /* Copyright (c) 2004, Hans-Martin Will. All rights reserved. */
  6. /* */
  7. /* Redistribution and use in source and binary forms, with or without */
  8. /* modification, are permitted provided that the following conditions are */
  9. /* met: */
  10. /* */
  11. /* * Redistributions of source code must retain the above copyright */
  12. /* notice, this list of conditions and the following disclaimer. */
  13. /* */
  14. /* * Redistributions in binary form must reproduce the above copyright */
  15. /* notice, this list of conditions and the following disclaimer in the */
  16. /* documentation and/or other materials provided with the distribution. */
  17. /* */
  18. /* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS */
  19. /* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT */
  20. /* LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A */
  21. /* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER */
  22. /* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
  23. /* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, */
  24. /* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR */
  25. /* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */
  26. /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */
  27. /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS */
  28. /* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
  29. /* */
  30. /****************************************************************************/
  31. #include <stddef.h>
  32. #include <stdlib.h>
  33. #include <stdio.h>
  34. #include <string.h>
  35. #include <assert.h>
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39. #ifndef EGL_USE_GPP // define only if not including Intel's GPP library
  40. # ifdef EGL_ON_SYMBIAN
  41. typedef TInt8 I8;
  42. typedef TUint8 U8;
  43. typedef TInt16 I16;
  44. typedef TUint16 U16;
  45. typedef TInt I32;
  46. typedef TUint U32;
  47. # else
  48. typedef signed char I8;
  49. typedef unsigned char U8;
  50. typedef short I16;
  51. typedef unsigned short U16;
  52. typedef int I32;
  53. typedef unsigned int U32;
  54. # endif
  55. #endif
  56. #if 0
  57. typedef unsigned __int64 U64;
  58. typedef __int64 I64;
  59. #endif
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif //ndef CODEGEN_CODEGEN_H