]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - fold.cpp
Use C++ naming for structures
[xonotic/gmqcc.git] / fold.cpp
index 64b20d94e7662f7d1802293c39ebe670e2803da1..a2d6339f841986c973c92ee93273aaf81ebb28f7 100644 (file)
--- a/fold.cpp
+++ b/fold.cpp
  */
 typedef uint32_t sfloat_t;
 
-typedef union {
+union sfloat_cast_t {
     qcfloat_t f;
     sfloat_t  s;
-} sfloat_cast_t;
+};
 
 /* Exception flags */
-typedef enum {
+enum sfloat_exceptionflags_t {
     SFLOAT_NOEXCEPT  = 0,
     SFLOAT_INVALID   = 1,
     SFLOAT_DIVBYZERO = 4,
     SFLOAT_OVERFLOW  = 8,
     SFLOAT_UNDERFLOW = 16,
     SFLOAT_INEXACT   = 32
-} sfloat_exceptionflags_t;
+};
 
 /* Rounding modes */
 typedef enum {