git/color.c

#include "git-compat-util.h"
#include "config.h"
#include "color.h"
#include "editor.h"
#include "gettext.h"
#include "hex-ll.h"
#include "pager.h"
#include "strbuf.h"

static int git_use_color_default =;
int color_stdout_is_tty =;

/*
 * The list of available column colors.
 */
const char *column_colors_ansi[] =;

enum {};

/* Ignore the RESET at the end when giving the size */
const int column_colors_ansi_max =;

/* An individual foreground or background color. */
struct color {};

/*
 * "word" is a buffer of length "len"; does it match the NUL-terminated
 * "match" exactly?
 */
static int match_word(const char *word, int len, const char *match)
{}

static int get_hex_color(const char **inp, int width, unsigned char *out)
{}

/*
 * If an ANSI color is recognized in "name", fill "out" and return 0.
 * Otherwise, leave out unchanged and return -1.
 */
static int parse_ansi_color(struct color *out, const char *name, int len)
{}

static int parse_color(struct color *out, const char *name, int len)
{}

static int parse_attr(const char *name, size_t len)
{}

int color_parse(const char *value, char *dst)
{}

/*
 * Write the ANSI color codes for "c" to "out"; the string should
 * already have the ANSI escape code in it. "out" should have enough
 * space in it to fit any color.
 */
static char *color_output(char *out, int len, const struct color *c, int background)
{}

static int color_empty(const struct color *c)
{}

int color_parse_mem(const char *value, int value_len, char *dst)
{}

int git_config_colorbool(const char *var, const char *value)
{}

static int check_auto_color(int fd)
{}

int want_color_fd(int fd, int var)
{}

int git_color_config(const char *var, const char *value, void *cb UNUSED)
{}

void color_print_strbuf(FILE *fp, const char *color, const struct strbuf *sb)
{}

static int color_vfprintf(FILE *fp, const char *color, const char *fmt,
		va_list args, const char *trail)
{}

int color_fprintf(FILE *fp, const char *color, const char *fmt, ...)
{}

int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...)
{}

int color_is_nil(const char *c)
{}