diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-12-09 16:01:24 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-12-09 16:01:24 +0800 |
commit | 90645217ca3335821f5067d5c18a4f5db010a596 (patch) | |
tree | b44dc32b0bacaa86a3f588017d0e860c4ecab8b4 | |
parent | ce67c908a1d0819d2b3898d5c30c0b1b325bc0d3 (diff) | |
download | compiler2015-90645217ca3335821f5067d5c18a4f5db010a596.tar compiler2015-90645217ca3335821f5067d5c18a4f5db010a596.tar.gz compiler2015-90645217ca3335821f5067d5c18a4f5db010a596.tar.bz2 compiler2015-90645217ca3335821f5067d5c18a4f5db010a596.tar.lz compiler2015-90645217ca3335821f5067d5c18a4f5db010a596.tar.xz compiler2015-90645217ca3335821f5067d5c18a4f5db010a596.tar.zst compiler2015-90645217ca3335821f5067d5c18a4f5db010a596.zip |
Show (void) for functions without arguments
-rw-r--r-- | src/draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -217,6 +217,8 @@ static void print_symbol_type(FILE *fp, CcmmcSymbolType type) if (ccmmc_symbol_type_is_function(type)) { fputs(" (*)(", fp); + if (type.param_count == 0) + fputs("void)", fp); for (size_t i = 0; i < type.param_count; i++) { print_symbol_type(fp, type.param_list[i]); if (i == type.param_count - 1) |