diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
| commit | dcacc00e3750300617ba6e16eb346713f91a783a (patch) | |
| tree | 38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/deps/linenoise/linenoise.h | |
| parent | 58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff) | |
| download | crep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz | |
Remove testing data
Diffstat (limited to 'examples/redis-unstable/deps/linenoise/linenoise.h')
| -rw-r--r-- | examples/redis-unstable/deps/linenoise/linenoise.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/examples/redis-unstable/deps/linenoise/linenoise.h b/examples/redis-unstable/deps/linenoise/linenoise.h deleted file mode 100644 index beac6df..0000000 --- a/examples/redis-unstable/deps/linenoise/linenoise.h +++ /dev/null | |||
| @@ -1,75 +0,0 @@ | |||
| 1 | /* linenoise.h -- VERSION 1.0 | ||
| 2 | * | ||
| 3 | * Guerrilla line editing library against the idea that a line editing lib | ||
| 4 | * needs to be 20,000 lines of C code. | ||
| 5 | * | ||
| 6 | * See linenoise.c for more information. | ||
| 7 | * | ||
| 8 | * ------------------------------------------------------------------------ | ||
| 9 | * | ||
| 10 | * Copyright (c) 2010-2014, Salvatore Sanfilippo <antirez at gmail dot com> | ||
| 11 | * Copyright (c) 2010-2013, Pieter Noordhuis <pcnoordhuis at gmail dot com> | ||
| 12 | * | ||
| 13 | * All rights reserved. | ||
| 14 | * | ||
| 15 | * Redistribution and use in source and binary forms, with or without | ||
| 16 | * modification, are permitted provided that the following conditions are | ||
| 17 | * met: | ||
| 18 | * | ||
| 19 | * * Redistributions of source code must retain the above copyright | ||
| 20 | * notice, this list of conditions and the following disclaimer. | ||
| 21 | * | ||
| 22 | * * Redistributions in binary form must reproduce the above copyright | ||
| 23 | * notice, this list of conditions and the following disclaimer in the | ||
| 24 | * documentation and/or other materials provided with the distribution. | ||
| 25 | * | ||
| 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 27 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 28 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| 29 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| 30 | * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| 31 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| 32 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| 33 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| 34 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| 35 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| 36 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 37 | */ | ||
| 38 | |||
| 39 | #ifndef __LINENOISE_H | ||
| 40 | #define __LINENOISE_H | ||
| 41 | |||
| 42 | #ifdef __cplusplus | ||
| 43 | extern "C" { | ||
| 44 | #endif | ||
| 45 | |||
| 46 | typedef struct linenoiseCompletions { | ||
| 47 | size_t len; | ||
| 48 | char **cvec; | ||
| 49 | } linenoiseCompletions; | ||
| 50 | |||
| 51 | typedef void(linenoiseCompletionCallback)(const char *, linenoiseCompletions *); | ||
| 52 | typedef char*(linenoiseHintsCallback)(const char *, int *color, int *bold); | ||
| 53 | typedef void(linenoiseFreeHintsCallback)(void *); | ||
| 54 | void linenoiseSetCompletionCallback(linenoiseCompletionCallback *); | ||
| 55 | void linenoiseSetHintsCallback(linenoiseHintsCallback *); | ||
| 56 | void linenoiseSetFreeHintsCallback(linenoiseFreeHintsCallback *); | ||
| 57 | void linenoiseAddCompletion(linenoiseCompletions *, const char *); | ||
| 58 | |||
| 59 | char *linenoise(const char *prompt); | ||
| 60 | void linenoiseFree(void *ptr); | ||
| 61 | int linenoiseHistoryAdd(const char *line, int is_sensitive); | ||
| 62 | int linenoiseHistorySetMaxLen(int len); | ||
| 63 | int linenoiseHistorySave(const char *filename); | ||
| 64 | int linenoiseHistoryLoad(const char *filename); | ||
| 65 | void linenoiseClearScreen(void); | ||
| 66 | void linenoiseSetMultiLine(int ml); | ||
| 67 | void linenoisePrintKeyCodes(void); | ||
| 68 | void linenoiseMaskModeEnable(void); | ||
| 69 | void linenoiseMaskModeDisable(void); | ||
| 70 | |||
| 71 | #ifdef __cplusplus | ||
| 72 | } | ||
| 73 | #endif | ||
| 74 | |||
| 75 | #endif /* __LINENOISE_H */ | ||
