diff options
author | Steve Chamberlain <steve@cygnus> | 1991-04-23 15:59:24 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-04-23 15:59:24 +0000 |
commit | a37cc0c05c5ee0e72a14a09c547555621371ef1d (patch) | |
tree | 2df4ce4a562ee651f2f17351d0a0402c75152583 /ld/mkscript.c | |
parent | 1327fb29568debb17b167a405a548f641bcfda69 (diff) | |
download | gdb-a37cc0c05c5ee0e72a14a09c547555621371ef1d.zip gdb-a37cc0c05c5ee0e72a14a09c547555621371ef1d.tar.gz gdb-a37cc0c05c5ee0e72a14a09c547555621371ef1d.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'ld/mkscript.c')
-rw-r--r-- | ld/mkscript.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ld/mkscript.c b/ld/mkscript.c index 5edda63..59a8e87 100644 --- a/ld/mkscript.c +++ b/ld/mkscript.c @@ -6,15 +6,20 @@ main() int ch; ch = getchar(); printf("/* Generated through mkscript */\n"); - printf("\"SCRIPT \\\n"); + printf("\"{ \\\n"); while (ch != EOF) { - if (ch == '\n') { + if (ch == '\"') { + putchar('\\'); + putchar('\"'); + } +else { if (ch == '\n') { putchar(' '); putchar('\\'); } putchar(ch); + } ch = getchar(); } - printf("ENDSCRIPT\"\n"); + printf("}\"\n"); return 0; } |