libc: Replace frigg::Vector by frg::vector
This commit is contained in:
parent
e41e4f81e1
commit
96b7666a90
|
@ -7,8 +7,7 @@
|
|||
#include <mlibc/cxx-support.hpp>
|
||||
|
||||
#include <frg/eternal.hpp>
|
||||
#include <frigg/initializer.hpp>
|
||||
#include <frigg/vector.hpp>
|
||||
#include <frg/vector.hpp>
|
||||
|
||||
struct ExitHandler {
|
||||
void (*function)(void *);
|
||||
|
@ -16,7 +15,7 @@ struct ExitHandler {
|
|||
void *dsoHandle;
|
||||
};
|
||||
|
||||
using ExitQueue = frigg::Vector<ExitHandler, MemoryAllocator>;
|
||||
using ExitQueue = frg::vector<ExitHandler, MemoryAllocator>;
|
||||
|
||||
ExitQueue &getExitQueue() {
|
||||
// use frg::eternal to prevent the compiler from scheduling the destructor
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#include <bits/ensure.h>
|
||||
#include <mlibc/allocator.hpp>
|
||||
|
||||
#include <frg/vector.hpp>
|
||||
#include <frigg/string.hpp>
|
||||
#include <frigg/vector.hpp>
|
||||
|
||||
static char *emptyEnvironment[] = { nullptr };
|
||||
|
||||
|
@ -15,7 +15,7 @@ char **environ = emptyEnvironment;
|
|||
namespace {
|
||||
|
||||
// Environment vector that is mutated by putenv() and setenv().
|
||||
static frigg::Vector<char *, MemoryAllocator> global_env_vector{getAllocator()};
|
||||
static frg::vector<char *, MemoryAllocator> global_env_vector{getAllocator()};
|
||||
|
||||
void update_env_copy() {
|
||||
if(environ == global_env_vector.data())
|
||||
|
|
Loading…
Reference in a new issue