Ensure that gendef does not put some comment on the line before emitting
all keywords which specify the symbol meaning or its parsing.
---
mingw-w64-tools/gendef/src/gendef.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/mingw-w64-tools/gendef/src/gendef.c
b/mingw-w64-tools/gendef/src/gendef.c
index 8786954b0d9c..35b5ebddfb75 100644
--- a/mingw-w64-tools/gendef/src/gendef.c
+++ b/mingw-w64-tools/gendef/src/gendef.c
@@ -807,14 +807,9 @@ dump_def (void)
import_name++;
fprintf (fp, "%s%s%s", quote, import_name, quote);
}
+ if (exp->retpop != (uint32_t) -1 && !exp->be64 && has_atdecoration() &&
exp->name[0] != '?' && !name_has_at_suffix && !name_has_fastcall)
+ fprintf(fp,"@%u", (unsigned int) exp->retpop);
- if (exp->retpop != (uint32_t) -1 && !exp->be64 && has_atdecoration())
- {
- if (exp->name[0]=='?')
- fprintf(fp," ; has WINAPI (@%u)", (unsigned int) exp->retpop);
- else if (!name_has_at_suffix && !name_has_fastcall)
- fprintf(fp,"@%u", (unsigned int) exp->retpop);
- }
if (exp->func == 0 && no_forward_output == 0)
fprintf (fp, " = %s", exp->forward);
if (exp->name[0] == 0)
@@ -831,6 +826,9 @@ dump_def (void)
fprintf(fp, " == %s%s%s", quote, exp->name, quote);
}
+ if (exp->retpop != (uint32_t) -1 && !exp->be64 && has_atdecoration() &&
exp->name[0] == '?')
+ fprintf(fp," ; has WINAPI (@%u)", (unsigned int) exp->retpop);
+
if (exp->retpop != (uint32_t) -1 || (exp->retpop == 0 && exp->be64) ||
!has_atdecoration ())
{
}
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public