Macros | Functions
map.c File Reference
#include <lauxlib.h>
#include <lua.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "nvim/api/private/dispatch.h"
#include "nvim/lib/khash.h"
#include "nvim/map.h"
#include "nvim/map_defs.h"
#include "nvim/memory.h"
#include "nvim/vim.h"

Macros

#define cstr_t_hash   kh_str_hash_func
 
#define cstr_t_eq   kh_str_hash_equal
 
#define uint64_t_hash   kh_int64_hash_func
 
#define uint64_t_eq   kh_int64_hash_equal
 
#define uint32_t_hash   kh_int_hash_func
 
#define uint32_t_eq   kh_int_hash_equal
 
#define int_hash   kh_int_hash_func
 
#define int_eq   kh_int_hash_equal
 
#define linenr_T_hash   kh_int_hash_func
 
#define linenr_T_eq   kh_int_hash_equal
 
#define handle_T_hash   kh_int_hash_func
 
#define handle_T_eq   kh_int_hash_equal
 
#define INITIALIZER(T, U)   T##_##U##_initializer
 
#define INITIALIZER_DECLARE(T, U, ...)   const U INITIALIZER(T, U) = __VA_ARGS__
 
#define DEFAULT_INITIALIZER   { 0 }
 
#define SSIZE_INITIALIZER   { -1 }
 
#define MAP_IMPL(T, U, ...)
 
#define EXTMARK_NS_INITIALIZER   { { MAP_INIT }, 1 }
 
#define EXTMARK_ITEM_INITIALIZER   { 0, 0, NULL }
 
#define MSGPACK_HANDLER_INITIALIZER   { .fn = NULL, .fast = false }
 

Functions

void pmap_del2 (PMap(cstr_t) *map, const char *key)
 

Macro Definition Documentation

◆ cstr_t_eq

#define cstr_t_eq   kh_str_hash_equal

◆ cstr_t_hash

#define cstr_t_hash   kh_str_hash_func

◆ DEFAULT_INITIALIZER

#define DEFAULT_INITIALIZER   { 0 }

◆ EXTMARK_ITEM_INITIALIZER

#define EXTMARK_ITEM_INITIALIZER   { 0, 0, NULL }

◆ EXTMARK_NS_INITIALIZER

#define EXTMARK_NS_INITIALIZER   { { MAP_INIT }, 1 }

◆ handle_T_eq

#define handle_T_eq   kh_int_hash_equal

◆ handle_T_hash

#define handle_T_hash   kh_int_hash_func

◆ INITIALIZER

#define INITIALIZER (   T,
 
)    T##_##U##_initializer

◆ INITIALIZER_DECLARE

#define INITIALIZER_DECLARE (   T,
  U,
  ... 
)    const U INITIALIZER(T, U) = __VA_ARGS__

◆ int_eq

#define int_eq   kh_int_hash_equal

◆ int_hash

#define int_hash   kh_int_hash_func

◆ linenr_T_eq

#define linenr_T_eq   kh_int_hash_equal

◆ linenr_T_hash

#define linenr_T_hash   kh_int_hash_func

◆ MAP_IMPL

#define MAP_IMPL (   T,
  U,
  ... 
)

◆ MSGPACK_HANDLER_INITIALIZER

#define MSGPACK_HANDLER_INITIALIZER   { .fn = NULL, .fast = false }

◆ SSIZE_INITIALIZER

#define SSIZE_INITIALIZER   { -1 }

◆ uint32_t_eq

#define uint32_t_eq   kh_int_hash_equal

◆ uint32_t_hash

#define uint32_t_hash   kh_int_hash_func

◆ uint64_t_eq

#define uint64_t_eq   kh_int64_hash_equal

◆ uint64_t_hash

#define uint64_t_hash   kh_int64_hash_func

Function Documentation

◆ pmap_del2()

void pmap_del2 ( PMap(cstr_t) *  map,
const char *  key 
)

Deletes a key:value pair from a string:pointer map, and frees the storage of both key and value.