Download ide/native/editor/document.h from Snapkitty/sovereign-engine-v2: direct link, hf CLI and curl.
- Browser
- Download file 714 Bytes
-
https://huggingface.co/Snapkitty/sovereign-engine-v2/resolve/main/ide/native/editor/document.h
- Command line
-
hf download hf://Snapkitty/sovereign-engine-v2/ide/native/editor/document.h
-
curl -L -o document.h https://huggingface.co/Snapkitty/sovereign-engine-v2/resolve/main/ide/native/editor/document.h
714 Bytes
| typedef enum LineEnding { LE_LF, LE_CRLF, LE_CR } LineEnding; | |
| typedef struct Document { | |
| Buffer *buffer; | |
| wchar_t path[MAX_PATH]; | |
| LineEnding line_ending; | |
| bool has_path; | |
| } Document; | |
| SovResult document_open(Document *doc, const wchar_t *path); | |
| SovResult document_save(Document *doc); | |
| SovResult document_save_as(Document *doc, const wchar_t *path); | |
| void document_new(Document *doc); | |
| void document_destroy(Document *doc); | |
| bool document_is_dirty(const Document *doc); | |