/* input.h - declarations for input.c */
#ifndef INPUT_H
#define INPUT_H

#include <stddef.h>

#include "source_mark_types.h"
#include "tree_types.h"

char *next_text (ELEMENT *current);

void save_line_directive (int line_nr, char *filename);

void input_push_text (char *text, int line_number, const char *macro_name,
                      const char *value_flag);
int input_push_file (const char *filename);
void input_pushback (char *line);
void set_input_source_mark (SOURCE_MARK *source_mark);
void parser_reset_encoding_list (void);
int expanding_macro (const char *macro);
int top_file_index (void);

char *parser_locate_include_file (const char *filename);
char *parser_encode_file_name (char *filename);
char *convert_to_utf8 (char *s);
int set_input_encoding (const char *encoding);

char *save_string (const char *string);

extern STRING_LIST parser_include_directories;
extern int input_number;
extern int macro_expansion_nr;
extern int value_expansion_nr;
extern int after_end_fetch_nr;

#endif
