strmap: remove GIT__USE_STRMAP macro

This commit is contained in:
Patrick Steinhardt 2017-01-27 14:32:23 +01:00
parent a13cfd2af2
commit 13c3bc9adf
16 changed files with 1 additions and 31 deletions

View File

@ -7,8 +7,6 @@
#include "git2/oid.h"
#include <ctype.h>
GIT__USE_STRMAP
const char *git_attr__true = "[internal]__TRUE__";
const char *git_attr__false = "[internal]__FALSE__";
const char *git_attr__unset = "[internal]__UNSET__";

View File

@ -5,8 +5,6 @@
#include "sysdir.h"
#include "ignore.h"
GIT__USE_STRMAP
GIT_INLINE(int) attr_cache_lock(git_attr_cache *cache)
{
GIT_UNUSED(cache); /* avoid warning if threading is off */

View File

@ -35,8 +35,6 @@
#include "pool.h"
#include "strmap.h"
GIT__USE_STRMAP
/* See docs/checkout-internals.md for more information */
enum {

View File

@ -21,8 +21,6 @@
#include <sys/types.h>
#include <regex.h>
GIT__USE_STRMAP
typedef struct cvar_t {
struct cvar_t *next;
git_config_entry *entry;

View File

@ -16,8 +16,6 @@
#include "config.h"
#include "repository.h"
GIT__USE_STRMAP
typedef enum {
DIFF_DRIVER_AUTO = 0,
DIFF_DRIVER_BINARY = 1,

View File

@ -13,8 +13,6 @@
#include "win32/findfile.h"
#endif
GIT__USE_STRMAP
int git_futils_mkpath2file(const char *file_path, const mode_t mode)
{
return git_futils_mkdir(

View File

@ -14,8 +14,6 @@
#include "strmap.h"
#include "pack.h"
GIT__USE_STRMAP
#define DEFAULT_WINDOW_SIZE \
(sizeof(void*) >= 8 \
? 1 * 1024 * 1024 * 1024 \

View File

@ -26,8 +26,6 @@
#include <git2/sys/refs.h>
#include <git2/sys/reflog.h>
GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10

View File

@ -26,8 +26,6 @@
bool git_reference__enable_symbolic_ref_target_validation = true;
GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10

View File

@ -30,7 +30,6 @@
#include "submodule.h"
#include "worktree.h"
GIT__USE_STRMAP
#include "strmap.h"
#ifdef GIT_WIN32

View File

@ -1,7 +1,5 @@
#include "sortedcache.h"
GIT__USE_STRMAP
int git_sortedcache_new(
git_sortedcache **out,
size_t item_path_offset,

View File

@ -7,7 +7,7 @@
#include "strmap.h"
GIT__USE_STRMAP
__KHASH_IMPL(str, static kh_inline, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
int git_strmap_alloc(git_strmap **map)
{

View File

@ -20,9 +20,6 @@ __KHASH_TYPE(str, const char *, void *)
typedef khash_t(str) git_strmap;
typedef khiter_t git_strmap_iter;
#define GIT__USE_STRMAP \
__KHASH_IMPL(str, static kh_inline, const char *, void *, 1, kh_str_hash_func, kh_str_hash_equal)
int git_strmap_alloc(git_strmap **map);
#define git_strmap_free(h) git_strmap__free(h); (h) = NULL

View File

@ -19,8 +19,6 @@
#include "git2/sys/refs.h"
#include "git2/sys/refdb_backend.h"
GIT__USE_STRMAP
typedef enum {
TRANSACTION_NONE,
TRANSACTION_REFS,

View File

@ -20,8 +20,6 @@
#define TREE_ENTRY_CHECK_NAMELEN(n) \
if (n > UINT16_MAX) { giterr_set(GITERR_INVALID, "tree entry path too long"); }
GIT__USE_STRMAP
static bool valid_filemode(const int filemode)
{
return (filemode == GIT_FILEMODE_TREE

View File

@ -1,8 +1,6 @@
#include "clar_libgit2.h"
#include "strmap.h"
GIT__USE_STRMAP
git_strmap *g_table;
void test_core_strmap__initialize(void)