libgit2/src/common.h
Andreas Ericsson ae23486285 Add an embryo of a TLS-aware error handling system
This adds the per-thread global variable git_errno to the
system, which callers can examine to get information about
an error.

Two helper functions are added to reduce LoC-count for the
library code itself.

Also, some exceptions are made for running sparse on GIT_TLS
definitions, since it doesn't grok thread-local variables at
all.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2008-11-22 12:08:00 -08:00

14 lines
252 B
C

#ifndef INCLUDE_common_h__
#define INCLUDE_common_h__
#include "cc-compat.h"
#include "util.h"
#include "errors.h"
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "git/common.h"
#endif /* INCLUDE_common_h__ */