mirror of
https://github.com/git/git.git
synced 2026-01-11 18:45:28 +00:00
This attribute can help gcc notice when callers forget to add a NULL sentinel to the end of the function. This is our first use of the sentinel attribute, but we shouldn't need to #ifdef for other compilers, as __attribute__ is already a no-op on non-gcc-compatible compilers. Suggested-by: Bert Wesarg <bert.wesarg@googlemail.com> More-Spots-Found-By: Matt Kraai <kraai@ftbfs.org> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 lines
513 B
C
15 lines
513 B
C
#ifndef GIT_EXEC_CMD_H
|
|
#define GIT_EXEC_CMD_H
|
|
|
|
extern void git_set_argv_exec_path(const char *exec_path);
|
|
extern const char *git_extract_argv0_path(const char *path);
|
|
extern const char *git_exec_path(void);
|
|
extern void setup_path(void);
|
|
extern const char **prepare_git_cmd(const char **argv);
|
|
extern int execv_git_cmd(const char **argv); /* NULL terminated */
|
|
__attribute__((sentinel))
|
|
extern int execl_git_cmd(const char *cmd, ...);
|
|
extern const char *system_path(const char *path);
|
|
|
|
#endif /* GIT_EXEC_CMD_H */
|