mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 02:44:48 +03:00
wip
This commit is contained in:
parent
b2a717f466
commit
8f80533628
@ -5,12 +5,14 @@
|
||||
|
||||
#include "mold.h"
|
||||
|
||||
#include <cctype>
|
||||
|
||||
static thread_local std::string current_file;
|
||||
|
||||
static std::vector<std::string_view> tokenize(std::string_view input) {
|
||||
std::vector<std::string_view> vec;
|
||||
while (!input.empty()) {
|
||||
if (input[0] == ' ' || input[0] == '\t' || input[0] == '\n') {
|
||||
if (isspace(input[0])) {
|
||||
input = input.substr(1);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user