1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-28 02:44:48 +03:00
This commit is contained in:
Rui Ueyama 2021-03-18 09:19:02 +09:00
parent b2a717f466
commit 8f80533628

View File

@ -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;
}