diff options
author | Martin Baulig <martin@novell.com> | 2003-02-09 19:37:28 +0300 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2003-02-09 19:37:28 +0300 |
commit | 237d5155be859fee48ab969aed3ef77e205b2dd8 (patch) | |
tree | bbb1550f7605e5dd120796086df7f005470769b6 /mcs/jay | |
parent | 211962f587bd36129ebc7548d09e5a3123621014 (diff) |
2003-02-09 Martin Baulig <martin@ximian.com>
* output.c: Use `#line default' instead of source file "-".
svn path=/trunk/mcs/; revision=11395
Diffstat (limited to 'mcs/jay')
-rwxr-xr-x | mcs/jay/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/jay/defs.h | 1 | ||||
-rw-r--r-- | mcs/jay/main.c | 1 | ||||
-rw-r--r-- | mcs/jay/output.c | 6 | ||||
-rw-r--r-- | mcs/jay/reader.c | 1 |
5 files changed, 10 insertions, 3 deletions
diff --git a/mcs/jay/ChangeLog b/mcs/jay/ChangeLog index 9ea2201c702..30283dee091 100755 --- a/mcs/jay/ChangeLog +++ b/mcs/jay/ChangeLog @@ -1,3 +1,7 @@ +2003-02-09 Martin Baulig <martin@ximian.com> + + * output.c: Use `#line default' instead of source file "-". + 2003-01-13 Jackson Harper <jackson@latitudegeo.com> * skeleton.cs: Remove cleanup stuff, it has been moved to a better spot. diff --git a/mcs/jay/defs.h b/mcs/jay/defs.h index ac1d63f53a3..8768e582276 100644 --- a/mcs/jay/defs.h +++ b/mcs/jay/defs.h @@ -243,6 +243,7 @@ extern int nvars; extern int ntags; extern char *line_format; +extern char *default_line_format; extern int start_symbol; extern char **symbol_name; diff --git a/mcs/jay/main.c b/mcs/jay/main.c index cb5d173181d..f210d733a5f 100644 --- a/mcs/jay/main.c +++ b/mcs/jay/main.c @@ -175,6 +175,7 @@ char *argv[]; case 'c': csharp = 1; line_format = "#line %d \"%s\"\n"; + default_line_format = "#line default\n"; break; case 'v': diff --git a/mcs/jay/output.c b/mcs/jay/output.c index 81e4755c9cd..f1e038e4921 100644 --- a/mcs/jay/output.c +++ b/mcs/jay/output.c @@ -838,7 +838,7 @@ char *name; ++outline; putchar(c); } - printf(line_format, ++outline + 1, "-"); + printf(default_line_format, ++outline + 1); } fclose(in); } @@ -1095,7 +1095,7 @@ output_trailing_text() ++outline; putchar('\n'); } - printf(line_format, ++outline + 1, "-"); + printf(default_line_format, ++outline + 1); } @@ -1129,7 +1129,7 @@ output_semantic_actions() putchar('\n'); } - printf(line_format, ++outline + 1, "-"); + printf(default_line_format, ++outline + 1); } diff --git a/mcs/jay/reader.c b/mcs/jay/reader.c index f2cdd5af834..0ffbd6fc15e 100644 --- a/mcs/jay/reader.c +++ b/mcs/jay/reader.c @@ -72,6 +72,7 @@ int name_pool_size; char *name_pool; char *line_format = "\t\t\t\t\t// line %d \"%s\"\n"; +char *default_line_format = "\t\t\t\t\t// line %d\n"; cachec(c) |