#include <stddef.h>
/* Initialization. */
-void lex_init (void);
+void lex_init (bool (*)(struct string *, bool*));
void lex_done (void);
/* Common functions. */
long lex_integer (void);
/* Token matching functions. */
-int lex_match (int);
-int lex_match_id (const char *);
-int lex_match_int (int);
+bool lex_match (int);
+bool lex_match_id (const char *);
+bool lex_match_int (int);
/* Forcible matching functions. */
-int lex_force_match (int);
-int lex_force_match_id (const char *);
-int lex_force_int (void);
-int lex_force_num (void);
-int lex_force_id (void);
-int lex_force_string (void);
+bool lex_force_match (int);
+bool lex_force_match_id (const char *);
+bool lex_force_int (void);
+bool lex_force_num (void);
+bool lex_force_id (void);
+bool lex_force_string (void);
/* Weird token functions. */
int lex_look_ahead (void);
/* Weird line processing functions. */
const char *lex_entire_line (void);
+const struct string *lex_entire_line_ds (void);
const char *lex_rest_of_line (int *end_dot);
void lex_discard_line (void);
-void lex_set_prog (char *p);
void lex_discard_rest_of_command (void);
/* Weird line reading functions. */
bool lex_get_line (void);
+bool lex_get_line_raw (void);
/* Token names. */
const char *lex_token_name (int);
void lex_reset_eof (void);
void lex_skip_comment (void);
-int parse_format_specifier (struct fmt_spec *input, enum fmt_parse_flags);
-int parse_format_specifier_name (const char **cp, enum fmt_parse_flags);
-
#endif /* !lexer_h */