~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to src/nvim/map.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-04-18 21:42:19 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20160418214219-1e6d4o1fwqarzk46
Tags: 0.1.3-1
* New upstream release.  (Closes: #820562)
* debian/control:
  + Remove unnecessary luarocks Build-Depends
  + Add libkvm-dev Build-Depends for kfreebsd-*
  + Add python(3)-neovim to Recommends.  (Closes: #812737)
  + Declare compiance with policy 3.9.8, no changes needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include "nvim/map_defs.h"
7
7
#include "nvim/api/private/defs.h"
8
8
#include "nvim/msgpack_rpc/defs.h"
 
9
#include "nvim/bufhl_defs.h"
9
10
 
10
11
#define MAP_DECLS(T, U)                                                       \
11
12
  KHASH_DECLARE(T##_##U##_map, T, U)                                          \
19
20
  U map_##T##_##U##_get(Map(T, U) *map, T key);                               \
20
21
  bool map_##T##_##U##_has(Map(T, U) *map, T key);                            \
21
22
  U map_##T##_##U##_put(Map(T, U) *map, T key, U value);                      \
 
23
  U *map_##T##_##U##_ref(Map(T, U) *map, T key, bool put);                    \
22
24
  U map_##T##_##U##_del(Map(T, U) *map, T key);                               \
23
25
  void map_##T##_##U##_clear(Map(T, U) *map);
24
26
 
28
30
MAP_DECLS(ptr_t, ptr_t)
29
31
MAP_DECLS(uint64_t, ptr_t)
30
32
MAP_DECLS(String, MsgpackRpcRequestHandler)
 
33
MAP_DECLS(linenr_T, bufhl_vec_T)
31
34
 
32
35
#define map_new(T, U) map_##T##_##U##_new
33
36
#define map_free(T, U) map_##T##_##U##_free
34
37
#define map_get(T, U) map_##T##_##U##_get
35
38
#define map_has(T, U) map_##T##_##U##_has
36
39
#define map_put(T, U) map_##T##_##U##_put
 
40
#define map_ref(T, U) map_##T##_##U##_ref
37
41
#define map_del(T, U) map_##T##_##U##_del
38
42
#define map_clear(T, U) map_##T##_##U##_clear
39
43