4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
|
unreaded -= 1;
}
} else {
// ok = false;
}
}
// __App__
// AppEditorHistoryNote
// # __AppEditorHistoryNote_free__
void __AppEditorHistoryNote_free__(
struct __AppEditorHistoryNote__* ptr
) {
__AlignedPtr_freeAny__(ptr, sizeof(struct __AppEditorHistoryNote__));
}
// # __AppEditorHistoryNote_alloc__
bool __AppEditorHistoryNote_alloc__(
struct __AppEditorHistoryNote__ **ptr
) {
return __AlignedPtr_allocAny__( ptr, __Type_getAlign__(struct __AppEditorHistoryNote__), sizeof(struct __AppEditorHistoryNote__) );
}
// # __App_init__
bool __App_init__(struct __App__* t) {
bool ok = true;
__Logger_init__(&t->__App_logger__); // preinit console output for debug
if (__OsHelper_init__(&t->__App_osHelper__)) {
|
>
|
|
|
|
|
|
|
|
|
|
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
|
unreaded -= 1;
}
} else {
// ok = false;
}
}
// __App__
// editor
// AppEditorHistoryNote
// # __AppEditorHistoryNote_free__
void __AppEditorHistoryNote_free__(
struct __AppEditorHistoryNote__* ptr
) {
__AlignedPtr_freeAny__(ptr, sizeof(struct __AppEditorHistoryNote__));
}
// # __AppEditorHistoryNote_alloc__
bool __AppEditorHistoryNote_alloc__(
struct __AppEditorHistoryNote__ **ptr
) {
return __AlignedPtr_allocAny__( ptr, __Type_getAlign__(struct __AppEditorHistoryNote__), sizeof(struct __AppEditorHistoryNote__) );
}
// # __AppEditor_addKeyToHistory__
bool __AppEditor_addKeyToHistory__(
struct __AppEditor__ *editor,
__ConsoleAnsiInputKey__ key
) {
bool ok = true;
struct __AppEditorHistoryNote__ *hn;
if ( __AppEditorHistoryNote_alloc__(&hn)) {
hn->key = key;
struct __MemListLink__ *link = &hn->link;
__MemListLink_init__(link);
__MemList_pushLast__(&editor->history, link);
if (!ok) __AppEditorHistoryNote_free__(hn);
} else {
ok = false;
}
return ok;
}
// # __App_init__
bool __App_init__(struct __App__* t) {
bool ok = true;
__Logger_init__(&t->__App_logger__); // preinit console output for debug
if (__OsHelper_init__(&t->__App_osHelper__)) {
|