home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / include / kaffe / jtypes.h next >
Encoding:
C/C++ Source or Header  |  1996-10-14  |  1.1 KB  |  59 lines

  1. /* lib/support/jtypes.h.  Generated automatically by configure.  */
  2. /*
  3.  * jtypes.h
  4.  * Java types.
  5.  *
  6.  * Copyright (c) 1996 T. J. Wilkinson & Associates, London, UK.
  7.  *
  8.  * See the file "license.terms" for information on usage and redistribution
  9.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  10.  *
  11.  * Written by Tim Wilkinson <tim@tjwassoc.demon.co.uk>, 1996.
  12.  */
  13.  
  14. #ifndef __jtypes_h
  15. #define __jtypes_h
  16.  
  17. #define    SIZEOF_INT 4
  18. #define    SIZEOF_LONG 4
  19. #define    SIZEOF_LONG_LONG 8
  20. #define    SIZEOF___INT64 0
  21.  
  22. typedef float        jfloat;
  23. typedef double        jdouble;
  24. typedef    void*        jref;
  25. typedef unsigned char    jchar;
  26. typedef char        jbyte;
  27. typedef short         jshort;
  28.  
  29. #if SIZEOF_INT == 4
  30. typedef int        jint;
  31. #elif SIZEOF_LONG == 4
  32. typedef long        jint;
  33. #else
  34. #error "sizeof(int) or sizeof(long) must be 4"
  35. #endif
  36.  
  37. #if SIZEOF_LONG_LONG == 8
  38.  
  39. #define HAVE_NATIVE_INT64
  40. typedef long long    jlong;
  41. #define    JLONG_ZERO    ((jlong)0)
  42.  
  43. #elif SIZEOF___INT64 == 8
  44.  
  45. #define HAVE_NATIVE_INT64
  46. typedef __int64        jlong;
  47. #define    JLONG_ZERO    ((jlong)0)
  48.  
  49. #else
  50.  
  51. typedef struct { jint jl, jh; } jlong;
  52. #define    JLONG_ZERO    { 0, 0 }
  53.  
  54. #endif
  55.  
  56. typedef    jshort        unicode;
  57.  
  58. #endif
  59.