summaryrefslogtreecommitdiff
path: root/LibC/stdio.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-27 14:56:52 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-27 14:56:52 +0200
commit9a71c7759a0684a52d2e5619a2312bc8da7b11da (patch)
treede166ed9d8c0230e640e62985f0dbb90fbb02447 /LibC/stdio.cpp
parent99ee6acd69205844daf82a3b7c35aa0f766f8bbc (diff)
downloadserenity-9a71c7759a0684a52d2e5619a2312bc8da7b11da.zip
Implement loading of linked ELF executables.
This took me a couple hours. :^) The ELF loading code now allocates a single region for the entire file and creates virtual memory mappings for the sections as needed. Very nice!
Diffstat (limited to 'LibC/stdio.cpp')
-rw-r--r--LibC/stdio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibC/stdio.cpp b/LibC/stdio.cpp
index 5ddb06b757..3448659fab 100644
--- a/LibC/stdio.cpp
+++ b/LibC/stdio.cpp
@@ -7,7 +7,7 @@
#define ALWAYS_INLINE __attribute__ ((always_inline))
-static const char h[] = { '0','1','2','3','4','5','6','7', '8','9','a','b','c','d','e','f' };
+static constexpr const char* h = "0123456789abcdef";
template<typename PutChFunc>
ALWAYS_INLINE int printHex(PutChFunc putch, char*& bufptr, dword number, byte fields)