diff --git a/Basic/Core/pdl.h.PL b/Basic/Core/pdl.h.PL index 648d858dd..f4d212919 100644 --- a/Basic/Core/pdl.h.PL +++ b/Basic/Core/pdl.h.PL @@ -80,14 +80,16 @@ PDL_TYPELIST_ALL(X) PDL_TYPELIST_ALL(X) #undef X -typedef struct { - pdl_datatypes type; - union { +typedef union { #define X(sym, ctype, ppsym, shortctype, defbval, realctype, ...) \ - ctype ppsym; + ctype ppsym; PDL_TYPELIST_ALL(X) #undef X - } value; +} PDL_Value; + +typedef struct { + pdl_datatypes type; + PDL_Value value; } PDL_Anyval; #include "pdlthread.h" diff --git a/Changes b/Changes index 37c7c0427..d665f6c6e 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,7 @@ - GLUT TriD now reopens the window on next draw if was closed - bifuncs like Ops::plus no longer need explicit swap parameter - remove PDL.grow from API +- add C "PDL_Value" union type 2.064 2022-01-08 - enable perldl -glut on Win32