respect enums and unions

This commit is contained in:
anon 2023-12-15 15:25:53 +01:00
parent 4bc1b260fe
commit ce080b1034
2 changed files with 32 additions and 0 deletions

View File

@ -3,6 +3,26 @@
typedef int myint;
typedef enum {
ENUMVALUE,
ENUMEND,
} myenum;
enum enum2 {
ENUMVALUE2,
ENUMEND2,
};
typedef union {
int i,
char c,
} myunion;
union myunion2 {
int i,
char c,
};
// Global variables
int global_var = 10;

View File

@ -71,6 +71,18 @@ targets = [
'type': 'c',
'out': hi('Type')
},
{
'type': 'e',
'out': hi('Type')
},
{
'type': 'u',
'out': hi('Type')
},
{
'type': 'g',
'out': hi('Type')
},
{
'type': 'd',
'out': hi('Constant')