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