#define GETL_H 1
#include <stdbool.h>
-#include "str.h"
+#include <libpspp/str.h>
+
+enum getl_prompt_style
+ {
+ GETL_PROMPT_FIRST, /* First line of command. */
+ GETL_PROMPT_LATER, /* Second or later line of command. */
+ GETL_PROMPT_DATA, /* Between BEGIN DATA and END DATA. */
+ GETL_PROMPT_CNT
+ };
/* Current line. This line may be modified by modules other than
getl.c, and by lexer.c in particular. (Ugh.) */
void (*close) (void *aux),
void *aux);
void getl_append_interactive (bool (*function) (struct string *line,
- const char *prompt));
+ enum getl_prompt_style));
void getl_abort_noninteractive (void);
bool getl_is_interactive (void);
bool getl_read_line (bool *interactive);
-void getl_location (const char **, int *);
-\f
-/* Prompting. */
-
-enum getl_prompt_style
- {
- GETL_PROMPT_FIRST, /* First line of command. */
- GETL_PROMPT_LATER, /* Second or later line of command. */
- GETL_PROMPT_DATA, /* Between BEGIN DATA and END DATA. */
- GETL_PROMPT_CNT
- };
-
const char *getl_get_prompt (enum getl_prompt_style);
void getl_set_prompt (enum getl_prompt_style, const char *);
void getl_set_prompt_style (enum getl_prompt_style);
+struct msg_locator;
+void get_msg_location (struct msg_locator *loc);
+
+
#endif /* line-buffer.h */