changeset 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 a1a88a8ddc98
children fcd103148aa6
files lwlink/script.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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++)