Skip to content

Commit

Permalink
Swap names HDL_LOGIC_STATES\CHAR
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRoss committed Apr 17, 2020
1 parent 94c1f61 commit 3cb2eaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions vhpidirect/cinterface/demo/ghdl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions vhpidirect/cinterface/demo/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions vhpidirect/ghdl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3cb2eaa

Please sign in to comment.