chore: import official kitty sources from upstream
Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty, vendored at upstream commit 91fb38a without its git history.
This commit is contained in:
commit
7e7d249099
1134 files changed
+433629
No files matched your search
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Kovid Goyal <kovid at kovidgoyal.net>
|
||||
*
|
||||
* Distributed under terms of the GPL3 license.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "data-types.h"
|
||||
|
||||
typedef struct FastFileCopyBuffer {
|
||||
uint8_t *buf;
|
||||
size_t sz;
|
||||
} FastFileCopyBuffer;
|
||||
|
||||
static inline void
|
||||
free_fast_file_copy_buffer(FastFileCopyBuffer *fcb) {
|
||||
free(fcb->buf);
|
||||
fcb->buf = NULL;
|
||||
}
|
||||
|
||||
#define RAII_FreeFastFileCopyBuffer(name) __attribute__((__cleanup__(free_fast_file_copy_buffer))) FastFileCopyBuffer name = {0}
|
||||
|
||||
bool copy_between_files(int infd, int outfd, off_t in_pos, size_t len, FastFileCopyBuffer *fcb);
|
||||
Reference in new issue
Block a user