X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=lex.h;h=a310e9dba94128c55667a39bea5de72d1a4a396c;hb=be3167c9e0220a4ee3e8b5c5f813fb2627d1ce55;hp=a86c4253deba57f8bbbe7107684e877f253df1cb;hpb=4e0c88b473dffdefb830e6806c3692aab6b4fa0c;p=pgn-extract diff --git a/lex.h b/lex.h index a86c425..a310e9d 100644 --- a/lex.h +++ b/lex.h @@ -78,6 +78,8 @@ const char *tag_header_string(TagName tag); Boolean open_first_file(void); const char *input_file_name(unsigned file_number); unsigned current_file_number(void); +Boolean seek_to_begin(void); +Boolean at_end_of_input(void); Boolean open_eco_file(const char *eco_file); int yywrap(void); void add_filename_to_source_list(const char *filename,SourceFileType file_type); @@ -87,3 +89,4 @@ char *next_input_line(FILE *fp); LinePair gather_tag(char *line, unsigned char *linep); LinePair gather_string(char *line, unsigned char *linep); Boolean is_character_class(unsigned char ch, TokenType character_class); +long get_position(void);