annotate src/script.c @ 315:8550ff69fcc9

Tinkering with autotools
author lost
date Tue, 27 Jan 2009 05:50:02 +0000
parents 87c4e65074f0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
1 /*
460d96987670 parse linking scripts
lost
parents:
diff changeset
2 script.c
300
48945dac8178 Fixed copyright year
lost
parents: 299
diff changeset
3 Copyright © 2009 William Astle
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
4
460d96987670 parse linking scripts
lost
parents:
diff changeset
5 This file is part of LWLINK.
460d96987670 parse linking scripts
lost
parents:
diff changeset
6
460d96987670 parse linking scripts
lost
parents:
diff changeset
7 LWLINK is free software: you can redistribute it and/or modify it under the
460d96987670 parse linking scripts
lost
parents:
diff changeset
8 terms of the GNU General Public License as published by the Free Software
460d96987670 parse linking scripts
lost
parents:
diff changeset
9 Foundation, either version 3 of the License, or (at your option) any later
460d96987670 parse linking scripts
lost
parents:
diff changeset
10 version.
460d96987670 parse linking scripts
lost
parents:
diff changeset
11
460d96987670 parse linking scripts
lost
parents:
diff changeset
12 This program is distributed in the hope that it will be useful, but WITHOUT
460d96987670 parse linking scripts
lost
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
460d96987670 parse linking scripts
lost
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
460d96987670 parse linking scripts
lost
parents:
diff changeset
15 more details.
460d96987670 parse linking scripts
lost
parents:
diff changeset
16
460d96987670 parse linking scripts
lost
parents:
diff changeset
17 You should have received a copy of the GNU General Public License along with
460d96987670 parse linking scripts
lost
parents:
diff changeset
18 this program. If not, see <http://www.gnu.org/licenses/>.
460d96987670 parse linking scripts
lost
parents:
diff changeset
19
460d96987670 parse linking scripts
lost
parents:
diff changeset
20
460d96987670 parse linking scripts
lost
parents:
diff changeset
21 Read and parse linker scripts
460d96987670 parse linking scripts
lost
parents:
diff changeset
22 */
460d96987670 parse linking scripts
lost
parents:
diff changeset
23
460d96987670 parse linking scripts
lost
parents:
diff changeset
24 #ifdef HAVE_CONFIG_H
460d96987670 parse linking scripts
lost
parents:
diff changeset
25 #include "config.h"
460d96987670 parse linking scripts
lost
parents:
diff changeset
26 #endif
460d96987670 parse linking scripts
lost
parents:
diff changeset
27
460d96987670 parse linking scripts
lost
parents:
diff changeset
28 #include <errno.h>
460d96987670 parse linking scripts
lost
parents:
diff changeset
29 #include <stdio.h>
460d96987670 parse linking scripts
lost
parents:
diff changeset
30 #include <stdlib.h>
460d96987670 parse linking scripts
lost
parents:
diff changeset
31 #include <string.h>
460d96987670 parse linking scripts
lost
parents:
diff changeset
32
460d96987670 parse linking scripts
lost
parents:
diff changeset
33 #include "lwlink.h"
460d96987670 parse linking scripts
lost
parents:
diff changeset
34 #include "util.h"
460d96987670 parse linking scripts
lost
parents:
diff changeset
35
460d96987670 parse linking scripts
lost
parents:
diff changeset
36 // the built-in DECB target linker script
460d96987670 parse linking scripts
lost
parents:
diff changeset
37 static char *decb_script =
306
be1abc4ac114 Corrected errors with parsing script and object files
lost
parents: 303
diff changeset
38 "section init load 2000\n"
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
39 "section code\n"
460d96987670 parse linking scripts
lost
parents:
diff changeset
40 "section *,!bss\n"
460d96987670 parse linking scripts
lost
parents:
diff changeset
41 "section *,bss\n"
303
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
42 "entry 2000\n"
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
43 ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
44
460d96987670 parse linking scripts
lost
parents:
diff changeset
45 // the built-in RAW target linker script
460d96987670 parse linking scripts
lost
parents:
diff changeset
46 static char *raw_script =
306
be1abc4ac114 Corrected errors with parsing script and object files
lost
parents: 303
diff changeset
47 "section init load 0000\n"
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
48 "section code\n"
460d96987670 parse linking scripts
lost
parents:
diff changeset
49 "section *,!bss\n"
460d96987670 parse linking scripts
lost
parents:
diff changeset
50 "section *,bss\n"
460d96987670 parse linking scripts
lost
parents:
diff changeset
51 ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
52
460d96987670 parse linking scripts
lost
parents:
diff changeset
53 // the "simple" script
460d96987670 parse linking scripts
lost
parents:
diff changeset
54 static char *simple_script =
460d96987670 parse linking scripts
lost
parents:
diff changeset
55 "section *,!bss\n"
460d96987670 parse linking scripts
lost
parents:
diff changeset
56 "section *,bss\n"
460d96987670 parse linking scripts
lost
parents:
diff changeset
57 ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
58
460d96987670 parse linking scripts
lost
parents:
diff changeset
59 linkscript_t linkscript = { 0, NULL, -1 };
460d96987670 parse linking scripts
lost
parents:
diff changeset
60
460d96987670 parse linking scripts
lost
parents:
diff changeset
61 void setup_script()
460d96987670 parse linking scripts
lost
parents:
diff changeset
62 {
307
87c4e65074f0 Actually allow script file to be specified and fix segfault on parsing script file
lost
parents: 306
diff changeset
63 char *script, *oscript;
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
64 long size;
460d96987670 parse linking scripts
lost
parents:
diff changeset
65
460d96987670 parse linking scripts
lost
parents:
diff changeset
66 // read the file if needed
460d96987670 parse linking scripts
lost
parents:
diff changeset
67 if (scriptfile)
460d96987670 parse linking scripts
lost
parents:
diff changeset
68 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
69 FILE *f;
460d96987670 parse linking scripts
lost
parents:
diff changeset
70 long bread;
460d96987670 parse linking scripts
lost
parents:
diff changeset
71
460d96987670 parse linking scripts
lost
parents:
diff changeset
72 f = fopen(scriptfile, "rb");
460d96987670 parse linking scripts
lost
parents:
diff changeset
73 if (!f)
460d96987670 parse linking scripts
lost
parents:
diff changeset
74 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
75 fprintf(stderr, "Can't open file %s:", scriptfile);
460d96987670 parse linking scripts
lost
parents:
diff changeset
76 perror("");
460d96987670 parse linking scripts
lost
parents:
diff changeset
77 exit(1);
460d96987670 parse linking scripts
lost
parents:
diff changeset
78 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
79 fseek(f, 0, SEEK_END);
460d96987670 parse linking scripts
lost
parents:
diff changeset
80 size = ftell(f);
460d96987670 parse linking scripts
lost
parents:
diff changeset
81 rewind(f);
460d96987670 parse linking scripts
lost
parents:
diff changeset
82
460d96987670 parse linking scripts
lost
parents:
diff changeset
83 script = lw_malloc(size + 2);
460d96987670 parse linking scripts
lost
parents:
diff changeset
84
460d96987670 parse linking scripts
lost
parents:
diff changeset
85 bread = fread(script, 1, size, f);
460d96987670 parse linking scripts
lost
parents:
diff changeset
86 if (bread < size)
460d96987670 parse linking scripts
lost
parents:
diff changeset
87 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
88 fprintf(stderr, "Short read on file %s (%ld/%ld):", scriptfile, bread, size);
460d96987670 parse linking scripts
lost
parents:
diff changeset
89 perror("");
460d96987670 parse linking scripts
lost
parents:
diff changeset
90 exit(1);
460d96987670 parse linking scripts
lost
parents:
diff changeset
91 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
92 fclose(f);
460d96987670 parse linking scripts
lost
parents:
diff changeset
93
460d96987670 parse linking scripts
lost
parents:
diff changeset
94 script[size] = '\n';
460d96987670 parse linking scripts
lost
parents:
diff changeset
95 script[size + 1] = '\0';
460d96987670 parse linking scripts
lost
parents:
diff changeset
96 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
97 else
460d96987670 parse linking scripts
lost
parents:
diff changeset
98 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
99 // fetch defaults based on output mode
460d96987670 parse linking scripts
lost
parents:
diff changeset
100 switch (outformat)
460d96987670 parse linking scripts
lost
parents:
diff changeset
101 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
102 case OUTPUT_RAW:
460d96987670 parse linking scripts
lost
parents:
diff changeset
103 script = raw_script;
460d96987670 parse linking scripts
lost
parents:
diff changeset
104 break;
460d96987670 parse linking scripts
lost
parents:
diff changeset
105
460d96987670 parse linking scripts
lost
parents:
diff changeset
106 case OUTPUT_DECB:
460d96987670 parse linking scripts
lost
parents:
diff changeset
107 script = decb_script;
460d96987670 parse linking scripts
lost
parents:
diff changeset
108 break;
460d96987670 parse linking scripts
lost
parents:
diff changeset
109
460d96987670 parse linking scripts
lost
parents:
diff changeset
110 default:
460d96987670 parse linking scripts
lost
parents:
diff changeset
111 script = simple_script;
460d96987670 parse linking scripts
lost
parents:
diff changeset
112 break;
460d96987670 parse linking scripts
lost
parents:
diff changeset
113 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
114
460d96987670 parse linking scripts
lost
parents:
diff changeset
115 size = strlen(script);
460d96987670 parse linking scripts
lost
parents:
diff changeset
116 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
117
307
87c4e65074f0 Actually allow script file to be specified and fix segfault on parsing script file
lost
parents: 306
diff changeset
118 oscript = script;
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
119 // now parse the script file
460d96987670 parse linking scripts
lost
parents:
diff changeset
120 while (*script)
460d96987670 parse linking scripts
lost
parents:
diff changeset
121 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
122 char *ptr, *ptr2, *line;
460d96987670 parse linking scripts
lost
parents:
diff changeset
123
460d96987670 parse linking scripts
lost
parents:
diff changeset
124 for (ptr = script; *ptr && *ptr != '\n' && *ptr != '\r'; ptr++)
460d96987670 parse linking scripts
lost
parents:
diff changeset
125 /* do nothing */ ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
126
460d96987670 parse linking scripts
lost
parents:
diff changeset
127 line = lw_malloc(ptr - script + 1);
460d96987670 parse linking scripts
lost
parents:
diff changeset
128 memcpy(line, script, ptr - script);
460d96987670 parse linking scripts
lost
parents:
diff changeset
129 line[ptr - script] = '\0';
460d96987670 parse linking scripts
lost
parents:
diff changeset
130
460d96987670 parse linking scripts
lost
parents:
diff changeset
131 // skip line terms
460d96987670 parse linking scripts
lost
parents:
diff changeset
132 for (script = ptr + 1; *script == '\n' || *script == '\r'; script++)
460d96987670 parse linking scripts
lost
parents:
diff changeset
133 /* do nothing */ ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
134
460d96987670 parse linking scripts
lost
parents:
diff changeset
135 // ignore leading whitespace
460d96987670 parse linking scripts
lost
parents:
diff changeset
136 for (ptr = line; *ptr && isspace(*ptr); ptr++)
460d96987670 parse linking scripts
lost
parents:
diff changeset
137 /* do nothing */ ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
138
460d96987670 parse linking scripts
lost
parents:
diff changeset
139 // ignore blank lines
460d96987670 parse linking scripts
lost
parents:
diff changeset
140 if (!*ptr)
460d96987670 parse linking scripts
lost
parents:
diff changeset
141 continue;
460d96987670 parse linking scripts
lost
parents:
diff changeset
142
460d96987670 parse linking scripts
lost
parents:
diff changeset
143 for (ptr = line; *ptr && !isspace(*ptr); ptr++)
460d96987670 parse linking scripts
lost
parents:
diff changeset
144 /* do nothing */ ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
145
460d96987670 parse linking scripts
lost
parents:
diff changeset
146 // now ptr points to the char past the first word
460d96987670 parse linking scripts
lost
parents:
diff changeset
147 // NUL it out
460d96987670 parse linking scripts
lost
parents:
diff changeset
148 if (*ptr)
460d96987670 parse linking scripts
lost
parents:
diff changeset
149 *ptr++ = '\0';
460d96987670 parse linking scripts
lost
parents:
diff changeset
150
460d96987670 parse linking scripts
lost
parents:
diff changeset
151 // skip spaces after the first word
460d96987670 parse linking scripts
lost
parents:
diff changeset
152 for ( ; *ptr && isspace(*ptr); ptr++)
460d96987670 parse linking scripts
lost
parents:
diff changeset
153 /* do nothing */ ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
154
460d96987670 parse linking scripts
lost
parents:
diff changeset
155 if (!strcmp(line, "pad"))
460d96987670 parse linking scripts
lost
parents:
diff changeset
156 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
157 // padding
460d96987670 parse linking scripts
lost
parents:
diff changeset
158 // parse the hex number and stow it
460d96987670 parse linking scripts
lost
parents:
diff changeset
159 linkscript.padsize = strtol(ptr, NULL, 16);
460d96987670 parse linking scripts
lost
parents:
diff changeset
160 if (linkscript.padsize < 0)
460d96987670 parse linking scripts
lost
parents:
diff changeset
161 linkscript.padsize = 0;
460d96987670 parse linking scripts
lost
parents:
diff changeset
162 }
303
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
163 else if (!strcmp(line, "entry"))
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
164 {
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
165 int eaddr;
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
166
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
167 eaddr = strtol(ptr, &ptr2, 16);
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
168 if (*ptr2)
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
169 {
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
170 linkscript.execaddr = -1;
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
171 linkscript.execsym = lw_strdup(ptr);
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
172 }
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
173 else
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
174 {
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
175 linkscript.execaddr = eaddr;
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
176 linkscript.execsym = NULL;
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
177 }
13272197d278 Added simplistic output module for DECB target
lost
parents: 301
diff changeset
178 }
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
179 else if (!strcmp(line, "section"))
460d96987670 parse linking scripts
lost
parents:
diff changeset
180 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
181 // section
460d96987670 parse linking scripts
lost
parents:
diff changeset
182 // parse out the section name and flags
460d96987670 parse linking scripts
lost
parents:
diff changeset
183 for (ptr2 = ptr; *ptr2 && !isspace(*ptr2); ptr2++)
460d96987670 parse linking scripts
lost
parents:
diff changeset
184 /* do nothing */ ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
185
460d96987670 parse linking scripts
lost
parents:
diff changeset
186 if (*ptr2)
460d96987670 parse linking scripts
lost
parents:
diff changeset
187 *ptr2++ = '\0';
460d96987670 parse linking scripts
lost
parents:
diff changeset
188
460d96987670 parse linking scripts
lost
parents:
diff changeset
189 while (*ptr2 && isspace(*ptr2))
460d96987670 parse linking scripts
lost
parents:
diff changeset
190 ptr2++;
460d96987670 parse linking scripts
lost
parents:
diff changeset
191
460d96987670 parse linking scripts
lost
parents:
diff changeset
192 // ptr now points to the section name and flags and ptr2
460d96987670 parse linking scripts
lost
parents:
diff changeset
193 // to the first non-space character following
460d96987670 parse linking scripts
lost
parents:
diff changeset
194
460d96987670 parse linking scripts
lost
parents:
diff changeset
195 // then look for "load <addr>" clause
460d96987670 parse linking scripts
lost
parents:
diff changeset
196 if (*ptr2)
460d96987670 parse linking scripts
lost
parents:
diff changeset
197 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
198 if (!strncmp(ptr2, "load", 4))
460d96987670 parse linking scripts
lost
parents:
diff changeset
199 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
200 ptr2 += 4;
460d96987670 parse linking scripts
lost
parents:
diff changeset
201 while (*ptr2 && isspace(*ptr2))
460d96987670 parse linking scripts
lost
parents:
diff changeset
202 ptr2++;
460d96987670 parse linking scripts
lost
parents:
diff changeset
203
460d96987670 parse linking scripts
lost
parents:
diff changeset
204 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
205 else
460d96987670 parse linking scripts
lost
parents:
diff changeset
206 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
207 fprintf(stderr, "%s: bad script\n", scriptfile);
460d96987670 parse linking scripts
lost
parents:
diff changeset
208 exit(1);
460d96987670 parse linking scripts
lost
parents:
diff changeset
209 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
210 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
211
460d96987670 parse linking scripts
lost
parents:
diff changeset
212 // now ptr2 points to the load address if there is one
460d96987670 parse linking scripts
lost
parents:
diff changeset
213 // or NUL if not
460d96987670 parse linking scripts
lost
parents:
diff changeset
214 linkscript.lines = lw_realloc(linkscript.lines, sizeof(struct scriptline_s) * (linkscript.nlines + 1));
460d96987670 parse linking scripts
lost
parents:
diff changeset
215
460d96987670 parse linking scripts
lost
parents:
diff changeset
216 linkscript.lines[linkscript.nlines].noflags = 0;
460d96987670 parse linking scripts
lost
parents:
diff changeset
217 linkscript.lines[linkscript.nlines].yesflags = 0;
460d96987670 parse linking scripts
lost
parents:
diff changeset
218 if (*ptr2)
460d96987670 parse linking scripts
lost
parents:
diff changeset
219 linkscript.lines[linkscript.nlines].loadat = strtol(ptr2, NULL, 16);
460d96987670 parse linking scripts
lost
parents:
diff changeset
220 else
460d96987670 parse linking scripts
lost
parents:
diff changeset
221 linkscript.lines[linkscript.nlines].loadat = -1;
460d96987670 parse linking scripts
lost
parents:
diff changeset
222 for (ptr2 = ptr; *ptr2 && *ptr2 != ','; ptr2++)
460d96987670 parse linking scripts
lost
parents:
diff changeset
223 /* do nothing */ ;
460d96987670 parse linking scripts
lost
parents:
diff changeset
224 if (*ptr2)
460d96987670 parse linking scripts
lost
parents:
diff changeset
225 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
226 *ptr2++ = '\0';
460d96987670 parse linking scripts
lost
parents:
diff changeset
227 if (!strcmp(ptr2, "!bss"))
460d96987670 parse linking scripts
lost
parents:
diff changeset
228 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
229 linkscript.lines[linkscript.nlines].noflags = SECTION_BSS;
460d96987670 parse linking scripts
lost
parents:
diff changeset
230 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
231 else if (!strcmp(ptr2, "bss"))
460d96987670 parse linking scripts
lost
parents:
diff changeset
232 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
233 linkscript.lines[linkscript.nlines].yesflags = SECTION_BSS;
460d96987670 parse linking scripts
lost
parents:
diff changeset
234 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
235 else
460d96987670 parse linking scripts
lost
parents:
diff changeset
236 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
237 fprintf(stderr, "%s: bad script\n", scriptfile);
460d96987670 parse linking scripts
lost
parents:
diff changeset
238 exit(1);
460d96987670 parse linking scripts
lost
parents:
diff changeset
239 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
240 }
301
376cc55361c7 section order and address resolution done
lost
parents: 300
diff changeset
241 if (ptr[0] == '*' && ptr[1] == '\0')
376cc55361c7 section order and address resolution done
lost
parents: 300
diff changeset
242 linkscript.lines[linkscript.nlines].sectname = NULL;
376cc55361c7 section order and address resolution done
lost
parents: 300
diff changeset
243 else
376cc55361c7 section order and address resolution done
lost
parents: 300
diff changeset
244 linkscript.lines[linkscript.nlines].sectname = lw_strdup(ptr);
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
245 linkscript.nlines++;
460d96987670 parse linking scripts
lost
parents:
diff changeset
246 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
247 else
460d96987670 parse linking scripts
lost
parents:
diff changeset
248 {
460d96987670 parse linking scripts
lost
parents:
diff changeset
249 fprintf(stderr, "%s: bad script\n", scriptfile);
460d96987670 parse linking scripts
lost
parents:
diff changeset
250 exit(1);
460d96987670 parse linking scripts
lost
parents:
diff changeset
251 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
252 lw_free(line);
460d96987670 parse linking scripts
lost
parents:
diff changeset
253 }
460d96987670 parse linking scripts
lost
parents:
diff changeset
254
460d96987670 parse linking scripts
lost
parents:
diff changeset
255 if (scriptfile)
307
87c4e65074f0 Actually allow script file to be specified and fix segfault on parsing script file
lost
parents: 306
diff changeset
256 lw_free(oscript);
299
460d96987670 parse linking scripts
lost
parents:
diff changeset
257 }