home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / tree.h < prev    next >
C/C++ Source or Header  |  1997-11-24  |  3KB  |  77 lines

  1. /*
  2.  * @(#)tree.h    1.27 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. /*
  24.  * Definitions having to do with the program tree
  25.  */
  26.  
  27. #ifndef _TREE_H_
  28. #define _TREE_H_
  29.  
  30. #include "oobj.h"    /* for the definition of unicode */
  31. #include "typecodes.h"
  32.  
  33. extern int   SkipSourceChecks;
  34. extern char *progname;
  35. extern ClassClass **binclasses;
  36. extern long nbinclasses, sizebinclasses;
  37.  
  38. /* User specifiable attributes */
  39. #define ACC_PUBLIC            0x0001    /* visible to everyone */
  40. #define ACC_PRIVATE           0x0002    /* visible only to the defining class */
  41. #define ACC_PROTECTED         0x0004    /* visible to subclasses */
  42. #define ACC_STATIC            0x0008    /* instance variable is static */
  43. #define ACC_FINAL             0x0010    /* no further subclassing, overriding */
  44. #define ACC_SYNCHRONIZED      0x0020    /* wrap method call in monitor lock */
  45. #define ACC_SUPER             0x0020    /* funky handling of invokespecial */
  46. #define ACC_THREADSAFE        0x0040    /* can cache in registers */
  47. #define ACC_TRANSIENT         0x0080    /* not persistant */
  48. #define ACC_NATIVE            0x0100    /* implemented in C */
  49. #define ACC_INTERFACE         0x0200    /* class is an interface */
  50. #define ACC_ABSTRACT          0x0400    /* no definition provided */
  51. #define ACC_XXUNUSED1         0x0800    /*  */
  52.  
  53. #define ACC_WRITTEN_FLAGS     0x0FFF    /* flags actually put in .class file */
  54.  
  55. /* Other attributes */
  56. #define ACC_VALKNOWN          0x1000    /* constant with known value */
  57. #define ACC_DOCED             0x2000    /* documentation generated */
  58. #define ACC_MACHINE_COMPILED  0x4000    /* compiled to machine code */
  59. #define ACC_XXUNUSED3         0x8000    /*  */
  60.  
  61. #define IsPrivate(access) (((access) & ACC_PRIVATE) != 0)
  62. #define IsPublic(access)  (((access) & ACC_PUBLIC) != 0)
  63. #define IsProtected(access)  (((access) & ACC_PROTECTED) != 0)
  64.  
  65. char *addstr(char *s, char *buf, char *limit, char term);
  66. char *addhex(long n, char *buf, char *limit);
  67. char *adddec(long n, char *buf, char *limit);
  68.  
  69. #ifdef TRIMMED
  70. # undef DEBUG
  71. # undef STATS
  72. # define NOLOG
  73. #endif
  74.  
  75.  
  76. #endif /* !_TREE_H_ */
  77.