summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-01-08 20:37:27 -0500
committerRuss Cox <rsc@golang.org>2014-01-08 20:37:27 -0500
commitb2de73d06da23ea2220c031263a2f5da80ff7294 (patch)
tree19e3f4d0b17157e9d4fdcb17ab90982e44c0267b /include
parent8159a251481f4bb5d45fd599484af231e4164c68 (diff)
downloadgo-b2de73d06da23ea2220c031263a2f5da80ff7294.tar.gz
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://codereview.appspot.com/49090043
Diffstat (limited to 'include')
-rw-r--r--include/ureg_amd64.h3
-rw-r--r--include/ureg_arm.h3
-rw-r--r--include/ureg_x86.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/include/ureg_amd64.h b/include/ureg_amd64.h
index 2c39f17ce..9c793bc62 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 c740b0302..11f98aa60 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 c20fe4e4c..641016def 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; /* ... */