mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
KWSys 2025-01-24 (2535f5f1)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit 2535f5f16a4077bba6da2d4cad2a417ca0c3918e (master).
Upstream Shortlog
-----------------
Brad King (4):
a42b7759 clang-format.bash: update to clang-format-18
6da5c6ac Empty commit at end of history preceding clang-format-18 style transition
a234f2ff clang-format: Enforce "east const" qualifier placement
ac2b3378 Empty commit at end of history preceding clang-format "east const" transition
Kitware Robot (2):
7a19509c Revise C++ coding style using clang-format-18
7dec9555 Revise C++ coding style using clang-format with "east const"
Nikita Nemkin (1):
4a126278 clang-format.bash: Preserve CRLF line endings on Windows
This commit is contained in:
committed by
Brad King
parent
d6d1695d89
commit
ca5cdc6741
8
System.c
8
System.c
@@ -22,7 +22,7 @@ typedef ptrdiff_t kwsysSystem_ptrdiff_t;
|
||||
typedef int kwsysSystem_ptrdiff_t;
|
||||
#endif
|
||||
|
||||
static int kwsysSystem__AppendByte(const char* local, char** begin, char** end,
|
||||
static int kwsysSystem__AppendByte(char const* local, char** begin, char** end,
|
||||
int* size, char c)
|
||||
{
|
||||
/* Allocate space for the character. */
|
||||
@@ -91,7 +91,7 @@ static int kwsysSystem__AppendArgument(char** local, char*** begin,
|
||||
|
||||
#define KWSYSPE_LOCAL_BYTE_COUNT 1024
|
||||
#define KWSYSPE_LOCAL_ARGS_COUNT 32
|
||||
static char** kwsysSystem__ParseUnixCommand(const char* command, int flags)
|
||||
static char** kwsysSystem__ParseUnixCommand(char const* command, int flags)
|
||||
{
|
||||
/* Create a buffer for argument pointers during parsing. */
|
||||
char* local_pointers[KWSYSPE_LOCAL_ARGS_COUNT];
|
||||
@@ -107,7 +107,7 @@ static char** kwsysSystem__ParseUnixCommand(const char* command, int flags)
|
||||
|
||||
/* Parse the command string. Try to behave like a UNIX shell. */
|
||||
char** newCommand = 0;
|
||||
const char* c = command;
|
||||
char const* c = command;
|
||||
int in_argument = 0;
|
||||
int in_escape = 0;
|
||||
int in_single = 0;
|
||||
@@ -224,7 +224,7 @@ static char** kwsysSystem__ParseUnixCommand(const char* command, int flags)
|
||||
return newCommand;
|
||||
}
|
||||
|
||||
char** kwsysSystem_Parse_CommandForUnix(const char* command, int flags)
|
||||
char** kwsysSystem_Parse_CommandForUnix(char const* command, int flags)
|
||||
{
|
||||
/* Validate the flags. */
|
||||
if (flags != 0) {
|
||||
|
||||
Reference in New Issue
Block a user