Improving string for C++
This commit is contained in:
@@ -224,7 +224,7 @@ int main(int argc, char **argv) {
|
||||
S8_String it = S8_MakeFromChar(argv[i]);
|
||||
|
||||
int64_t idx = 0;
|
||||
if (S8_Find(it, "="_s, 0, &idx)) {
|
||||
if (S8_Seek(it, "="_s, 0, &idx)) {
|
||||
S8_String key = S8_GetPrefix(it, idx);
|
||||
S8_String value = S8_Skip(it, idx + 1);
|
||||
if (key.len == 0) ReportError(it);
|
||||
|
||||
@@ -24,10 +24,10 @@ int main(int argument_count, char **arguments) {
|
||||
SRC_InitCache(Perm, cache_filename);
|
||||
|
||||
// Search for build file in the project directory
|
||||
S8_String build_file = {0};
|
||||
S8_String build_file = {};
|
||||
{
|
||||
for (OS_FileIter it = OS_IterateFiles(Perm, S8_Lit("..")); OS_IsValid(it); OS_Advance(&it)) {
|
||||
if (S8_Find(it.filename, S8_Lit("build_file.c"), S8_IgnoreCase)) {
|
||||
if (S8_Seek(it.filename, S8_Lit("build_file.c"), S8_IgnoreCase)) {
|
||||
build_file = it.absolute_path;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user