- Replace header include guards with `#pragma once` and perform minor optimizations. - Replaced traditional include guards with `#pragma once` for simplicity and to reduce boilerplate in all headers. - Improved CLI line number handling with clamping and error messaging. - Enhanced `chdir` error handling for macOS GUI builds. - Removed redundant logic for GUI builds. - Adjusted font constructor and registry to handle `const` data pointers consistently.
10 lines
309 B
C
10 lines
309 B
C
#pragma once
|
|
#include "UndoNode.h"
|
|
|
|
|
|
struct UndoTree {
|
|
UndoNode *root = nullptr; // first edit ever
|
|
UndoNode *current = nullptr; // current state of buffer
|
|
UndoNode *saved = nullptr; // points to node matching last save (for dirty flag)
|
|
UndoNode *pending = nullptr; // in-progress batch (detached)
|
|
}; |