hotpatching of global map DAT file, fix bugs

This commit is contained in:
Ondřej Novák 2025-04-13 17:18:38 +02:00
parent 4fa01c46aa
commit 66edc652a1
11 changed files with 127 additions and 68 deletions

View file

@ -5,6 +5,7 @@
#include <string_view>
#include <vector>
#include <iostream>
#include <cstring>
extern "C" {
#include "temp_storage.h"
@ -162,3 +163,7 @@ int temp_storage_internal_end_scanf(TMPFILE_RD *f, int r) {
void temp_storage_ungetc(TMPFILE_RD *f) {
f->_data = {f->_data.data()-1, f->_data.size()+1};
}
TMPFILE_RD *temp_storage_from_string(const char *content) {
return new TMPFILE_RD{{content, std::strlen(content)}};
}