vis: remove __DATE__ and __TIME__ references to aid with reproducible builds
[vis.git] / register.h
blob0e7b92589feb5e8efd78ffc716854399bc521435
1 #ifndef REGISTER_H
2 #define REGISTER_H
4 #include <stddef.h>
5 #include <stdbool.h>
6 #include "buffer.h"
7 #include "text-util.h"
9 #ifndef VIS_H
10 typedef struct Vis Vis;
11 #endif
13 typedef struct {
14 Buffer buf;
15 bool linewise; /* place register content on a new line when inserting? */
16 bool append;
17 enum {
18 REGISTER_NORMAL,
19 REGISTER_BLACKHOLE,
20 REGISTER_CLIPBOARD,
21 } type;
22 } Register;
24 void register_release(Register*);
25 const char *register_get(Vis*, Register*, size_t *len);
26 bool register_put(Vis*, Register*, const char *data, size_t len);
27 bool register_put0(Vis*, Register*, const char *data);
28 bool register_put_range(Vis*, Register*, Text*, Filerange*);
29 bool register_append_range(Register*, Text*, Filerange*);
31 #endif