Migrate a lot of C to C++.

It will let me put a lot more dtors into certain
structs that C++ code calls `free` on members within.
This commit is contained in:
2025-04-10 02:46:06 -04:00
parent f29c4f3992
commit 06f8226487
92 changed files with 447 additions and 418 deletions

18
src/colors.hh Normal file
View File

@ -0,0 +1,18 @@
#ifndef __COLORS_H__
#define __COLORS_H__
#include "config.h"
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
int32_t a_Color_parse (const char *str, int32_t default_color, int *err);
int32_t a_Color_vc(int32_t candidate, int32_t c1, int32_t c2, int32_t c3);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __COLORS_H__ */