From 956f2159e2f0471582a12f5a5411e15af4f54470 Mon Sep 17 00:00:00 2001 From: Ed J Date: Mon, 10 Jan 2022 02:29:32 +0000 Subject: [PATCH] add C "PDL_Value" union type --- Basic/Core/pdl.h.PL | 12 +++++++----- Changes | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) 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