libgit2/src/config.h
Carlos Martín Nieto e21881d1db git_config: reorder fields according to use
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-03-30 15:44:23 +02:00

34 lines
560 B
C

#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)
#endif