blob: e8c0a46f427987a1507f1c5efba3173f3228c1fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#ifndef LOAD_SAVE_H
#define LOAD_SAVE_H
#include <stdbool.h>
#include "buffer.h"
#include "encoding.h"
#include "options.h"
#include "util/macros.h"
bool load_buffer(Buffer *buffer, const char *filename, const GlobalOptions *gopts, bool must_exist) WARN_UNUSED_RESULT;
bool save_buffer(Buffer *buffer, const char *filename, const Encoding *encoding, bool crlf, bool write_bom, bool hardlinks) WARN_UNUSED_RESULT;
bool read_blocks(Buffer *buffer, int fd, bool utf8_bom) WARN_UNUSED_RESULT;
#endif
|