commit f3bc19a3e74456a7128a6ef19c82f968f181f3d1
parent 5dcf31beec60d18bdfe551c300ecba9f75a66230
Author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
Date: Thu, 29 Aug 2024 17:18:13 +0200
uxn core: enum -> const int; kencc does not like the same idents
Diffstat:
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/uxn.c b/src/uxn.c
@@ -12,14 +12,14 @@ WITH REGARD TO THIS SOFTWARE.
*/
#define OPC(opc, init, body) {\
- case 0x00|opc: {enum{_2=0,_r=0};init body;} break;\
- case 0x20|opc: {enum{_2=1,_r=0};init body;} break;\
- case 0x40|opc: {enum{_2=0,_r=1};init body;} break;\
- case 0x60|opc: {enum{_2=1,_r=1};init body;} break;\
- case 0x80|opc: {enum{_2=0,_r=0};int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\
- case 0xa0|opc: {enum{_2=1,_r=0};int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\
- case 0xc0|opc: {enum{_2=0,_r=1};int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\
- case 0xe0|opc: {enum{_2=1,_r=1};int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\
+ case 0x00|opc: {const int _2=0,_r=0;init body;} break;\
+ case 0x20|opc: {const int _2=1,_r=0;init body;} break;\
+ case 0x40|opc: {const int _2=0,_r=1;init body;} break;\
+ case 0x60|opc: {const int _2=1,_r=1;init body;} break;\
+ case 0x80|opc: {const int _2=0,_r=0;int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\
+ case 0xa0|opc: {const int _2=1,_r=0;int k=uxn.wst.ptr;init uxn.wst.ptr= k;body;} break;\
+ case 0xc0|opc: {const int _2=0,_r=1;int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\
+ case 0xe0|opc: {const int _2=1,_r=1;int k=uxn.rst.ptr;init uxn.rst.ptr= k;body;} break;\
}
/* Microcode */