projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct indentation.
[cparser]
/
entity_t.h
diff --git
a/entity_t.h
b/entity_t.h
index
76ce5e6
..
c0142ea
100644
(file)
--- a/
entity_t.h
+++ b/
entity_t.h
@@
-1,6
+1,6
@@
/*
* This file is part of cparser.
/*
* This file is part of cparser.
- * Copyright (C) 2007-200
8
Matthias Braun <matze@braunis.de>
+ * Copyright (C) 2007-200
9
Matthias Braun <matze@braunis.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@
-33,6
+33,7
@@
typedef enum {
ENTITY_PARAMETER,
ENTITY_FUNCTION,
ENTITY_TYPEDEF,
ENTITY_PARAMETER,
ENTITY_FUNCTION,
ENTITY_TYPEDEF,
+ ENTITY_CLASS,
ENTITY_STRUCT,
ENTITY_UNION,
ENTITY_ENUM,
ENTITY_STRUCT,
ENTITY_UNION,
ENTITY_ENUM,
@@
-97,9
+98,9
@@
typedef enum decl_modifier_t {
*/
struct scope_t {
entity_t *entities;
*/
struct scope_t {
entity_t *entities;
- entity_t *last_entity;
- unsigned depth;
/**< while parsing, the depth of this scope in the
-
scope stack. */
+ entity_t *last_entity;
/**< pointer to last entity (so appending is fast) */
+ unsigned depth; /**< while parsing, the depth of this scope in the
+ scope stack. */
};
/**
};
/**
@@
-125,6
+126,7
@@
struct compound_t {
entity_t *alias; /* used for name mangling of anonymous types */
scope_t members;
decl_modifiers_t modifiers;
entity_t *alias; /* used for name mangling of anonymous types */
scope_t members;
decl_modifiers_t modifiers;
+ bool layouted : 1;
bool complete : 1;
bool transparent_union : 1;
bool packed : 1;
bool complete : 1;
bool transparent_union : 1;
bool packed : 1;
@@
-302,7
+304,7
@@
struct function_t {
statement_t *statement;
/* ast2firm info */
statement_t *statement;
/* ast2firm info */
- ir_entity *entity;
+ ir_entity *
ir
entity;
ir_node *static_link; /**< if need_closure is set, the node representing
the static link. */
};
ir_node *static_link; /**< if need_closure is set, the node representing
the static link. */
};