# HG changeset patch # User William Astle # Date 1384315428 25200 # Node ID 86eb8814a05ca19458562127a5875a312189ba37 # Parent a1a88a8ddc98fbb01f855b9106f0dcaa83640718 Add comments to linker scripts. Lines starting with # or ; are now comments in linker scripts. diff -r a1a88a8ddc98 -r 86eb8814a05c lwlink/script.c --- a/lwlink/script.c Tue Sep 17 19:11:47 2013 -0600 +++ b/lwlink/script.c Tue Nov 12 21:03:48 2013 -0700 @@ -214,8 +214,8 @@ for (ptr = line; *ptr && isspace(*ptr); ptr++) /* do nothing */ ; - // ignore blank lines - if (!*ptr) + // ignore blank lines and comments + if (!*ptr || *ptr == '#' || *ptr == ';') continue; for (ptr = line; *ptr && !isspace(*ptr); ptr++)