Make the SGML scanner (optionally) keep track of line numbers
commita578ed4667f297c73309f2e404ea41cdeeee6386
authorJonas Fonseca <fonseca@diku.dk>
Sat, 31 Dec 2005 01:46:56 +0000 (31 02:46 +0100)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Sat, 31 Dec 2005 01:46:56 +0000 (31 02:46 +0100)
tree755ce2b5bbf4ab0b98f92e63285c3cf71d38b67b
parentb23beed0316ff6faa3371babbce9f588741e68c1
Make the SGML scanner (optionally) keep track of line numbers

A new line is either \n or \f. The main logic for counting lines is in
skip_sgml{,_chars,_space}. For the general case where line numbers are not
wanted the code tries to avoid the extra checks for newlines.

This will be useful for reporting errors when loading the XBEL file.
src/dom/scanner.c
src/dom/scanner.h
src/dom/select.c
src/dom/sgml/parser.c
src/dom/sgml/scanner.c