diff options
author | Sverker Eriksson <[email protected]> | 2011-05-06 19:58:27 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2011-05-11 16:16:09 +0200 |
commit | e240140365fe61f747d788cd4f96f618f76cc63d (patch) | |
tree | 590f1594b904d6b5a85ae912cb0f86107fa52115 /erts/emulator/hipe/hipe_mkliterals.c | |
parent | 61c6a52561fd2be45adf3fbf7c65789a161aad38 (diff) | |
download | otp-e240140365fe61f747d788cd4f96f618f76cc63d.tar.gz otp-e240140365fe61f747d788cd4f96f618f76cc63d.tar.bz2 otp-e240140365fe61f747d788cd4f96f618f76cc63d.zip |
hipe_mkliterals print argv[0] in generated files
Diffstat (limited to 'erts/emulator/hipe/hipe_mkliterals.c')
-rw-r--r-- | erts/emulator/hipe/hipe_mkliterals.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/erts/emulator/hipe/hipe_mkliterals.c b/erts/emulator/hipe/hipe_mkliterals.c index 650861b54b..bced90785d 100644 --- a/erts/emulator/hipe/hipe_mkliterals.c +++ b/erts/emulator/hipe/hipe_mkliterals.c @@ -587,9 +587,9 @@ static void print_params(FILE *fp, void (*print_param)(FILE*,const struct rts_pa (*print_param)(fp, &rts_params[i]); } -static int do_c(FILE *fp) +static int do_c(FILE *fp, const char* this_exe) { - fprintf(fp, "/* File: hipe_literals.h, generated by hipe_mkliterals */\n"); + fprintf(fp, "/* File: hipe_literals.h, generated by %s */\n", this_exe); fprintf(fp, "#ifndef __HIPE_LITERALS_H__\n"); fprintf(fp, "#define __HIPE_LITERALS_H__\n\n"); print_literals(fp, c_define_literal); @@ -603,9 +603,9 @@ static int do_c(FILE *fp) return 0; } -static int do_e(FILE *fp) +static int do_e(FILE *fp, const char* this_exe) { - fprintf(fp, "%%%% File: hipe_literals.hrl, generated by hipe_mkliterals"); + fprintf(fp, "%%%% File: hipe_literals.hrl, generated by %s", this_exe); fprintf(fp, "\n\n"); print_literals(fp, e_define_literal); fprintf(fp, "\n"); @@ -622,9 +622,9 @@ int main(int argc, const char **argv) compute_crc(); if (argc == 2) { if (strcmp(argv[1], "-c") == 0) - return do_c(stdout); + return do_c(stdout, argv[0]); if (strcmp(argv[1], "-e") == 0) - return do_e(stdout); + return do_e(stdout, argv[0]); } fprintf(stderr, "usage: %s [-c | -e] > output-file\n", argv[0]); return 1; |