1 /* src/vm/array.h - array functions
3 Copyright (C) 2007 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 $Id: access.c 8318 2007-08-16 10:05:34Z michi $
37 #include "vm/global.h"
38 #include "vm/primitive.h"
41 /* array types ****************************************************************/
43 /* CAUTION: Don't change the numerical values! These constants (with
44 the exception of ARRAYTYPE_OBJECT) are used as indices in the
45 primitive type table. */
47 #define ARRAYTYPE_INT PRIMITIVETYPE_INT
48 #define ARRAYTYPE_LONG PRIMITIVETYPE_LONG
49 #define ARRAYTYPE_FLOAT PRIMITIVETYPE_FLOAT
50 #define ARRAYTYPE_DOUBLE PRIMITIVETYPE_DOUBLE
51 #define ARRAYTYPE_BYTE PRIMITIVETYPE_BYTE
52 #define ARRAYTYPE_CHAR PRIMITIVETYPE_CHAR
53 #define ARRAYTYPE_SHORT PRIMITIVETYPE_SHORT
54 #define ARRAYTYPE_BOOLEAN PRIMITIVETYPE_BOOLEAN
55 #define ARRAYTYPE_OBJECT PRIMITIVETYPE_VOID /* don't use as index! */
58 /* function prototypes ********************************************************/
60 imm_union array_element_primitive_get(java_handle_t *a, int32_t index);
62 uint8_t array_booleanarray_element_get(java_handle_t *a, int32_t index);
63 int8_t array_bytearray_element_get(java_handle_t *a, int32_t index);
64 uint16_t array_chararray_element_get(java_handle_t *a, int32_t index);
65 int16_t array_shortarray_element_get(java_handle_t *a, int32_t index);
66 int32_t array_intarray_element_get(java_handle_t *a, int32_t index);
67 int64_t array_longarray_element_get(java_handle_t *a, int32_t index);
68 float array_floatarray_element_get(java_handle_t *a, int32_t index);
69 double array_doublearray_element_get(java_handle_t *a, int32_t index);
70 java_handle_t *array_objectarray_element_get(java_handle_t *a, int32_t index);
72 #endif /* _VM_ARRAY_H */
76 * These are local overrides for various environment variables in Emacs.
77 * Please do not remove this and leave it at the end of the file, where
78 * Emacs will automagically detect them.
79 * ---------------------------------------------------------------------
86 * vim:noexpandtab:sw=4:ts=4: