X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Fline-buffer.h;h=25845ca836d03cd957f806fcf000aecfbdecf50b;hb=8e018d25310cb53e5339b46e95f0abe02db83782;hp=59dab0a58d830f35e1272339579ed699f9a96646;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp-builds.git diff --git a/src/language/line-buffer.h b/src/language/line-buffer.h index 59dab0a5..25845ca8 100644 --- a/src/language/line-buffer.h +++ b/src/language/line-buffer.h @@ -23,6 +23,14 @@ #include #include +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.) */ extern struct string getl_buf; @@ -43,26 +51,20 @@ void getl_include_function (bool (*read) (struct string *line, 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 *); - -/* 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); + +void getl_location (const char **fn, int *ln); + + #endif /* line-buffer.h */