diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-05 20:28:46 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-05 20:28:46 +0100 |
commit | 0f8737355d291679659579a48db1861b88970293 (patch) | |
tree | 6b8a8f4e9afe52e72c4039e404f3f4598e04d16a /src/os_beos.c | |
parent | 6e0ce171e19d0118ecd7c2b16e2a1bd50aa76013 (diff) | |
download | vim-git-0f8737355d291679659579a48db1861b88970293.tar.gz |
patch 8.1.2393: using old C style commentsv8.1.2393
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
Diffstat (limited to 'src/os_beos.c')
-rw-r--r-- | src/os_beos.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/os_beos.c b/src/os_beos.c index ebb448829..f3c01730c 100644 --- a/src/os_beos.c +++ b/src/os_beos.c @@ -21,7 +21,7 @@ #if USE_THREAD_FOR_INPUT_WITH_TIMEOUT -#ifdef PROTO /* making prototypes on Unix */ +#ifdef PROTO // making prototypes on Unix #define sem_id int #define thread_id int #endif @@ -32,7 +32,7 @@ sem_id character_present; sem_id character_wanted; thread_id read_thread_id; -#define TRY_ABORT 0 /* This code does not work so turn it off. */ +#define TRY_ABORT 0 // This code does not work so turn it off. #if TRY_ABORT static void @@ -89,7 +89,7 @@ beos_select(int nbits, bigtime_t tmo; if (nbits == 0) { - /* select is purely being used for delay */ + // select is purely being used for delay snooze(timeout->tv_sec * 1e6 + timeout->tv_usec); return 0; } @@ -140,10 +140,10 @@ beos_select(int nbits, resume_thread(read_thread_id); } - /* timeout == NULL means "indefinitely" */ + // timeout == NULL means "indefinitely" if (timeout) { tmo = timeout->tv_sec * 1e6 + timeout->tv_usec; - /* 0 means "don't wait, which is impossible to do exactly. */ + // 0 means "don't wait, which is impossible to do exactly. if (tmo == 0) tmo = 1.0; } |