mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 00:04:03 +00:00

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>
14 lines
252 B
C
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__ */
|