git/ws.c

/*
 * Whitespace rules
 *
 * Copyright (c) 2007 Junio C Hamano
 */
#include "git-compat-util.h"
#include "attr.h"
#include "strbuf.h"
#include "ws.h"

unsigned whitespace_rule_cfg =;

static struct whitespace_rule {} whitespace_rule_names[] =;

unsigned parse_whitespace_rule(const char *string)
{}

unsigned whitespace_rule(struct index_state *istate, const char *pathname)
{}

/* The returned string should be freed by the caller. */
char *whitespace_error_string(unsigned ws)
{}

/* If stream is non-NULL, emits the line after checking. */
static unsigned ws_check_emit_1(const char *line, int len, unsigned ws_rule,
				FILE *stream, const char *set,
				const char *reset, const char *ws)
{}

void ws_check_emit(const char *line, int len, unsigned ws_rule,
		   FILE *stream, const char *set,
		   const char *reset, const char *ws)
{}

unsigned ws_check(const char *line, int len, unsigned ws_rule)
{}

int ws_blank_line(const char *line, int len)
{}

/* Copy the line onto the end of the strbuf while fixing whitespaces */
void ws_fix_copy(struct strbuf *dst, const char *src, int len, unsigned ws_rule, int *error_count)
{}