aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Anderson <ryan@michonline.com>2003-06-07 18:42:47 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:50 -0700
commit5528ae996c02390a6f05cbcf6bc9cf3a1199824d (patch)
treeccf0da48513acad138ae700f89bd6be4de78cecb /expression.h
parentCreate "inline.c", which contains the function "copy_statement()", (diff)
downloadsparse-5528ae996c02390a6f05cbcf6bc9cf3a1199824d.tar.gz
sparse-5528ae996c02390a6f05cbcf6bc9cf3a1199824d.tar.bz2
sparse-5528ae996c02390a6f05cbcf6bc9cf3a1199824d.zip
[PATCH] Make all the anonymous structures truly anonymous
This patch removes the type-names on the anonymous structures. This fixes compilation when using gcc-3.3 (Debian). Credit for identifying the fix goes to Arnaldo Carvalho de Melo <acme@conectiva.com.br>.
Diffstat (limited to 'expression.h')
-rw-r--r--expression.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/expression.h b/expression.h
index 27b85c0..8a5ea3b 100644
--- a/expression.h
+++ b/expression.h
@@ -53,7 +53,7 @@ struct expression {
struct expression *unop;
// EXPR_SYMBOL
- struct symbol_arg {
+ struct /* symbol_arg */ {
struct symbol *symbol;
struct ident *symbol_name;
};
@@ -62,35 +62,35 @@ struct expression {
struct statement *statement;
// EXPR_BINOP, EXPR_COMMA, EXPR_COMPARE, EXPR_LOGICAL and EXPR_ASSIGNMENT
- struct binop_arg {
+ struct /* binop_arg */ {
struct expression *left, *right;
};
// EXPR_DEREF
- struct deref_arg {
+ struct /* deref_arg */ {
struct expression *deref;
struct ident *member;
};
// EXPR_CAST and EXPR_SIZEOF
- struct cast_arg {
+ struct /* cast_arg */ {
struct symbol *cast_type;
struct expression *cast_expression;
};
// EXPR_CONDITIONAL
- struct conditional_expr {
+ struct /* conditional_expr */ {
struct expression *conditional, *cond_true, *cond_false;
};
// EXPR_CALL
- struct call_expr {
+ struct /* call_expr */ {
struct expression *fn;
struct expression_list *args;
};
// EXPR_BITFIELD
- struct bitfield_expr {
+ struct /* bitfield_expr */ {
unsigned char bitpos, nrbits;
struct expression *address;
};
// EXPR_LABEL
- struct label_expr {
+ struct /* label_expr */ {
struct symbol *label_symbol;
};
// EXPR_INITIALIZER
@@ -98,11 +98,11 @@ struct expression {
// EXPR_IDENTIFIER
struct ident *expr_ident;
// EXPR_INDEX
- struct index_expr {
+ struct /* index_expr */ {
unsigned int idx_from, idx_to;
};
// EXPR_POS
- struct initpos_expr {
+ struct /* initpos_expr */ {
unsigned int init_offset;
struct symbol *init_sym;
struct expression *init_expr;