[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, comment, updated. gawk-4.1.0-735-gae1c0d
From: |
Stephen Davies |
Subject: |
[gawk-diffs] [SCM] gawk branch, comment, updated. gawk-4.1.0-735-gae1c0da |
Date: |
Mon, 08 Sep 2014 05:43:58 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, comment has been updated
via ae1c0daca3998e5be8369e632e093f9f6dce1a70 (commit)
from a1df6304be3c217877919097d2e4b3b16de6cd02 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=ae1c0daca3998e5be8369e632e093f9f6dce1a70
commit ae1c0daca3998e5be8369e632e093f9f6dce1a70
Author: Stephen Davies <address@hidden>
Date: Mon Sep 8 15:13:21 2014 +0930
fix indents
diff --git a/profile.c b/profile.c
index f1ced7e..e23a17a 100644
--- a/profile.c
+++ b/profile.c
@@ -200,7 +200,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, bool
in_for_header)
}
if (do_profile && ! rule_count[rule]++)
fprintf(prof_fp, _("\t# %s
block(s)\n\n"), ruletab[rule]);
- fprintf(prof_fp, "\t%s {\n", ruletab[rule]);
+ fprintf(prof_fp, "%s {\n", ruletab[rule]);
} else {
if (do_profile && ! rule_count[rule]++)
fprintf(prof_fp, _("\t# Rule(s)\n\n"));
@@ -226,7 +226,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, bool
in_for_header)
fprintf(prof_fp, "\n");
} else {
- fprintf(prof_fp, "\t{\n");
+ fprintf(prof_fp, "{\n");
ip = (pc + 1)->firsti;
}
ip = ip->nexti;
@@ -234,7 +234,7 @@ pprint(INSTRUCTION *startp, INSTRUCTION *endp, bool
in_for_header)
indent_in();
pprint(ip, (pc + 1)->lasti, false);
indent_out();
- fprintf(prof_fp, "\t}\n\n");
+ fprintf(prof_fp, "}\n\n");
pc = (pc + 1)->lasti;
break;
@@ -1530,7 +1530,7 @@ pp_func(INSTRUCTION *pc, void *data ATTRIBUTE_UNUSED)
print_comment(fp, 0);
fp = fp->nexti;
}
- if (!do_profile)
+ if (do_profile)
fprintf(prof_fp, "\t");
indent(pc->nexti->exec_count);
fprintf(prof_fp, "%s %s(", op2str(Op_K_function), func->vname);
@@ -1541,11 +1541,11 @@ pp_func(INSTRUCTION *pc, void *data ATTRIBUTE_UNUSED)
if (j < pcount - 1)
fprintf(prof_fp, ", ");
}
- fprintf(prof_fp, ")\n\t{\n");
+ fprintf(prof_fp, ")\n{\n");
indent_in();
pprint(fp, NULL, false); /* function body */
indent_out();
- fprintf(prof_fp, "\t}\n");
+ fprintf(prof_fp, "}\n");
return 0;
}
-----------------------------------------------------------------------
Summary of changes:
profile.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, comment, updated. gawk-4.1.0-735-gae1c0da,
Stephen Davies <=