aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-08-12 18:15:18 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-08-12 18:15:18 +0300
commitd389d4cd9e2d75159f69a23bfa6d038f74502b12 (patch)
tree54a67069f473d69f4f5de76b01f69081121ec4ef /profile.c
parent8110b4b66d9bf0f94b4595aadd4e9439df526fa5 (diff)
downloadegawk-d389d4cd9e2d75159f69a23bfa6d038f74502b12.tar.gz
egawk-d389d4cd9e2d75159f69a23bfa6d038f74502b12.tar.bz2
egawk-d389d4cd9e2d75159f69a23bfa6d038f74502b12.zip
Fix issues with function ordering in pretty printed output. Add doc.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index f959c228..44e171fc 100644
--- a/profile.c
+++ b/profile.c
@@ -2059,6 +2059,9 @@ pp_namespace(const char *name, INSTRUCTION *comment)
// info saved in Op_namespace instructions.
current_namespace = name;
+ // force newline, could be after a comment
+ fprintf(prof_fp, "\n");
+
if (do_profile)
indent(SPACEOVER);