Commit | Line | Data |
---|---|---|
951c7801 C |
1 | @@ |
2 | @@ | |
3 | ||
4 | typedef struct { | |
5 | ... | |
6 | - char *name; | |
7 | ... | |
8 | } | |
9 | - Location | |
10 | + Point | |
11 | ; | |
12 | + typedef struct { | |
13 | + char *name; | |
14 | + Point p; | |
15 | + } Location; | |
16 | ||
17 | @@ | |
18 | typedef Location; | |
19 | Location some_location; | |
20 | identifier x; | |
21 | @@ | |
22 | ||
23 | ( | |
24 | some_location.name | |
25 | | | |
26 | - some_location.x | |
27 | + some_location.p.x | |
28 | ) | |
29 | ||
30 | @@ | |
31 | Location *some_location; | |
32 | identifier x; | |
33 | @@ | |
34 | ||
35 | ( | |
36 | some_location->name | |
37 | | | |
38 | - some_location->x | |
39 | + some_location->p.x | |
40 | ) |