mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 18:39:16 +00:00
refactor(kernel): remove 'foreach' macro
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -84,7 +84,7 @@ namespace Execute
|
||||
// AT_MINSIGSTKSZ 51
|
||||
|
||||
#ifdef DEBUG
|
||||
foreach (auto var in Elfauxv)
|
||||
for (auto var : Elfauxv)
|
||||
{
|
||||
debug("auxv: %ld %#lx",
|
||||
var.archaux.a_type,
|
||||
@ -103,7 +103,7 @@ namespace Execute
|
||||
{
|
||||
#if defined(__amd64__)
|
||||
std::vector<Elf64_Phdr> PhdrINTERP = ELFGetSymbolType_x86_64(fd, PT_INTERP);
|
||||
foreach (auto Interp in PhdrINTERP)
|
||||
for (auto Interp : PhdrINTERP)
|
||||
{
|
||||
std::string interpreterPath;
|
||||
interpreterPath.resize(256);
|
||||
@ -350,7 +350,7 @@ namespace Execute
|
||||
{
|
||||
#if defined(__amd64__)
|
||||
std::vector<Elf64_Phdr> PhdrINTERP = ELFGetSymbolType_x86_64(fd, PT_INTERP);
|
||||
foreach (auto Interp in PhdrINTERP)
|
||||
for (auto Interp : PhdrINTERP)
|
||||
{
|
||||
std::string interpreterPath;
|
||||
interpreterPath.resize(256);
|
||||
|
@ -38,7 +38,7 @@ namespace Execute
|
||||
return Ret;
|
||||
}
|
||||
|
||||
foreach (auto Phdr in DYNAMICPhdrs)
|
||||
for (auto Phdr : DYNAMICPhdrs)
|
||||
{
|
||||
Elf64_Dyn Dynamic{};
|
||||
for (size_t i = 0; i < Phdr.p_filesz / sizeof(Elf64_Dyn); i++)
|
||||
|
@ -112,7 +112,7 @@ namespace Execute
|
||||
CriticalSection cs;
|
||||
|
||||
Process = Parent;
|
||||
foreach (auto tcb in Process->Threads)
|
||||
for (auto tcb : Process->Threads)
|
||||
{
|
||||
debug("Deleting thread %d", tcb->ID);
|
||||
// delete tcb;
|
||||
@ -153,7 +153,7 @@ namespace Execute
|
||||
if (unlikely(SearchNode == nullptr))
|
||||
return false;
|
||||
|
||||
foreach (const auto &ffd in pfdt->FileMap)
|
||||
for (const auto &ffd : pfdt->FileMap)
|
||||
{
|
||||
if (ffd.second.Flags & O_CLOEXEC)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user