Move classes into separate files

FossilOrigin-Name: 14861826d4c1f561aca909afe773366a46b57b20cf41fd668092dfb98d960d80
This commit is contained in:
Jonathan Schleifer 2025-03-05 23:18:28 +00:00
parent 3661ce9a40
commit 623076a034
17 changed files with 366 additions and 322 deletions

View file

@ -5,6 +5,8 @@
#include <ctype.h>
#include <memory>
#import "KeyMapping.h"
struct cline {
char *cref;
int outtime;
@ -93,26 +95,6 @@ renderconsole() // render buffer taking into account time & scrolling
// keymap is defined externally in keymap.cfg
@interface KeyMapping : OFObject
@property (readonly) int code;
@property (readonly, nonatomic) OFString *name;
@property (copy, nonatomic) OFString *action;
- (instancetype)initWithCode:(int)code name:(OFString *)name;
@end
@implementation KeyMapping
- (instancetype)initWithCode:(int)code name:(OFString *)name
{
self = [super init];
_code = code;
_name = [name copy];
return self;
}
@end
static OFMutableArray<KeyMapping *> *keyMappings = nil;
void