Mercurial > hg > index.cgi
comparison lwlink/script.c @ 310:86eb8814a05c
Add comments to linker scripts.
Lines starting with # or ; are now comments in linker scripts.
author | William Astle <lost@l-w.ca> |
---|---|
date | Tue, 12 Nov 2013 21:03:48 -0700 |
parents | 7de7b14ebaee |
children | fcd103148aa6 |
comparison
equal
deleted
inserted
replaced
284:a1a88a8ddc98 | 310:86eb8814a05c |
---|---|
212 | 212 |
213 // ignore leading whitespace | 213 // ignore leading whitespace |
214 for (ptr = line; *ptr && isspace(*ptr); ptr++) | 214 for (ptr = line; *ptr && isspace(*ptr); ptr++) |
215 /* do nothing */ ; | 215 /* do nothing */ ; |
216 | 216 |
217 // ignore blank lines | 217 // ignore blank lines and comments |
218 if (!*ptr) | 218 if (!*ptr || *ptr == '#' || *ptr == ';') |
219 continue; | 219 continue; |
220 | 220 |
221 for (ptr = line; *ptr && !isspace(*ptr); ptr++) | 221 for (ptr = line; *ptr && !isspace(*ptr); ptr++) |
222 /* do nothing */ ; | 222 /* do nothing */ ; |
223 | 223 |