#ifndef COSMOPOLITAN_THIRD_PARTY_LINENOISE_LINENOISE_H_ #define COSMOPOLITAN_THIRD_PARTY_LINENOISE_LINENOISE_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ typedef struct linenoiseCompletions { size_t len; char **cvec; } linenoiseCompletions; typedef void(linenoiseCompletionCallback)(const char *, linenoiseCompletions *); typedef char *(linenoiseHintsCallback)(const char *, int *, int *); typedef void(linenoiseFreeHintsCallback)(void *); void linenoiseSetCompletionCallback(linenoiseCompletionCallback *); void linenoiseSetHintsCallback(linenoiseHintsCallback *); void linenoiseSetFreeHintsCallback(linenoiseFreeHintsCallback *); void linenoiseAddCompletion(linenoiseCompletions *, const char *); char *linenoise(const char *) nodiscard; char *ezlinenoise(const char *, const char *) nodiscard; int linenoiseHistoryAdd(const char *); int linenoiseHistorySetMaxLen(int); int linenoiseHistorySave(const char *); int linenoiseHistoryLoad(const char *); void linenoiseHistoryFree(void); void linenoiseClearScreen(void); void linenoiseSetMultiLine(int); void linenoiseMaskModeEnable(void); void linenoiseMaskModeDisable(void); void linenoiseDisableRawMode(int); void linenoiseFree(void *); COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_THIRD_PARTY_LINENOISE_LINENOISE_H_ */