shithub: libobj

Download patch

ref: 8589a86c50275a53276e468d150737e395a04e4e
parent: b86030fbaa1c1522f1d4f996ad763e2c3880bac9
author: rodri <[email protected]>
date: Sat Nov 11 05:32:29 EST 2023

removed unnecessary anonymous union in OBJVertex.

--- a/obj.h
+++ b/obj.h
@@ -26,7 +26,7 @@
 	OBJHTSIZE = 17
 };
 
-typedef struct OBJVertex OBJVertex;
+typedef union OBJVertex OBJVertex;
 typedef struct OBJVertexArray OBJVertexArray;
 typedef struct OBJElem OBJElem;
 //typedef struct OBJGroup OBJGroup;
@@ -35,13 +35,11 @@
 
 #pragma varargck type "O" OBJ*
 
-struct OBJVertex
+union OBJVertex
 {
-	union {
-		struct { double x, y, z, w; };	/* geometric */
-		struct { double u, v, vv; };	/* texture and parametric */
-		struct { double i, j, k; };	/* normal */
-	};
+	struct { double x, y, z, w; };	/* geometric */
+	struct { double u, v, vv; };	/* texture and parametric */
+	struct { double i, j, k; };	/* normal */
 };
 
 struct OBJVertexArray