comparison src/os_beos.c @ 18810:44b855153d8e v8.1.2393

patch 8.1.2393: using old C style comments Commit: https://github.com/vim/vim/commit/0f8737355d291679659579a48db1861b88970293 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 5 20:28:46 2019 +0100 patch 8.1.2393: using old C style comments Problem: Using old C style comments. Solution: Use // comments where appropriate.
author Bram Moolenaar <Bram@vim.org>
date Thu, 05 Dec 2019 20:30:04 +0100
parents 4aead6a9b7a9
children
comparison
equal deleted inserted replaced
18809:8c6177fec9cb 18810:44b855153d8e
19 19
20 #include "vim.h" 20 #include "vim.h"
21 21
22 #if USE_THREAD_FOR_INPUT_WITH_TIMEOUT 22 #if USE_THREAD_FOR_INPUT_WITH_TIMEOUT
23 23
24 #ifdef PROTO /* making prototypes on Unix */ 24 #ifdef PROTO // making prototypes on Unix
25 #define sem_id int 25 #define sem_id int
26 #define thread_id int 26 #define thread_id int
27 #endif 27 #endif
28 28
29 char_u charbuf; 29 char_u charbuf;
30 signed char charcount; 30 signed char charcount;
31 sem_id character_present; 31 sem_id character_present;
32 sem_id character_wanted; 32 sem_id character_wanted;
33 thread_id read_thread_id; 33 thread_id read_thread_id;
34 34
35 #define TRY_ABORT 0 /* This code does not work so turn it off. */ 35 #define TRY_ABORT 0 // This code does not work so turn it off.
36 36
37 #if TRY_ABORT 37 #if TRY_ABORT
38 static void 38 static void
39 mostly_ignore(int sig) 39 mostly_ignore(int sig)
40 { 40 {
87 struct timeval *timeout) 87 struct timeval *timeout)
88 { 88 {
89 bigtime_t tmo; 89 bigtime_t tmo;
90 90
91 if (nbits == 0) { 91 if (nbits == 0) {
92 /* select is purely being used for delay */ 92 // select is purely being used for delay
93 snooze(timeout->tv_sec * 1e6 + timeout->tv_usec); 93 snooze(timeout->tv_sec * 1e6 + timeout->tv_usec);
94 return 0; 94 return 0;
95 } 95 }
96 #if 0 96 #if 0
97 /* 97 /*
138 B_NORMAL_PRIORITY, NULL); 138 B_NORMAL_PRIORITY, NULL);
139 atexit(beos_cleanup_read_thread); 139 atexit(beos_cleanup_read_thread);
140 resume_thread(read_thread_id); 140 resume_thread(read_thread_id);
141 } 141 }
142 142
143 /* timeout == NULL means "indefinitely" */ 143 // timeout == NULL means "indefinitely"
144 if (timeout) { 144 if (timeout) {
145 tmo = timeout->tv_sec * 1e6 + timeout->tv_usec; 145 tmo = timeout->tv_sec * 1e6 + timeout->tv_usec;
146 /* 0 means "don't wait, which is impossible to do exactly. */ 146 // 0 means "don't wait, which is impossible to do exactly.
147 if (tmo == 0) 147 if (tmo == 0)
148 tmo = 1.0; 148 tmo = 1.0;
149 } 149 }
150 #if TRY_ABORT 150 #if TRY_ABORT
151 release_sem(character_wanted); 151 release_sem(character_wanted);