refactor(mch): last mch_ function/macro hits the dust

Also remove some stray comments.
This commit is contained in:
bfredl
2023-08-26 15:31:55 +02:00
parent 87cde88c41
commit bf36b0f8ec
5 changed files with 2 additions and 14 deletions

View File

@@ -82,15 +82,6 @@
#define READBIN "rb"
#define APPENDBIN "ab"
// mch_open_rw(): invoke os_open() with third argument for user R/W.
#if defined(UNIX) // open in rw------- mode
# define MCH_OPEN_RW(n, f) os_open((n), (f), (mode_t)0600)
#elif defined(MSWIN)
# define MCH_OPEN_RW(n, f) os_open((n), (f), S_IREAD | S_IWRITE)
#else
# define MCH_OPEN_RW(n, f) os_open((n), (f), 0)
#endif
#define REPLACE_NORMAL(s) (((s)& REPLACE_FLAG) && !((s)& VREPLACE_FLAG))
// MB_PTR_ADV(): advance a pointer to the next character, taking care of