home *** CD-ROM | disk | FTP | other *** search
/ BUG 15 / BUGCD1998_06.ISO / aplic / jbuilder / jruntime.z / wrap.h < prev    next >
C/C++ Source or Header  |  1997-08-25  |  1KB  |  48 lines

  1. /*
  2.  * @(#)wrap.h    1.5 96/11/23
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. #ifndef _WRAP_H_
  24. #define _WRAP_H_
  25.  
  26. #include "native.h"
  27. #include "typecodes.h"
  28.  
  29. typedef union {
  30.     int32_t x[2];
  31.     long    i;            /* z,b,c,s,i */
  32.     float   f;
  33.     double  d;
  34.     int64_t l;
  35.     char    *p;
  36.     HObject *h;
  37. } JavaValue;
  38.  
  39. #define    T_BAD    T_XXUNUSEDXX1    /* 1 */
  40.  
  41. /*
  42.  * Routines to wrap and unwrap primitive Java types.
  43.  */
  44. extern HObject *    java_wrap(JavaValue, unsigned char);
  45. extern unsigned char    java_unwrap(HObject *, JavaValue *);
  46.  
  47. #endif /* _WRAP_H */
  48.