Remove utility.*
This commit is contained in:
@@ -60,7 +60,6 @@ modules:
|
|||||||
- src/boot/error.cpp
|
- src/boot/error.cpp
|
||||||
- src/boot/hardware.cpp
|
- src/boot/hardware.cpp
|
||||||
- src/boot/memory.cpp
|
- src/boot/memory.cpp
|
||||||
- src/boot/utility.cpp
|
|
||||||
|
|
||||||
nulldrv:
|
nulldrv:
|
||||||
kind: exe
|
kind: exe
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "utility.h"
|
|
||||||
|
|
||||||
#ifndef GIT_VERSION_WIDE
|
#ifndef GIT_VERSION_WIDE
|
||||||
#define GIT_VERSION_WIDE L"no version"
|
#define GIT_VERSION_WIDE L"no version"
|
||||||
@@ -39,6 +38,16 @@ status_line *status_line::s_current = nullptr;
|
|||||||
static const wchar_t digits[] = {u'0', u'1', u'2', u'3', u'4', u'5',
|
static const wchar_t digits[] = {u'0', u'1', u'2', u'3', u'4', u'5',
|
||||||
u'6', u'7', u'8', u'9', u'a', u'b', u'c', u'd', u'e', u'f'};
|
u'6', u'7', u'8', u'9', u'a', u'b', u'c', u'd', u'e', u'f'};
|
||||||
|
|
||||||
|
|
||||||
|
static size_t
|
||||||
|
wstrlen(const wchar_t *s)
|
||||||
|
{
|
||||||
|
size_t count = 0;
|
||||||
|
while (s && *s++) count++;
|
||||||
|
return count;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
console::console(uefi::boot_services *bs, uefi::protos::simple_text_output *out) :
|
console::console(uefi::boot_services *bs, uefi::protos::simple_text_output *out) :
|
||||||
m_rows(0),
|
m_rows(0),
|
||||||
m_cols(0),
|
m_cols(0),
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
#include "utility.h"
|
|
||||||
|
|
||||||
namespace boot {
|
namespace boot {
|
||||||
namespace memory {
|
namespace memory {
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
#include "utility.h"
|
|
||||||
|
|
||||||
size_t
|
|
||||||
wstrlen(const wchar_t *s)
|
|
||||||
{
|
|
||||||
size_t count = 0;
|
|
||||||
while (s && *s++) count++;
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#include <stdint.h>
|
|
||||||
#include <uefi/types.h>
|
|
||||||
|
|
||||||
#include "console.h"
|
|
||||||
|
|
||||||
#define UNUSED __attribute__((unused))
|
|
||||||
|
|
||||||
size_t wstrlen(const wchar_t *s);
|
|
||||||
|
|
||||||
#ifdef BOOTLOADER_DEBUG
|
|
||||||
#define con_debug(msg, ...) console::print(L"DEBUG: " msg L"\r\n", __VA_ARGS__)
|
|
||||||
#else
|
|
||||||
#define con_debug(msg, ...)
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user