| commit | 5fd66ae01e3b4a75307a65d839e4679327f10471 | [log] [tgz] |
|---|---|---|
| author | Jack Palevich <jackpal@google.com> | Fri Sep 04 15:24:23 2009 -0700 |
| committer | Jack Palevich <jackpal@google.com> | Fri Sep 04 15:24:23 2009 -0700 |
| tree | 66df86c480acb63990fb677417a304d43198d992 | |
| parent | 91acb14877e7138879057f794a61ee2fd424a41d [diff] |
Improve address operator (unary &).
Until now the address operator only worked with simple variables.
Now it works with arbitrary expressions (that are lvalues or function
names). So for example this now works:
struct S { int a[10]};
int f(struct S* p) {
return &p->a[3];
}