Re: [mkgmap-dev] mkgmap --check-styles and line count

2014-03-24 Thread Steve Ratcliffe
Hi @Steve: I know that this part in TokenScanner is critical, so I don't dare to change it: if (c == '\n' || c == '\r') { while ((c = readChar()) == '\n' || c == '\r') val.append(c); .. } The attached patch fixes this, I believe. ..Steve Index:

[mkgmap-dev] mkgmap --check-styles and line count

2014-03-21 Thread Bernd Weigelt
Hi my style include a lot of rules like this: highway=footway[0x1200d resolution 23-23 continue] highway=footway[0x1100d resolution 24 continue] highway=footway (bicycle=designated | bicycle=permissive | bicycle=official |

Re: [mkgmap-dev] mkgmap --check-styles and line count

2014-03-21 Thread Gerd Petermann
Hi Bernd, please send the file with the error. I assume the line count is completely wrong in case of these stack 0 errors. Gerd From: weigelt.be...@web.de To: mkgmap-dev@lists.mkgmap.org.uk Date: Fri, 21 Mar 2014 20:11:14 +0100 Subject: [mkgmap-dev] mkgmap --check-styles and line count

Re: [mkgmap-dev] mkgmap --check-styles and line count

2014-03-21 Thread Carlos Dávila
El 21/03/14 20:11, Bernd Weigelt escribió: Hi my style include a lot of rules like this: highway=footway[0x1200d resolution 23-23 continue] highway=footway[0x1100d resolution 24 continue] highway=footway (bicycle=designated |

Re: [mkgmap-dev] mkgmap --check-styles and line count

2014-03-21 Thread Gerd Petermann
] mkgmap --check-styles and line count Hi my style include a lot of rules like this: highway=footway[0x1200d resolution 23-23 continue] highway=footway[0x1100d resolution 24 continue] highway=footway (bicycle=designated | bicycle

Re: [mkgmap-dev] mkgmap --check-styles and line count

2014-03-21 Thread Steve Ratcliffe
Hi Gerd As a result, empty lines are not counted. @Steve: I know that this part in TokenScanner is critical, so I don't dare to change it: if (c == '\n' || c == '\r') { while ((c = readChar()) == '\n' || c == '\r') val.append(c); .. } Thanks, good