From: Matthew Fernandez Date: Sun, 10 Oct 2021 17:21:09 +0000 (-0700) Subject: smyrna: remove unused union names X-Git-Tag: 2.49.2~7^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7dd02f16f801ed9f1b0e9be6605b13a7020069a;p=graphviz smyrna: remove unused union names --- diff --git a/cmd/smyrna/arcball.h b/cmd/smyrna/arcball.h index b8e159ed3..cbfe32004 100644 --- a/cmd/smyrna/arcball.h +++ b/cmd/smyrna/arcball.h @@ -48,7 +48,7 @@ # include //Math types derived from the KempoApi tMath library -typedef union Tuple2f_t { +typedef union { struct { GLfloat X, Y; } s; @@ -56,7 +56,7 @@ typedef union Tuple2f_t { GLfloat T[2]; } Tuple2fT; //A generic 2-element tuple that is represented by single-precision floating point x,y coordinates. -typedef union Tuple3f_t { +typedef union { struct { GLfloat X, Y, Z; } s; @@ -64,7 +64,7 @@ typedef union Tuple3f_t { GLfloat T[3]; } Tuple3fT; //A generic 3-element tuple that is represented by single precision-floating point x,y,z coordinates. -typedef union Tuple4f_t { +typedef union { struct { GLfloat X, Y, Z, W; } s; @@ -72,7 +72,7 @@ typedef union Tuple4f_t { GLfloat T[4]; } Tuple4fT; //A 4-element tuple represented by single-precision floating point x,y,z,w coordinates. -typedef union Matrix3f_t { +typedef union { GLfloat M[9]; struct { //column major @@ -118,7 +118,7 @@ typedef union Matrix3f_t { } s; } Matrix3fT; //A single precision floating point 3 by 3 matrix. -typedef union Matrix4f_t { +typedef union { GLfloat M[16]; struct { //column major