diff --git a/vhpidirect/cinterface/demo/ghdl.h b/vhpidirect/cinterface/demo/ghdl.h index 02aff5a9..0ac47b9f 100644 --- a/vhpidirect/cinterface/demo/ghdl.h +++ b/vhpidirect/cinterface/demo/ghdl.h @@ -238,9 +238,9 @@ ghdl_AccNaturalDimArr_t* ghdlAccFromString(char *string) { */ // @RocketRoss -static const char HDL_LOGIC_STATE[] = { 'U', 'X', '0', '1', 'Z', 'W', 'L', 'H', '-'}; +static const char HDL_LOGIC_CHAR[] = { 'U', 'X', '0', '1', 'Z', 'W', 'L', 'H', '-'}; -enum HDL_LOGIC_CHAR { +enum HDL_LOGIC_STATES { HDL_U = 0, HDL_X = 1, HDL_0 = 2, diff --git a/vhpidirect/cinterface/demo/main.c b/vhpidirect/cinterface/demo/main.c index 0666854f..d4554378 100644 --- a/vhpidirect/cinterface/demo/main.c +++ b/vhpidirect/cinterface/demo/main.c @@ -61,10 +61,10 @@ void testCinterface( ghdl_NaturalDimArr_t* v_3d_int ) { assert(v_logic == HDL_H); - printf("v_logic : %c\n", HDL_LOGIC_STATE[v_logic]); + printf("v_logic : %c\n", HDL_LOGIC_CHAR[v_logic]); assert(v_ulogic == HDL_Z); - printf("v_ulogic : %c\n", HDL_LOGIC_STATE[v_ulogic]); + printf("v_ulogic : %c\n", HDL_LOGIC_CHAR[v_ulogic]); assert(v_char == 'k'); printf("v_char : %c\n", v_char); diff --git a/vhpidirect/ghdl.h b/vhpidirect/ghdl.h index 02aff5a9..0ac47b9f 100644 --- a/vhpidirect/ghdl.h +++ b/vhpidirect/ghdl.h @@ -238,9 +238,9 @@ ghdl_AccNaturalDimArr_t* ghdlAccFromString(char *string) { */ // @RocketRoss -static const char HDL_LOGIC_STATE[] = { 'U', 'X', '0', '1', 'Z', 'W', 'L', 'H', '-'}; +static const char HDL_LOGIC_CHAR[] = { 'U', 'X', '0', '1', 'Z', 'W', 'L', 'H', '-'}; -enum HDL_LOGIC_CHAR { +enum HDL_LOGIC_STATES { HDL_U = 0, HDL_X = 1, HDL_0 = 2,