Skip to content

Commit

Permalink
Add union example in foo example.
Browse files Browse the repository at this point in the history
  • Loading branch information
cournape committed Dec 1, 2008
1 parent 1ac55fd commit 133a012
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions foo.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ struct yoyo9 {
foo2_int32_t a;
};

/*
* Union
*/
union yuyu1 {
int a;
};

/*
* Function declarations
*/
Expand Down Expand Up @@ -107,4 +114,5 @@ void mega_struct_foo7(struct yoyo7*);
void mega_struct_foo8(struct yoyo8*);
void mega_struct_foo9(struct yoyo9*);

void mega_union_foo(union yuyu1*);
#endif

0 comments on commit 133a012

Please sign in to comment.