Revision c42c0f12972194564f039dcf580d89ca14ae72d6 authored by Junio C Hamano on 17 March 2020, 20:23:48 UTC, committed by Junio C Hamano on 17 March 2020, 20:25:33 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 07259e7
argv-array.h
#ifndef ARGV_ARRAY_H
#define ARGV_ARRAY_H
extern const char *empty_argv[];
struct argv_array {
const char **argv;
int argc;
int alloc;
};
#define ARGV_ARRAY_INIT { empty_argv, 0, 0 }
void argv_array_init(struct argv_array *);
void argv_array_push(struct argv_array *, const char *);
__attribute__((format (printf,2,3)))
void argv_array_pushf(struct argv_array *, const char *fmt, ...);
LAST_ARG_MUST_BE_NULL
void argv_array_pushl(struct argv_array *, ...);
void argv_array_pushv(struct argv_array *, const char **);
void argv_array_pop(struct argv_array *);
void argv_array_clear(struct argv_array *);
const char **argv_array_detach(struct argv_array *);
#endif /* ARGV_ARRAY_H */
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...