1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-19 07:21:20 +03:00

import KernelEx-4.0-RC2

This commit is contained in:
UzixLS
2018-11-03 16:19:29 +03:00
parent d4e0420295
commit 339353cce8
299 changed files with 682 additions and 165 deletions

7
core/apiconf.cpp Normal file → Executable file
View File

@ -32,8 +32,6 @@ using namespace std;
ApiConfiguration::ApiConfiguration(const char* name)
{
initialized = prepare(name);
if (!initialized)
DBGPRINTF(("Failed to allocate memory\n"));
}
ApiConfiguration::ApiConfiguration(const char* new_name, const ApiConfiguration& src)
@ -81,7 +79,6 @@ ApiConfiguration::ApiConfiguration(const char* new_name, const ApiConfiguration&
return;
__error:
DBGPRINTF(("Failed to allocate memory\n"));
initialized = false;
}
@ -220,6 +217,8 @@ bool ApiConfiguration::merge(const ApiLibrary* apilib)
{
sfirst++;
space++;
while (sfirst != slast && !strcmp(sfirst->name, (sfirst - 1)->name))
sfirst++;
}
//allocate new mem
@ -272,6 +271,8 @@ bool ApiConfiguration::merge(const ApiLibrary* apilib)
dfirst->address = encode_address(sfirst->addr, apilib);
dfirst++;
sfirst++;
while (sfirst != slast && !strcmp(sfirst->name, (sfirst - 1)->name))
sfirst++;
}
break;