type: Make an assert()ion independent of the last entry of an enum.
[cparser] / attribute.h
1 /*
2  * This file is part of cparser.
3  * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
4  */
5 #ifndef ATTRIBUTE_H
6 #define ATTRIBUTE_H
7
8 #include "entity.h"
9 #include "type.h"
10
11 typedef struct attribute_t attribute_t;
12
13 const char *get_deprecated_string(const attribute_t *attribute);
14
15 type_t *handle_type_attributes(const attribute_t *attributes, type_t *type);
16 void handle_entity_attributes(const attribute_t *attributes, entity_t *entity);
17 type_t *handle_attribute_mode(const attribute_t *attribute, type_t *orig_type);
18
19 #endif