diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-07-24 00:50:58 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-07-24 00:59:27 -0700 |
commit | b4f53143b0e05fd3061cdf2e65e17a6a2904090b (patch) | |
tree | 4785bf31f7b89fc2420aa740d9a6967dc6c6f9b1 /src/kill.h | |
parent | 9c2fdc6da57032c4448b59de5872086eea626b74 (diff) |
Migrate source files into src/ directory
This change moves source files into a src/ directory,
and puts object files into an obj/ directory. The Makefile
and xcode project are updated accordingly.
Fixes #1866
Diffstat (limited to 'src/kill.h')
-rw-r--r-- | src/kill.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/kill.h b/src/kill.h new file mode 100644 index 00000000..35df3dbd --- /dev/null +++ b/src/kill.h @@ -0,0 +1,36 @@ +/** \file kill.h + Prototypes for the killring. + + Works like the killring in emacs and readline. The killring is cut and paste whith a memory of previous cuts. +*/ + +#ifndef FISH_KILL_H +#define FISH_KILL_H + +#include <wchar.h> + +/** + Replace the specified string in the killring +*/ +void kill_replace(const wcstring &old, const wcstring &newv); + + +/** Add a string to the top of the killring */ +void kill_add(const wcstring &str); + +/** Rotate the killring */ +const wchar_t *kill_yank_rotate(); + +/** Paste from the killring */ +const wchar_t *kill_yank(); + +/** Sanity check */ +void kill_sanity_check(); + +/** Initialize the killring */ +void kill_init(); + +/** Destroy the killring */ +void kill_destroy(); + +#endif |