From d03de764e498954a08251dee9e820347ad177970 Mon Sep 17 00:00:00 2001 From: Elise Lennion Date: Sat, 10 Dec 2016 21:59:36 -0200 Subject: datatype: Display pre-defined inet_service values in decimal base because the convention is to represent ports in base 10. gcc-workaround is no longer needed and was removed. Signed-off-by: Elise Lennion Signed-off-by: Pablo Neira Ayuso --- include/datatype.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/datatype.h') diff --git a/include/datatype.h b/include/datatype.h index a7db1df4..9f127f29 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -175,13 +175,25 @@ struct symbolic_constant { #define SYMBOL(id, v) { .identifier = (id), .value = (v) } #define SYMBOL_LIST_END (struct symbolic_constant) { } +/** + * enum base - indicate how to display symbol table values + * + * @BASE_HEXADECIMAL: hexadecimal + * @BASE_DECIMAL: decimal + */ +enum base { + BASE_HEXADECIMAL, + BASE_DECIMAL, +}; + /** * struct symbol_table - type construction from symbolic values * + * @base: base of symbols representation * @symbols: the symbols */ struct symbol_table { - int gcc_workaround; + enum base base; struct symbolic_constant symbols[]; }; -- cgit v1.2.3