diff options
author | Hinidu <hinidu@gmail.com> | 2014-05-01 15:02:45 +0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-01 18:24:58 -0400 |
commit | 018bb73296eae20d608e068a500eaafe6e69876f (patch) | |
tree | 0c8b4a3502b489d5bc472cb53e8ec6e2508e9f97 | |
parent | 67a157c08d28810a9a7b460cb56b9e92d0d77e95 (diff) | |
download | rneovim-018bb73296eae20d608e068a500eaafe6e69876f.tar.gz rneovim-018bb73296eae20d608e068a500eaafe6e69876f.tar.bz2 rneovim-018bb73296eae20d608e068a500eaafe6e69876f.zip |
Added missing #define guards in headers
-rw-r--r-- | src/if_cscope_defs.h | 7 | ||||
-rw-r--r-- | src/macros.h | 5 | ||||
-rw-r--r-- | src/os_unix_defs.h | 5 | ||||
-rw-r--r-- | src/proto.h | 5 | ||||
-rw-r--r-- | src/regexp_defs.h | 6 | ||||
-rw-r--r-- | src/term_defs.h | 5 | ||||
-rw-r--r-- | src/version_defs.h | 5 |
7 files changed, 32 insertions, 6 deletions
diff --git a/src/if_cscope_defs.h b/src/if_cscope_defs.h index 9daa5c7b3f..7a60da20dd 100644 --- a/src/if_cscope_defs.h +++ b/src/if_cscope_defs.h @@ -1,3 +1,6 @@ +#ifndef NEOVIM_IF_CSCOPE_DEFS_H +#define NEOVIM_IF_CSCOPE_DEFS_H + /* * CSCOPE support for Vim added by Andy Kahn <kahn@zk3.dec.com> * Ported to Win32 by Sergey Khorev <sergey.khorev@gmail.com> @@ -66,6 +69,4 @@ typedef enum { Print } mcmd_e; - - -/* the end */ +#endif // NEOVIM_IF_CSCOPE_DEFS_H diff --git a/src/macros.h b/src/macros.h index 8dd412f838..5f7147be23 100644 --- a/src/macros.h +++ b/src/macros.h @@ -1,3 +1,6 @@ +#ifndef NEOVIM_MACROS_H +#define NEOVIM_MACROS_H + /* * VIM - Vi IMproved by Bram Moolenaar * @@ -159,3 +162,5 @@ # define PTR2CHAR(p) (has_mbyte ? mb_ptr2char(p) : (int)*(p)) # define RESET_BINDING(wp) (wp)->w_p_scb = FALSE; (wp)->w_p_crb = FALSE + +#endif // NEOVIM_MACROS_H diff --git a/src/os_unix_defs.h b/src/os_unix_defs.h index d9bd9191af..5ca09a7584 100644 --- a/src/os_unix_defs.h +++ b/src/os_unix_defs.h @@ -1,3 +1,6 @@ +#ifndef NEOVIM_OS_UNIX_DEFS_H +#define NEOVIM_OS_UNIX_DEFS_H + /* * VIM - Vi IMproved by Bram Moolenaar * @@ -277,3 +280,5 @@ /* We have three kinds of ACL support. */ #define HAVE_ACL (HAVE_POSIX_ACL || HAVE_SOLARIS_ACL || HAVE_AIX_ACL) + +#endif // NEOVIM_OS_UNIX_DEFS_H diff --git a/src/proto.h b/src/proto.h index 7b0decda1d..0177b52f28 100644 --- a/src/proto.h +++ b/src/proto.h @@ -1,3 +1,6 @@ +#ifndef NEOVIM_PROTO_H +#define NEOVIM_PROTO_H + /* * VIM - Vi IMproved by Bram Moolenaar * @@ -42,3 +45,5 @@ vim_snprintf(char *, size_t, char *, ...); int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs); #endif /* !PROTO && !NOPROTO */ + +#endif // NEOVIM_PROTO_H diff --git a/src/regexp_defs.h b/src/regexp_defs.h index a4eaa8d0a5..5bed390636 100644 --- a/src/regexp_defs.h +++ b/src/regexp_defs.h @@ -9,8 +9,8 @@ * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE */ -#ifndef _REGEXP_H -#define _REGEXP_H +#ifndef NEOVIM_REGEXP_DEFS_H +#define NEOVIM_REGEXP_DEFS_H #include "pos.h" @@ -146,4 +146,4 @@ struct regengine { #endif }; -#endif /* _REGEXP_H */ +#endif // NEOVIM_REGEXP_DEFS_H diff --git a/src/term_defs.h b/src/term_defs.h index e6fdf8bc3d..ed341adc8e 100644 --- a/src/term_defs.h +++ b/src/term_defs.h @@ -1,3 +1,6 @@ +#ifndef NEOVIM_TERM_DEFS_H +#define NEOVIM_TERM_DEFS_H + /* * VIM - Vi IMproved by Bram Moolenaar * @@ -153,3 +156,5 @@ extern char_u *(term_strings[]); /* current terminal strings */ #define TMODE_COOK 0 /* terminal mode for external cmds and Ex mode */ #define TMODE_SLEEP 1 /* terminal mode for sleeping (cooked but no echo) */ #define TMODE_RAW 2 /* terminal mode for Normal and Insert mode */ + +#endif // NEOVIM_TERM_DEFS_H diff --git a/src/version_defs.h b/src/version_defs.h index 4abf02ce77..87487c2624 100644 --- a/src/version_defs.h +++ b/src/version_defs.h @@ -1,3 +1,6 @@ +#ifndef NEOVIM_VERSION_DEFS_H +#define NEOVIM_VERSION_DEFS_H + /* * VIM - Vi IMproved by Bram Moolenaar * @@ -40,3 +43,5 @@ /* Displayed on splash screen. */ #define MODIFIED_BY "the Neovim contributors." + +#endif // NEOVIM_VERSION_DEFS_H |