diff options
Diffstat (limited to 'grc/core/Constants.py')
-rw-r--r-- | grc/core/Constants.py | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/grc/core/Constants.py b/grc/core/Constants.py index 7d27db104c..953676ffde 100644 --- a/grc/core/Constants.py +++ b/grc/core/Constants.py @@ -116,24 +116,22 @@ ALIAS_TYPES = { 'bits': (1, GRC_COLOR_PURPLE_A100), } -ALIAS_OF = { - 'complex': 'fc32', - 'float': 'f32', - 'int': 's32', - 'short': 's16', - 'short': 'sc16', - 'byte': 's8', - 'byte': 'sc8', - 'bits': 'bit', - - 'fc32': 'complex', - 'f32': 'float', - 's32': 'int', - 's16': 'short', - 'sc16': 'short', - 's8': 'byte', - 'sc8': 'byte', - 'bit': 'bits', +ALIASES_OF = { + 'complex': {'fc32'}, + 'float': {'f32'}, + 'int': {'s32'}, + 'short': {'s16', 'sc16'}, + 'byte': {'s8', 'sc8'}, + 'bits': {'bit'}, + + 'fc32': {'complex'}, + 'f32': {'float'}, + 's32': {'int'}, + 's16': {'short'}, + 'sc16': {'short'}, + 's8': {'byte'}, + 'sc8': {'byte'}, + 'bit': {'bits'}, } TYPE_TO_SIZEOF = {key: sizeof for name, key, sizeof, color in CORE_TYPES} |