diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-06-06 08:01:20 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-06-06 08:01:20 +0200 |
commit | be0bbfc67b73988ed28319fd6173107cfee0449f (patch) | |
tree | 8a66f2a6da5e4a5b6235f90b3d94df5c8aac69ee /src/grt/ghwlib.h | |
parent | 990f637cac18d53854d0c67015b1c921f18d5e3d (diff) | |
download | ghdl-be0bbfc67b73988ed28319fd6173107cfee0449f.tar.gz ghdl-be0bbfc67b73988ed28319fd6173107cfee0449f.tar.bz2 ghdl-be0bbfc67b73988ed28319fd6173107cfee0449f.zip |
ghwlib: fix sign issues, leaks, base types.
Diffstat (limited to 'src/grt/ghwlib.h')
-rw-r--r-- | src/grt/ghwlib.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/grt/ghwlib.h b/src/grt/ghwlib.h index 5ee05953a..ad9f93c79 100644 --- a/src/grt/ghwlib.h +++ b/src/grt/ghwlib.h @@ -320,20 +320,20 @@ struct ghw_handler /* String table. */ /* Number of strings. */ - int nbr_str; + unsigned nbr_str; /* Size of the strings (without nul). */ - int str_size; + unsigned str_size; /* String table. */ char **str_table; /* Array containing strings. */ char *str_content; /* Type table. */ - int nbr_types; + unsigned nbr_types; union ghw_type **types; /* Non-composite (or basic) signals. */ - int nbr_sigs; + unsigned nbr_sigs; char *skip_sigs; int flag_full_names; struct ghw_sig *sigs; @@ -349,11 +349,15 @@ struct ghw_handler Return < 0 in case of error. */ int ghw_open (struct ghw_handler *h, const char *filename); +/* Return base type of T. */ union ghw_type *ghw_get_base_type (union ghw_type *t); +/* Return length of RNG. */ +int ghw_get_range_length (union ghw_range *rng); + /* Put the ASCII representation of VAL into BUF, whose size if LEN. A NUL is always written to BUF. */ -void ghw_get_value (char *buf, int len, +void ghw_get_value (char *buf, int len, union ghw_val *val, union ghw_type *type); const char *ghw_get_hie_name (struct ghw_hie *h); |