diff options
| author | Russ Cox <rsc@golang.org> | 2014-01-08 20:37:27 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-01-08 20:37:27 -0500 |
| commit | 06c0280440689be695fb3375105e09f58b44e82e (patch) | |
| tree | 199bdf39087cd4f82f3c662089ebb23f5ee02035 /include | |
| parent | fca453e062a39f64b0760aa4555bb974f504aba3 (diff) | |
| download | go-06c0280440689be695fb3375105e09f58b44e82e.tar.xz | |
libmach: use different names for different Ureg types
Everything was doing this already with #defines.
Do it right.
R=golang-codereviews, jsing, 0intro, iant
CC=golang-codereviews
https://golang.org/cl/49090043
Diffstat (limited to 'include')
| -rw-r--r-- | include/ureg_amd64.h | 3 | ||||
| -rw-r--r-- | include/ureg_arm.h | 3 | ||||
| -rw-r--r-- | include/ureg_x86.h | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/include/ureg_amd64.h b/include/ureg_amd64.h index 2c39f17ce7..9c793bc621 100644 --- a/include/ureg_amd64.h +++ b/include/ureg_amd64.h @@ -26,7 +26,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -struct Ureg { +typedef struct UregAmd64 UregAmd64; +struct UregAmd64 { u64int ax; u64int bx; u64int cx; diff --git a/include/ureg_arm.h b/include/ureg_arm.h index c740b03021..11f98aa602 100644 --- a/include/ureg_arm.h +++ b/include/ureg_arm.h @@ -26,7 +26,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -struct Ureg { +typedef struct UregArm UregArm; +struct UregArm { uint r0; uint r1; uint r2; diff --git a/include/ureg_x86.h b/include/ureg_x86.h index c20fe4e4c4..641016def2 100644 --- a/include/ureg_x86.h +++ b/include/ureg_x86.h @@ -26,7 +26,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -struct Ureg +typedef struct Ureg386 Ureg386; +struct Ureg386 { uint32 di; /* general registers */ uint32 si; /* ... */ |
