Hash :
923fe455
Author :
Date :
2011-03-30T16:02:57
#ifndef INCLUDE_config_h__
#define INCLUDE_config_h__
#include "git2/config.h"
struct git_config {
git_cvar *vars;
git_cvar *vars_tail;
struct {
gitfo_buf buffer;
char *read_ptr;
int line_number;
int eof;
} reader;
char *file_path;
};
struct git_cvar {
git_cvar *next;
char *name;
char *value;
};
/*
* If you're going to delete something inside this loop, it's such a
* hassle that you should use the for-loop directly.
*/
#define CVAR_LIST_FOREACH(start, iter) \
for ((iter) = (start); (iter) != NULL; (iter) = (iter)->next)
void strtolower(char *str);
void strntolower(char *str, int len);
#endif