mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
hashtab.h: don't include vim.h
Including vim.h in another header filer is asking for trouble. Test code that includes separate header files (e.g.: cimport './src/nvim/buffer.h'), has a really bad time with this. This is just one piece of the puzzle though.
This commit is contained in:
parent
90a206d332
commit
08fad0f8f6
@ -1,7 +1,9 @@
|
|||||||
#ifndef NVIM_HASHTAB_H
|
#ifndef NVIM_HASHTAB_H
|
||||||
#define NVIM_HASHTAB_H
|
#define NVIM_HASHTAB_H
|
||||||
|
|
||||||
#include "nvim/vim.h"
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#include "nvim/types.h"
|
||||||
|
|
||||||
/// Type for hash number (hash calculation result).
|
/// Type for hash number (hash calculation result).
|
||||||
typedef size_t hash_T;
|
typedef size_t hash_T;
|
||||||
|
Loading…
Reference in New Issue
Block a user