Skip to content

Commit 7ae5e44

Browse files
committed
Follow naming rules
1 parent cdd8931 commit 7ae5e44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

common/arg.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,13 +1628,13 @@ static void add_rpc_devices(const std::string & servers) {
16281628
}
16291629

16301630
#ifdef _WIN32
1631-
struct Utf8Argv {
1631+
struct utf8_argv {
16321632
std::vector<std::string> buf;
16331633
std::vector<char*> ptrs;
16341634
};
16351635

1636-
static Utf8Argv make_utf8_argv_from_winapi() {
1637-
Utf8Argv out;
1636+
static utf8_argv make_utf8_argv() {
1637+
utf8_argv out;
16381638
int wargc = 0;
16391639
LPWSTR* wargv = CommandLineToArgvW(GetCommandLineW(), &wargc);
16401640
if (!wargv) return out;
@@ -1658,7 +1658,7 @@ static Utf8Argv make_utf8_argv_from_winapi() {
16581658

16591659
bool common_params_parse(int argc, char ** argv, common_params & params, llama_example ex, void(*print_usage)(int, char **)) {
16601660
#ifdef _WIN32
1661-
auto utf8 = make_utf8_argv_from_winapi();
1661+
auto utf8 = make_utf8_argv();
16621662
if (!utf8.ptrs.empty()) {
16631663
argc = static_cast<int>(utf8.buf.size());
16641664
argv = utf8.ptrs.data();

0 commit comments

Comments
 (0)