mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
868af3f950
You can now use the hardest fastest and most dangerous language there is with Cosmopolitan. So far about 75% of LLVM libcxx has been added. A few breaking changes needed to be made to help this go smoothly. - Rename nothrow to dontthrow - Rename nodiscard to dontdiscard - Add some libm functions, e.g. lgamma, nan, etc. - Change intmax_t from int128 to int64 like everything else - Introduce %jjd formatting directive for int128_t - Introduce strtoi128(), strtou128(), etc. - Rename bsrmax() to bsr128() Some of the templates that should be working currently are std::vector, std::string, std::map, std::set, std::deque, etc.
39 lines
1.5 KiB
C
39 lines
1.5 KiB
C
#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 *, const char **,
|
|
const char **);
|
|
typedef void(linenoiseFreeHintsCallback)(void *);
|
|
typedef wint_t(linenoiseXlatCallback)(wint_t);
|
|
|
|
void linenoiseSetCompletionCallback(linenoiseCompletionCallback *);
|
|
void linenoiseSetHintsCallback(linenoiseHintsCallback *);
|
|
void linenoiseSetFreeHintsCallback(linenoiseFreeHintsCallback *);
|
|
void linenoiseAddCompletion(linenoiseCompletions *, const char *);
|
|
void linenoiseSetXlatCallback(linenoiseXlatCallback *);
|
|
|
|
char *linenoise(const char *) dontdiscard;
|
|
char *linenoiseRaw(const char *, int, int) dontdiscard;
|
|
char *linenoiseWithHistory(const char *, const char *) dontdiscard;
|
|
int linenoiseHistoryAdd(const char *);
|
|
int linenoiseHistorySave(const char *);
|
|
int linenoiseHistoryLoad(const char *);
|
|
void linenoiseFreeCompletions(linenoiseCompletions *);
|
|
void linenoiseHistoryFree(void);
|
|
void linenoiseClearScreen(int);
|
|
void linenoiseMaskModeEnable(void);
|
|
void linenoiseMaskModeDisable(void);
|
|
void linenoiseDisableRawMode(void);
|
|
void linenoiseFree(void *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_THIRD_PARTY_LINENOISE_LINENOISE_H_ */
|