X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvmcore%2Fannotation.h;h=7ec071d3dfc98a73bdc652ebddec69fe512f8883;hb=bd2e33b32ea47e08f2430bb67e2d4a8337543b54;hp=c224ebe8494fd97782b7f4da4f85b76eeea95f37;hpb=e71032f5c7c9a73648a4b56388887f20d0ec5182;p=cacao.git diff --git a/src/vmcore/annotation.h b/src/vmcore/annotation.h index c224ebe84..7ec071d3d 100644 --- a/src/vmcore/annotation.h +++ b/src/vmcore/annotation.h @@ -28,57 +28,20 @@ #ifndef _ANNOTATION_H #define _ANNOTATION_H -/* forward typedefs ***********************************************************/ - -typedef struct annotation_bytearray_t annotation_bytearray_t; -typedef struct annotation_t annotation_t; -typedef struct element_value_t element_value_t; -typedef struct annotation_bytearrays_t annotation_bytearrays_t; #include "config.h" -#include "vm/types.h" +#include "vm/types.h" #include "vm/global.h" #include "vmcore/class.h" #include "vmcore/field.h" -#include "vmcore/method.h" #include "vmcore/loader.h" -#include "vmcore/utf8.h" - - -/* annotation_bytearray *******************************************************/ - -struct annotation_bytearray_t { - uint32_t size; - uint8_t data[1]; -}; - - -/* annotation_bytearrays ******************************************************/ - -struct annotation_bytearrays_t { - uint32_t size; - annotation_bytearray_t *data[1]; -}; +#include "vmcore/method.h" /* function prototypes ********************************************************/ -annotation_bytearray_t *annotation_bytearray_new(uint32_t size); - -void annotation_bytearray_free(annotation_bytearray_t *ba); - -annotation_bytearrays_t *annotation_bytearrays_new(uint32_t size); - -bool annotation_bytearrays_resize(annotation_bytearrays_t **bas, - uint32_t size); - -bool annotation_bytearrays_insert(annotation_bytearrays_t **bas, - uint32_t index, annotation_bytearray_t *ba); - -void annotation_bytearrays_free(annotation_bytearrays_t *bas); - bool annotation_load_class_attribute_runtimevisibleannotations( classbuffer *cb);