Updated to use the latest libgit2 1.9.0 and GCC14.

This commit is contained in:
Zed A. Shaw 2025-04-16 23:44:22 -04:00
parent 62785d463c
commit 2d81f900be
10 changed files with 29 additions and 35 deletions

View file

@ -8,7 +8,6 @@
#ifndef INCLUDE_process_h__
#define INCLUDE_process_h__
typedef struct git_str git_str;
typedef struct git_process git_process;
typedef struct {
@ -113,10 +112,7 @@ extern int git_process__cmdline(
* cmdline arguments to ensure that they are not erroneously treated
* as an option. For example, arguments to `ssh`.
*/
static __inline__ bool git_process__is_cmdline_option(const char *str)
{
return (str && str[0] == '-');
}
#define git_process__is_cmdline_option(S) ((S) && (S)[0] == '-')
/**
* Start the process.
@ -211,7 +207,7 @@ extern int git_process_close(git_process *process);
* @param msg the buffer to store the message
* @param result the process result that produced an error
*/
extern int git_process_result_msg(git_str *msg, git_process_result *result);
extern int git_process_result_msg(struct git_str *msg, git_process_result *result);
/**
* Free a process structure