r5782 - in developers/werner/cncmap: align zmap

werner at docs.openmoko.org werner at docs.openmoko.org
Thu Jan 7 21:30:49 CET 2010


Author: werner
Date: 2010-01-07 21:30:48 +0100 (Thu, 07 Jan 2010)
New Revision: 5782

Modified:
   developers/werner/cncmap/align/align.c
   developers/werner/cncmap/zmap/main.c
Log:
- zmap/main.c (process_file): added skipping of comment lines
- align/align.c, zmap/main.c (process_file): copy comment lines to output 



Modified: developers/werner/cncmap/align/align.c
===================================================================
--- developers/werner/cncmap/align/align.c	2010-01-07 19:57:57 UTC (rev 5781)
+++ developers/werner/cncmap/align/align.c	2010-01-07 20:30:48 UTC (rev 5782)
@@ -123,8 +123,10 @@
 
 	while (fgets(buf, sizeof(buf), file)) {
 		lineno++;
-		if (*buf == '!')
+		if (*buf == '!') {
+			printf("%s", buf);
 			continue;
+		}
 		n = sscanf(buf, "%lf %lf %lf\n", &x, &y, &z);
 		switch (n) {
 		case -1:

Modified: developers/werner/cncmap/zmap/main.c
===================================================================
--- developers/werner/cncmap/zmap/main.c	2010-01-07 19:57:57 UTC (rev 5781)
+++ developers/werner/cncmap/zmap/main.c	2010-01-07 20:30:48 UTC (rev 5782)
@@ -58,6 +58,10 @@
 
 	while (fgets(buf, sizeof(buf), file)) {
 		lineno++;
+		if (*buf == '!') {
+			printf("%s", buf);
+			continue;
+		}
 		n = sscanf(buf, "%lf %lf %lf\n",
 		    &line.b.x, &line.b.y, &line.b.z);
 		switch (n) {




More information about the commitlog mailing list