robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
1813661a61
master
1#pragma once 2 3#include "klib/kvec.h" 4 5// TODO(bfredl): good enough name for now. 6typedef ptrdiff_t bcount_t ; 7 8typedef struct undo_object ExtmarkUndoObject ; 9typedef kvec_t (ExtmarkUndoObject )extmark_undo_vec_t ; 10 11// Undo/redo extmarks 12 13typedef enum { 14kExtmarkNOOP ,// Extmarks shouldn't be moved 15kExtmarkUndo ,// Operation should be reversible/undoable 16kExtmarkNoUndo ,// Operation should not be reversible 17kExtmarkUndoNoRedo ,// Operation should be undoable, but not redoable 18}ExtmarkOp ;