aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-07-06 08:21:07 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-07-06 08:23:21 -0400
commit3955ffa3051076926c904f2e05a9057aac7ea936 (patch)
tree7342433c4a0632fdfd9301e0e3146e06ed41bc2e /src
parentd4b4d7d0ec3b50955ce1d2f1dd10e30ef290392c (diff)
downloadrneovim-3955ffa3051076926c904f2e05a9057aac7ea936.tar.gz
rneovim-3955ffa3051076926c904f2e05a9057aac7ea936.tar.bz2
rneovim-3955ffa3051076926c904f2e05a9057aac7ea936.zip
os/*defs: restore some comments and formatting.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/os_defs.h8
-rw-r--r--src/nvim/os/unix_defs.h9
2 files changed, 4 insertions, 13 deletions
diff --git a/src/nvim/os/os_defs.h b/src/nvim/os/os_defs.h
index e52251021e..0e7632a79d 100644
--- a/src/nvim/os/os_defs.h
+++ b/src/nvim/os/os_defs.h
@@ -33,8 +33,7 @@
# define SIGDUMMYARG
#endif
-// On some systems, time.h should not be
-// included together with sys/time.h.
+// On some systems, time.h should not be included together with sys/time.h.
#if !defined(HAVE_SYS_TIME_H) || defined(TIME_WITH_SYS_TIME)
# include <time.h>
#endif
@@ -52,7 +51,7 @@
#endif
#if defined(NAME_MAX) && !defined(MAXNAMLEN)
-# define MAXNAMLEN NAME_MAX
+# define MAXNAMLEN NAME_MAX /* for Linux before .99p3 */
#endif
// Default value.
@@ -95,8 +94,7 @@
#define DFLT_ERRORFILE "errors.err"
-// Unix has plenty of memory, use large buffers.
-// Size of the command processing buffer.
+// Command-processing buffer. Use large buffers for all platforms.
#define CMDBUFFSIZE 1024
// Use up to 5 Mbyte for a buffer.
diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h
index de5dac3369..9ab4ba1c1a 100644
--- a/src/nvim/os/unix_defs.h
+++ b/src/nvim/os/unix_defs.h
@@ -18,38 +18,31 @@
// Special wildcards that need to be handled by the shell.
#define SPECIAL_WILDCHAR "`'{"
+// Unix system-dependent file names
#ifndef SYS_VIMRC_FILE
# define SYS_VIMRC_FILE "$VIM/nvimrc"
#endif
-
#ifndef DFLT_HELPFILE
# define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt"
#endif
-
#ifndef SYNTAX_FNAME
# define SYNTAX_FNAME "$VIMRUNTIME/syntax/%s.vim"
#endif
-
#ifndef USR_EXRC_FILE
# define USR_EXRC_FILE "~/.exrc"
#endif
-
#ifndef USR_VIMRC_FILE
# define USR_VIMRC_FILE "~/.nvimrc"
#endif
-
#ifndef USR_VIMRC_FILE2
# define USR_VIMRC_FILE2 "~/.nvim/nvimrc"
#endif
-
#ifndef EXRC_FILE
# define EXRC_FILE ".exrc"
#endif
-
#ifndef VIMRC_FILE
# define VIMRC_FILE ".nvimrc"
#endif
-
#ifndef VIMINFO_FILE
# define VIMINFO_FILE "~/.nviminfo"
#endif