lib-vt: setup a default allocator if null

This commit is contained in:
Mitchell Hashimoto
2025-09-24 10:19:13 -07:00
parent de013148d3
commit 2c78ad8889
4 changed files with 30 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ extern "C" {
//-------------------------------------------------------------------
// Types
typedef struct GhosttyOscParser GhosttyOscParser;
typedef struct GhosttyOscParser *GhosttyOscParser;
typedef enum {
GHOSTTY_VT_SUCCESS = 0,
@@ -131,6 +131,9 @@ typedef struct {
//-------------------------------------------------------------------
// Functions
GhosttyVtResult ghostty_vt_osc_new(const GhosttyVtAllocator*, GhosttyOscParser*);
void ghostty_vt_osc_free(GhosttyOscParser);
#ifdef __cplusplus
}
#endif