1 /* src/vm/field.c - field functions
3 Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
4 C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 J. Wenninger, Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 Contact: cacao@cacaojvm.org
27 Authors: Reinhard Grafl
29 Changes: Andreas Krall
35 $Id: field.c 4357 2006-01-22 23:33:38Z twisti $
47 /* field_free ******************************************************************
49 Frees a fields' resources.
51 *******************************************************************************/
53 void field_free(fieldinfo *f)
59 /* field_printflags ************************************************************
63 *******************************************************************************/
66 void field_printflags(fieldinfo *f)
68 if (f->flags & ACC_PUBLIC) printf(" PUBLIC");
69 if (f->flags & ACC_PRIVATE) printf(" PRIVATE");
70 if (f->flags & ACC_PROTECTED) printf(" PROTECTED");
71 if (f->flags & ACC_STATIC) printf(" STATIC");
72 if (f->flags & ACC_FINAL) printf(" FINAL");
73 if (f->flags & ACC_SYNCHRONIZED) printf(" SYNCHRONIZED");
74 if (f->flags & ACC_VOLATILE) printf(" VOLATILE");
75 if (f->flags & ACC_TRANSIENT) printf(" TRANSIENT");
76 if (f->flags & ACC_NATIVE) printf(" NATIVE");
77 if (f->flags & ACC_INTERFACE) printf(" INTERFACE");
78 if (f->flags & ACC_ABSTRACT) printf(" ABSTRACT");
83 /* field_print *****************************************************************
87 *******************************************************************************/
90 void field_print(fieldinfo *f)
94 utf_display(f->descriptor);
101 /* field_println ***************************************************************
105 *******************************************************************************/
108 void field_println(fieldinfo *f)
117 * These are local overrides for various environment variables in Emacs.
118 * Please do not remove this and leave it at the end of the file, where
119 * Emacs will automagically detect them.
120 * ---------------------------------------------------------------------
123 * indent-tabs-mode: t