Channel circle › core 7 Container › editor
editor (core 7, sub 12, flat id 124)
87 functions
| Signature | Purpose | Source | Scope |
|---|---|---|---|
| void EdtPostEvent(uint64_t code) | (no comment) | EditorBml.c:16 | public |
| uint64_t EdtCapFor(uint64_t n) | (no comment) | EditorBml.c:21 | public |
| int EdtGrow(struct EditorBuffer *b, uint64_t need) | (no comment) | EditorBml.c:27 | public |
| static const struct BmlElementInfo * OpInfo(uint8_t op) | (no comment) | EditorBml.c:43 | static |
| int EdtBmlIsVoid(uint8_t op) | (no comment) | EditorBml.c:52 | public |
| static int Need(struct EbScan *st, uint64_t k) | (no comment) | EditorBml.c:68 | static |
| static int Str16(struct EbScan *st, const uint8_t **p, uint16_t *len) | (no comment) | EditorBml.c:69 | static |
| static int Value(struct EbScan *st, uint8_t tid, const uint8_t **v, uint32_t *vl) | (no comment) | EditorBml.c:78 | static |
| static uint32_t AddNode(struct EbScan *st, uint8_t op, uint8_t kind, uint64_t start, uint32_t parent) | (no comment) | EditorBml.c:98 | static |
| static void SetEnd(struct EbScan *st, uint32_t ix) | (no comment) | EditorBml.c:108 | static |
| static int Node(struct EbScan *st, uint32_t parent) | (no comment) | EditorBml.c:110 | static |
| static int Scan(struct EbScan *st) | (no comment) | EditorBml.c:182 | static |
| int EdtBmlScan(const uint8_t *restrict src, uint64_t n, const struct EdtBmlCbs *cbs, struct EdtBmlNode *restrict nodes, uint32_t max, uint32_t *count) | (no comment) | EditorBml.c:193 | public |
| int EditorBmlValidate(const uint8_t *src, uint64_t n, char *err, uint32_t errcap) | (no comment) | EditorBml.c:205 | public |
| int EdtBmlNodeAt(const uint8_t *restrict src, uint64_t n, uint64_t pos, struct EdtBmlNode *restrict out) | (no comment) | EditorBml.c:215 | public |
| void EdtBmlWInit(struct EdtBmlWriter *w) | ---- writer (inverse of BMLWalk / EdtBmlScan) ---- | EditorBml.c:229 | public |
| void EdtBmlWFree(struct EdtBmlWriter *w) | (no comment) | EditorBml.c:230 | public |
| static void Wput(struct EdtBmlWriter *restrict w, const uint8_t *restrict d, uint64_t n) | (no comment) | EditorBml.c:231 | static |
| static void Wu8(struct EdtBmlWriter *w, uint8_t v) | (no comment) | EditorBml.c:246 | static |
| static void Wstr(struct EdtBmlWriter *w, const uint8_t *s, uint32_t n) | (no comment) | EditorBml.c:247 | static |
| void EdtBmlWHeader(struct EdtBmlWriter *w) | (no comment) | EditorBml.c:254 | public |
| void EdtBmlWOpen(struct EdtBmlWriter *w, uint8_t op, const uint8_t *name, uint16_t nlen, uint8_t nattr) | (no comment) | EditorBml.c:259 | public |
| void EdtBmlWAttr(struct EdtBmlWriter *w, uint8_t aid, const uint8_t *name, uint16_t nlen, uint8_t tid, const uint8_t *val, uint32_t vlen) | (no comment) | EditorBml.c:265 | public |
| void EdtBmlWText(struct EdtBmlWriter *w, uint8_t op, const uint8_t *s, uint16_t n) | (no comment) | EditorBml.c:273 | public |
| void EdtBmlWDoctype(struct EdtBmlWriter *w, const uint8_t *a, uint16_t la, const uint8_t *b, uint16_t lb, const uint8_t *c, uint16_t lc) | (no comment) | EditorBml.c:274 | public |
| void EdtBmlWClose(struct EdtBmlWriter *w, uint8_t op, uint8_t is_void) | (no comment) | EditorBml.c:278 | public |
| void EdtBmlWNop(struct EdtBmlWriter *w) | (no comment) | EditorBml.c:279 | public |
| static void CbOpen(void *u, uint8_t op, const uint8_t *nm, uint16_t nl, uint8_t na) | (no comment) | EditorBml.c:281 | static |
| static void CbAttr(void *u, uint8_t a, const uint8_t *nm, uint16_t nl, uint8_t t, const uint8_t *v, uint32_t vl) | (no comment) | EditorBml.c:282 | static |
| static void CbText(void *u, uint8_t op, const uint8_t *s, uint16_t n) | (no comment) | EditorBml.c:283 | static |
| static void CbDoc(void *u, const uint8_t *a, uint16_t la, const uint8_t *b, uint16_t lb, const uint8_t *c, uint16_t lc) | (no comment) | EditorBml.c:284 | static |
| static void CbClose(void *u, uint8_t op, uint8_t v) | (no comment) | EditorBml.c:285 | static |
| static void CbNop(void *u) | (no comment) | EditorBml.c:286 | static |
| void EdtBmlWriterCbs(struct EdtBmlCbs *cbs, struct EdtBmlWriter *w) | (no comment) | EditorBml.c:287 | public |
| int EdtBmlRewrite(const uint8_t *src, uint64_t n, struct EdtBmlWriter *w) | (no comment) | EditorBml.c:292 | public |
| int EditorBmlEnable(struct EditorChannel *ec) | (no comment) | EditorBml.c:303 | public |
| static uint32_t FixedSize(uint8_t tid) | (no comment) | EditorBmlOps.c:16 | static |
| static int IsStr(uint8_t tid) | (no comment) | EditorBmlOps.c:27 | static |
| static uint32_t Ld16(const uint8_t *p) | (no comment) | EditorBmlOps.c:28 | static |
| static uint64_t AttrSkip(const uint8_t *restrict d, uint64_t a, uint8_t *restrict aid_out) | span of attr i of an element whose attrs start at a (the byte after the count); doc already validated | EditorBmlOps.c:31 | static |
| uint64_t EditorBmlOp(struct EditorChannel *ec, struct EditorBuffer *b, uint32_t op, uint64_t base, uint64_t pos, const uint8_t *data, uint32_t data_len) | (no comment) | EditorBmlOps.c:43 | public |
| static int EdtReplaceFile(const char *from, const char *to) | 2026-10-24: Windows rename() will not replace an existing file; use MoveFileExA there. | EditorChannel.c:25 | static |
| static void Be16(uint8_t *p, uint32_t v) | ---- big-endian open-coded stores/loads ---- | EditorChannel.c:35 | static |
| static void Be32(uint8_t *p, uint32_t v) | (no comment) | EditorChannel.c:36 | static |
| static void Be64(uint8_t *p, uint64_t v) | (no comment) | EditorChannel.c:37 | static |
| static uint32_t Ld16(const uint8_t *p) | (no comment) | EditorChannel.c:38 | static |
| static uint32_t Ld32(const uint8_t *p) | (no comment) | EditorChannel.c:39 | static |
| static uint64_t Ld64(const uint8_t *p) | (no comment) | EditorChannel.c:40 | static |
| uint64_t EdtPack(uint8_t *out, uint32_t op, uint32_t kind, uint64_t buf_id, uint64_t base_version, uint64_t pos, uint32_t del_len, const void *data, uint32_t data_len) | (no comment) | EditorChannel.c:42 | public |
| static void ShaBlock(uint32_t h[8], const uint8_t *b) | (no comment) | EditorChannel.c:61 | static |
| void EdtSha256(const uint8_t *d, uint64_t n, uint8_t out[32]) | (no comment) | EditorChannel.c:76 | public |
| static int FsNameOk(const char *p) | ---- default file store: <dir>/<path> current, <dir>/<path>.v<N> history ---- | EditorChannel.c:95 | static |
| static int FsLoad(void *ctx, const char *path, uint8_t **d, uint64_t *n) | (no comment) | EditorChannel.c:105 | static |
| static int FsWriteFile(const char *full, const uint8_t *d, uint64_t n) | (no comment) | EditorChannel.c:128 | static |
| static int FsSave(void *ctx, const char *path, const uint8_t *d, uint64_t n, uint64_t ver) | (no comment) | EditorChannel.c:144 | static |
| static int FsVersions(void *ctx, const char *path, uint64_t *pairs, uint32_t max) | fills pairs (version, size), ascending by version; returns count | EditorChannel.c:154 | static |
| void EditorUseFileStore(struct EditorChannel *ec, struct EditorFileStore *fs) | (no comment) | EditorChannel.c:184 | public |
| static uint64_t NewID(struct EditorChannel *ec) | ---- buffer helpers ---- | EditorChannel.c:190 | static |
| static struct EditorBuffer * FindBuf(struct EditorChannel *ec, uint64_t id, uint32_t *slot) | (no comment) | EditorChannel.c:206 | static |
| static void FreeUndoFrom(struct EditorBuffer *b, uint32_t from) | (no comment) | EditorChannel.c:213 | static |
| static void FreeBuf(struct EditorBuffer *b) | (no comment) | EditorChannel.c:219 | static |
| static int RawInsert(struct EditorBuffer *b, uint64_t pos, const uint8_t *d, uint32_t n) | (no comment) | EditorChannel.c:225 | static |
| static int RawDelete(struct EditorBuffer *b, uint64_t pos, uint32_t n) | (no comment) | EditorChannel.c:234 | static |
| static int PushUndo(struct EditorBuffer *b, uint32_t op, uint64_t pos, const uint8_t *d, uint32_t n) | (no comment) | EditorChannel.c:241 | static |
| static uint8_t * ReplyBegin(struct EditorChannel *ec, const uint8_t *rq, uint32_t kind, uint64_t id) | ---- reply ---- | EditorChannel.c:260 | static |
| static uint64_t ReplyEnd(struct EditorChannel *ec, uint32_t status, uint64_t version, const uint8_t *payload, uint64_t n) | (no comment) | EditorChannel.c:270 | static |
| static uint64_t DoRecord(struct EditorChannel *ec, const uint8_t *rq, uint64_t len) | ---- the op dispatcher (Write) ---- | EditorChannel.c:282 | static |
| uint64_t WriteEditorChannel(void *c, void *rec, long len) | ---- channels7 Open/Close/Join/Leave/Read/Write ---- | EditorChannel.c:452 | public |
| uint64_t ReadEditorChannel(void *c, void *out, long cap) | (no comment) | EditorChannel.c:459 | public |
| uint64_t JoinEditorChannel(void *c) | (no comment) | EditorChannel.c:469 | public |
| void * LeaveEditorChannel(void *c) | (no comment) | EditorChannel.c:477 | public |
| uint64_t EditorJoin(struct EditorChannel *ec, struct EditorSession *s) | (no comment) | EditorChannel.c:483 | public |
| static void RtOpen(struct Channel *c) | (no comment) | EditorChannel.c:488 | static |
| void CloseEditorChannel(struct Channel *c) | (no comment) | EditorChannel.c:489 | public |
| struct Channel * OpenEditorChannel(struct EditorChannel *ec) | (no comment) | EditorChannel.c:498 | public |
| int EdtApplyInsert(struct EditorBuffer *b, uint64_t pos, const uint8_t *d, uint32_t n) | ---- 2026-10-23 (appended, PROVISIONAL): helpers for EditorBmlOps.c; same raw ops + undo ring as INSERT/DELETE ---- | EditorChannel.c:520 | public |
| int EdtApplyDelete(struct EditorBuffer *b, uint64_t pos, uint32_t n) | (no comment) | EditorChannel.c:528 | public |
| void EdtRollback(struct EditorBuffer *b, uint32_t k) | (no comment) | EditorChannel.c:535 | public |
| uint64_t EdtReplyEnd(struct EditorChannel *ec, uint32_t status, uint64_t version, const uint8_t *payload, uint64_t n) | (no comment) | EditorChannel.c:544 | public |
| static int InList(const char *const *l, const char *s) | (no comment) | EditorOdl.c:35 | static |
| static int IsId0(int c) | (no comment) | EditorOdl.c:36 | static |
| static int IsDig(int c) | (no comment) | EditorOdl.c:37 | static |
| static void Lex(struct OdlLex *l) | (no comment) | EditorOdl.c:39 | static |
| static int IsP(struct OdlLex *l, char c) | (no comment) | EditorOdl.c:71 | static |
| static int Dims(struct OdlLex *l) | (no comment) | EditorOdl.c:75 | static |
| static int Value(struct OdlLex *l, int depth) | (no comment) | EditorOdl.c:87 | static |
| int EditorOdlValidate(const uint8_t *src, uint64_t n, char *err, uint32_t errcap) | (no comment) | EditorOdl.c:104 | public |