- 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.
12 lines
242 B
C
12 lines
242 B
C
/*
|
|
* AppendBuffer.h - selector header to choose GapBuffer or PieceTable
|
|
*/
|
|
#pragma once
|
|
|
|
#ifdef KTE_USE_PIECE_TABLE
|
|
#include "PieceTable.h"
|
|
using AppendBuffer = PieceTable;
|
|
#else
|
|
#include "GapBuffer.h"
|
|
using AppendBuffer = GapBuffer;
|
|
#endif |