/* Generated automatically from jnitypes.h.in by configure. */
/* -*- Mode: C; c-file-style: "gnu" -*-
   jnitypes.h -- Java Native Interface types header file.
   Created: Alexandre Oliva <oliva@dcc.unicamp.br>, 08-Apr-1998
 */
/*
  This file is part of Japhar, the GNU Virtual Machine for Java Bytecodes.
  Japhar is a project of The Hungry Programmers, GNU, and OryxSoft.

  Copyright (C) 1997, 1998 The Hungry Programmers

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU Library General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef _hungry_jnitypes_h
#define _hungry_jnitypes_h


/* -*- Mode: C; c-file-style: "gnu" -*-
   jnitypes.frag -- standard Java Native Interface types header file fragment.
   Created: Alexandre Oliva <oliva@dcc.unicamp.br>, 08-Apr-1998
 */

/* These definitions should work for most 32-bit hosts using gcc */

#define JAPHAR_JBYTE    signed char
#define JAPHAR_JBOOLEAN unsigned char
#define JAPHAR_JSHORT   signed short
#define JAPHAR_JCHAR    unsigned short
#define JAPHAR_JINT     signed int
#define JAPHAR_JUINT    unsigned int
#define JAPHAR_JLONG    signed long long

#ifdef JAPHAR_JBYTE
typedef JAPHAR_JBYTE jbyte;
#else
typedef int8_t jbyte;
#endif

#ifdef JAPHAR_JBOOLEAN
typedef JAPHAR_JBOOLEAN jboolean;
#else
typedef uint8_t jboolean;
#endif

#ifdef JAPHAR_JSHORT
typedef JAPHAR_JSHORT jshort;
#else
typedef int16_t jshort;
#endif

#ifdef JAPHAR_JCHAR
typedef JAPHAR_JCHAR jchar;
#else
typedef uint16_t jchar;
#endif

#ifdef JAPHAR_JINT
typedef JAPHAR_JINT jint;
#else
typedef int32_t jint;
#endif

/* needed for class files */
#ifdef JAPHAR_JUINT
typedef JAPHAR_JUINT juint;
#else
typedef uint32_t juint;
#endif

#ifdef JAPHAR_JLONG
typedef JAPHAR_JLONG jlong;
#else
typedef int64_t jlong;
#endif

#ifdef JAPHAR_JFLOAT
typedef JAPHAR_JFLOAT jfloat;
#else
typedef float jfloat;
#endif

#ifdef JAPHAR_JDOUBLE
typedef JAPHAR_JDOUBLE jdouble;
#else
typedef double jdouble;
#endif

#ifdef JAPHAR_JREF
typedef JAPHAR_JREF jref;
#else
typedef void *jref;
#endif

#endif /* _hungry_jnitypes_h */
