Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Apr 22, 2024
1 parent c9cde64 commit ea3eb6a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ecsact/wasm/detail/guest_imports/env.hh
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ const auto guest_env_module_imports = allowed_guest_imports_t{
},
};

}
} // namespace ecsact::wasm::detail
2 changes: 1 addition & 1 deletion ecsact/wasm/detail/guest_imports/wasi_snapshot_preview1.hh
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ const auto guest_wasi_module_imports = allowed_guest_imports_t{
},
};

}
} // namespace ecsact::wasm::detail
8 changes: 4 additions & 4 deletions ecsact/wasm/detail/logger.hh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ auto start_transaction() -> log_transaction;
auto push_log_line(const log_transaction& transaction, log_line_entry entry)
-> void;

auto get_log_lines(const log_transaction& transaction)
-> const std::vector<log_line_entry>&;
auto get_log_lines(const log_transaction& transaction
) -> const std::vector<log_line_entry>&;

auto clear_log_lines(const log_transaction& transaction) -> void;

Expand All @@ -38,7 +38,7 @@ auto clear_log_lines(const log_transaction& transaction) -> void;
auto push_stdio_str(ecsactsi_wasm_log_level level, std::string_view str)
-> void;

auto consume_stdio_str_as_log_lines(const log_transaction& transaction)
-> std::vector<log_line_entry>;
auto consume_stdio_str_as_log_lines(const log_transaction& transaction
) -> std::vector<log_line_entry>;

} // namespace ecsact::wasm::detail
16 changes: 8 additions & 8 deletions ecsact/wasm/detail/wasi_fs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ auto ecsact::wasm::detail::wasi::fs::real_path(int32_t fd) -> std::string {
return virtual_files.at(fd).real_path;
}

auto ecsact::wasm::detail::wasi::fs::real_path(std::string_view virtual_path)
-> std::string {
auto ecsact::wasm::detail::wasi::fs::real_path(std::string_view virtual_path
) -> std::string {
const auto virtual_path_s = std::string{virtual_path};

auto itr = virtual_file_map.find(virtual_path_s);
Expand All @@ -74,17 +74,17 @@ auto ecsact::wasm::detail::wasi::fs::real_path(std::string_view virtual_path)
return "";
}

auto ecsact::wasm::detail::wasi::fs::fdstat(int32_t fd)
-> ecsactsi_wasi_fdstat_t {
auto ecsact::wasm::detail::wasi::fs::fdstat(int32_t fd
) -> ecsactsi_wasi_fdstat_t {
if(!virtual_files.contains(fd)) {
return {};
}

return virtual_files.at(fd).fdstat;
}

auto ecsact::wasm::detail::wasi::fs::fdstat(std::string_view virtual_path)
-> ecsactsi_wasi_fdstat_t {
auto ecsact::wasm::detail::wasi::fs::fdstat(std::string_view virtual_path
) -> ecsactsi_wasi_fdstat_t {
const auto virtual_path_s = std::string{virtual_path};

auto itr = virtual_file_map.find(virtual_path_s);
Expand All @@ -96,8 +96,8 @@ auto ecsact::wasm::detail::wasi::fs::fdstat(std::string_view virtual_path)
return {};
}

auto ecsact::wasm::detail::wasi::fs::ensure_open(int32_t pseudo_fd)
-> std::FILE* {
auto ecsact::wasm::detail::wasi::fs::ensure_open(int32_t pseudo_fd
) -> std::FILE* {
auto& info = virtual_files.at(pseudo_fd);
if(info.opened_file) {
return *info.opened_file;
Expand Down

0 comments on commit ea3eb6a

Please sign in to comment.