Glen Whitney
d5fbc0ef07
This change gets teapot to compile without warnings on OpenSUSE Tumbleweed with the extended warnings flags that were recently added. It also represents a more thoroughly (but not exhaustively) tested and debugged version of the expression-controlled style settings from an earlier commit. The facility should be ready for use. It also adds a better pretty-printer for Token values in gdb and extensive edits to the documentation. It fixes a bug in max/min introduced by the addition of the Bool type and the switchover to comparisons returning Bool. It modifies the display of values too long to fit in their cells to show an initial segment of their contents with a continuation mark rather than obscuring the contents completely. Closes #54. Closes #55. Closes #44. Closes #22. Closes #13.
34 lines
944 B
C
34 lines
944 B
C
#ifndef DISPLAY_H
|
|
#define DISPLAY_H
|
|
|
|
#include "main.h"
|
|
#include "sheet.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void display_main(Sheet *cursheet);
|
|
void display_init(Sheet *cursheet, bool imp_redraw);
|
|
void display_end(Sheet *sheet);
|
|
void redraw_cell(Sheet *sheet, const Location at);
|
|
void redraw_sheet(Sheet *sheet);
|
|
const char *line_file(const char *file, const char *pattern, const char *title, int create);
|
|
int line_edit(Sheet *sheet, char *buf, size_t size, const char *prompt, size_t *x, size_t *offx);
|
|
int line_ok(const char *prompt, int curx);
|
|
int line_binary(const char *prompt, const char* op1, const char* op2, int curx);
|
|
void line_msg(const char *prompt, const char *msg);
|
|
bool keypressed(void);
|
|
void show_text(const char *text);
|
|
|
|
Key show_menu(Sheet *cursheet);
|
|
int line_menu(const char *prompt, const char **choice, int curx);
|
|
void find_helpfile(char *buf, size_t size, const char *argv0);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|