Changeset 5996


Ignore:
Timestamp:
11/01/10 23:54:38 (3 years ago)
Author:
werner
Message:

Accept "#" as comment character in gnuplot data files.

Misread the documentation - on Unix, only # is a valid comment character in
gnuplot data files. So we treat it as such now.

  • gp2rml/gp2rml.c (process_file), zmap/main.c (process_file), align/align.c (process_file): accept "#" as comment character (in addition to "!")


Location:
developers/werner/cncmap
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • developers/werner/cncmap/align/align.c

    r5852 r5996  
    124124        while (fgets(buf, sizeof(buf), file)) { 
    125125                lineno++; 
    126                 if (*buf == '!') { 
     126                if (*buf == '!' || *buf == '#') { 
    127127                        printf("%s", buf); 
    128128                        continue; 
  • developers/werner/cncmap/gp2rml/gp2rml.c

    r5852 r5996  
    9595        while (fgets(buf, sizeof(buf), file)) { 
    9696                lineno++; 
    97                 if (*buf == '!') 
     97                if (*buf == '!' || *buf == '#') 
    9898                        continue; 
    9999                n = sscanf(buf, "%lf %lf %lf\n", &x, &y, &z); 
  • developers/werner/cncmap/zmap/main.c

    r5782 r5996  
    22 * main.c - Command-line interface to zmap and zline 
    33 * 
    4  * Written 2009 by Werner Almesberger 
    5  * Copyright 2009 Werner Almesberger 
     4 * Written 2009, 2010 by Werner Almesberger 
     5 * Copyright 2009, 2010 Werner Almesberger 
    66 * 
    77 * This program is free software; you can redistribute it and/or modify 
     
    5959        while (fgets(buf, sizeof(buf), file)) { 
    6060                lineno++; 
    61                 if (*buf == '!') { 
     61                if (*buf == '!' || *buf == '#') { 
    6262                        printf("%s", buf); 
    6363                        continue; 
Note: See TracChangeset for help on using the changeset viewer.