vim: move vim_acl_T to types.h

Also include "types.h" in os_unix.h because it declares functions that
return vim_acl_T.
This commit is contained in:
Nicolas Hillegeer 2014-07-12 19:16:41 +02:00
parent 109c70dc60
commit 1710fa4337
6 changed files with 7 additions and 2 deletions

View File

@ -51,6 +51,7 @@
#include "nvim/strings.h"
#include "nvim/tempfile.h"
#include "nvim/term.h"
#include "nvim/types.h"
#include "nvim/ui.h"
#include "nvim/undo.h"
#include "nvim/window.h"

View File

@ -54,6 +54,7 @@
#include "nvim/syntax.h"
#include "nvim/tempfile.h"
#include "nvim/term.h"
#include "nvim/types.h"
#include "nvim/ui.h"
#include "nvim/os/os.h"
#include "nvim/os/time.h"

View File

@ -1,6 +1,7 @@
#ifndef NVIM_OS_UNIX_H
#define NVIM_OS_UNIX_H
#include "nvim/types.h" // for vim_acl_T
#include "nvim/os/shell.h"
/* Values returned by mch_nodetype() */

View File

@ -10,6 +10,9 @@
#include <stdint.h>
// dummy to pass an ACL to a function
typedef void *vim_acl_T;
// Make sure long_u is big enough to hold a pointer.
// On Win64, longs are 32 bits and pointers are 64 bits.
// For printf() and scanf(), we need to take care of long_u specifically.

View File

@ -107,6 +107,7 @@
#include "nvim/screen.h"
#include "nvim/sha256.h"
#include "nvim/strings.h"
#include "nvim/types.h"
#include "nvim/os/os.h"
#include "nvim/os/time.h"

View File

@ -358,8 +358,6 @@ enum {
#define SHOWCMD_COLS 10 /* columns needed by shown command */
#define STL_MAX_ITEM 80 /* max nr of %<flag> in statusline */
typedef void *vim_acl_T; /* dummy to pass an ACL to a function */
/*
* fnamecmp() is used to compare file names.
* On some systems case in a file name does not matter, on others it does.