summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-12-15 20:03:35 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-12-15 20:03:35 +0100
commite951db4c49a13106fe5628fde7bb031a13e82915 (patch)
treea89543625163eca2fd0ea01adf4b039700e1e16f
parent2030995f6bc17304ea7a2709efe22e1c51d5c217 (diff)
Fix C++ comments in C file
-rw-r--r--src/fl_call_main.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/fl_call_main.c b/src/fl_call_main.c
index 88049eec7..31cd86c31 100644
--- a/src/fl_call_main.c
+++ b/src/fl_call_main.c
@@ -96,25 +96,25 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
/* Convert the command line arguments to UTF-8 */
for (i = 0; i < argc; i++) {
- // find the required size of the buffer
- int u8size = WideCharToMultiByte(CP_UTF8, // CodePage
- 0, // dwFlags
- wideArgv[i], // lpWideCharStr
- -1, // cchWideChar
- NULL, // lpMultiByteStr
- 0, // cbMultiByte
- NULL, // lpDefaultChar
- NULL); // lpUsedDefaultChar
+ /* find the required size of the buffer */
+ int u8size = WideCharToMultiByte(CP_UTF8, /* CodePage */
+ 0, /* dwFlags */
+ wideArgv[i], /* lpWideCharStr */
+ -1, /* cchWideChar */
+ NULL, /* lpMultiByteStr */
+ 0, /* cbMultiByte */
+ NULL, /* lpDefaultChar */
+ NULL); /* lpUsedDefaultChar */
if (u8size > 0) {
char *strbuf = (char *)malloc(u8size);
- int ret = WideCharToMultiByte(CP_UTF8, // CodePage
- 0, // dwFlags
- wideArgv[i], // lpWideCharStr
- -1, // cchWideChar
- strbuf, // lpMultiByteStr
- u8size, // cbMultiByte
- NULL, // lpDefaultChar
- NULL); // lpUsedDefaultChar
+ int ret = WideCharToMultiByte(CP_UTF8, /* CodePage */
+ 0, /* dwFlags */
+ wideArgv[i], /* lpWideCharStr */
+ -1, /* cchWideChar */
+ strbuf, /* lpMultiByteStr */
+ u8size, /* cbMultiByte */
+ NULL, /* lpDefaultChar */
+ NULL); /* lpUsedDefaultChar */
if (ret) {
argv[i] = strbuf;
} else {
@@ -125,7 +125,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
argv[i] = _strdup("");
}
}
- argv[argc] = NULL; // required by C standard at end of list
+ argv[argc] = NULL; /* required by C standard at end of list */
/* Free the wide character string array */
LocalFree(wideArgv);