runtime: extract 'runtimepath' and 'packpath' logic to its own file

No code changes, except for added ILOG for the calculated startup path
This commit is contained in:
Björn Linse
2020-11-25 12:15:55 +01:00
parent d285fa73da
commit 72d29847d6
5 changed files with 852 additions and 808 deletions

18
src/nvim/runtime.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef NVIM_RUNTIME_H
#define NVIM_RUNTIME_H
#include <stdbool.h>
#include "nvim/ex_docmd.h"
typedef void (*DoInRuntimepathCB)(char_u *, void *);
// last argument for do_source()
#define DOSO_NONE 0
#define DOSO_VIMRC 1 // loading vimrc file
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "runtime.h.generated.h"
#endif
#endif // NVIM_RUNTIME_H