Mercurial > vim
comparison src/os_unixx.h @ 18753:6e3dc2d630c2 v8.1.2366
patch 8.1.2366: using old C style comments
Commit: https://github.com/vim/vim/commit/9bf703d46a79fbffeb829246ea5ce385bddc4166
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 19:44:38 2019 +0100
patch 8.1.2366: using old C style comments
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 19:45:03 +0100 |
parents | 3b0924353019 |
children | f37028184d6a |
comparison
equal
deleted
inserted
replaced
18752:9ec3c9cb4533 | 18753:6e3dc2d630c2 |
---|---|
15 */ | 15 */ |
16 #if defined(HAVE_SIGSET) && !defined(signal) | 16 #if defined(HAVE_SIGSET) && !defined(signal) |
17 # define signal sigset | 17 # define signal sigset |
18 #endif | 18 #endif |
19 | 19 |
20 /* Sun's sys/ioctl.h redefines symbols from termio world */ | 20 // Sun's sys/ioctl.h redefines symbols from termio world |
21 #if defined(HAVE_SYS_IOCTL_H) && !defined(SUN_SYSTEM) | 21 #if defined(HAVE_SYS_IOCTL_H) && !defined(SUN_SYSTEM) |
22 # include <sys/ioctl.h> | 22 # include <sys/ioctl.h> |
23 #endif | 23 #endif |
24 | 24 |
25 #ifndef USE_SYSTEM /* use fork/exec to start the shell */ | 25 #ifndef USE_SYSTEM // use fork/exec to start the shell |
26 | 26 |
27 # if defined(HAVE_SYS_WAIT_H) || defined(HAVE_UNION_WAIT) | 27 # if defined(HAVE_SYS_WAIT_H) || defined(HAVE_UNION_WAIT) |
28 # include <sys/wait.h> | 28 # include <sys/wait.h> |
29 # endif | 29 # endif |
30 | 30 |
42 # else | 42 # else |
43 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | 43 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
44 # endif | 44 # endif |
45 # endif | 45 # endif |
46 | 46 |
47 #endif /* !USE_SYSTEM */ | 47 #endif // !USE_SYSTEM |
48 | 48 |
49 #ifdef HAVE_STROPTS_H | 49 #ifdef HAVE_STROPTS_H |
50 #ifdef sinix | 50 #ifdef sinix |
51 #define buf_T __system_buf_t__ | 51 #define buf_T __system_buf_t__ |
52 #endif | 52 #endif |
67 #ifdef HAVE_SYS_UTSNAME_H | 67 #ifdef HAVE_SYS_UTSNAME_H |
68 # include <sys/utsname.h> | 68 # include <sys/utsname.h> |
69 #endif | 69 #endif |
70 | 70 |
71 #ifdef HAVE_SYS_SYSTEMINFO_H | 71 #ifdef HAVE_SYS_SYSTEMINFO_H |
72 /* <sys/systeminfo.h> uses SYS_NMLN but it may not be defined (CrayT3E). */ | 72 // <sys/systeminfo.h> uses SYS_NMLN but it may not be defined (CrayT3E). |
73 # ifndef SYS_NMLN | 73 # ifndef SYS_NMLN |
74 # define SYS_NMLN 32 | 74 # define SYS_NMLN 32 |
75 # endif | 75 # endif |
76 | 76 |
77 # include <sys/systeminfo.h> /* for sysinfo */ | 77 # include <sys/systeminfo.h> // for sysinfo |
78 #endif | 78 #endif |
79 | 79 |
80 /* | 80 /* |
81 * We use termios.h if both termios.h and termio.h are available. | 81 * We use termios.h if both termios.h and termio.h are available. |
82 * Termios is supposed to be a superset of termio.h. Don't include them both, | 82 * Termios is supposed to be a superset of termio.h. Don't include them both, |
94 # endif | 94 # endif |
95 # endif | 95 # endif |
96 #endif | 96 #endif |
97 | 97 |
98 #ifdef HAVE_SYS_PTEM_H | 98 #ifdef HAVE_SYS_PTEM_H |
99 # include <sys/ptem.h> /* must be after termios.h for Sinix */ | 99 # include <sys/ptem.h> // must be after termios.h for Sinix |
100 # ifndef _IO_PTEM_H /* For UnixWare that should check for _IO_PT_PTEM_H */ | 100 # ifndef _IO_PTEM_H // For UnixWare that should check for _IO_PT_PTEM_H |
101 # define _IO_PTEM_H | 101 # define _IO_PTEM_H |
102 # endif | 102 # endif |
103 #endif | 103 #endif |
104 | 104 |
105 /* shared library access */ | 105 // shared library access |
106 #if defined(HAVE_DLFCN_H) && defined(USE_DLOPEN) | 106 #if defined(HAVE_DLFCN_H) && defined(USE_DLOPEN) |
107 # if defined(__MVS__) && !defined (__SUSV3) | 107 # if defined(__MVS__) && !defined (__SUSV3) |
108 /* needed to define RTLD_LAZY (Anthony Giorgio) */ | 108 // needed to define RTLD_LAZY (Anthony Giorgio) |
109 # define __SUSV3 | 109 # define __SUSV3 |
110 # endif | 110 # endif |
111 # include <dlfcn.h> | 111 # include <dlfcn.h> |
112 #else | 112 #else |
113 # if defined(HAVE_DL_H) && defined(HAVE_SHL_LOAD) | 113 # if defined(HAVE_DL_H) && defined(HAVE_SHL_LOAD) |