From: sfeam (E. Merritt) <eam...@gm...> - 2011-01-26 04:16:20
|
On Tuesday, January 25, 2011, Mojca Miklavec wrote: > I don't know enough about gnuplot's source, so I don't know how > difficult it is to change it, but if there is no problem to support > comments (in both data files and scripts), I don't see why ignoring > the first two bytes would not be doable. I consider it "equally hard". If you want to experiment with that approach, you can find the relevant switch statement at line 201 of scanner.c (scanner): switch (expression[current]) { case '#': /* DFK: add comments to gnuplot */ goto endline; /* ignore the rest of the line */ case '^': case '+': That isn't going to help with data files, however. Only with command lines that unexpectedly contain the BOM sequence. |