From 3140284679aa0ce69c243fe82e2973e7807c822a Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Fri, 10 Jul 2020 14:26:12 +0200
Subject: [PATCH] MacOS.c/MacOS.h: improved comment on what is going on

---
 MacOS.c | 2 --
 MacOS.h | 8 ++++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/MacOS.c b/MacOS.c
index 5d3c509..55e4176 100644
--- a/MacOS.c
+++ b/MacOS.c
@@ -6,8 +6,6 @@
  *
  * MaOSstartup(char *path)      : create working dir in "$HOME/Library/Application Support" etc.
  *
- * clock_gettime()              : MacOS implementation if it is not available
- * clock_nanosleep()            : MacOS implementation
  */
 
 #ifdef __APPLE__
diff --git a/MacOS.h b/MacOS.h
index be810a6..c636e93 100644
--- a/MacOS.h
+++ b/MacOS.h
@@ -1,5 +1,9 @@
 /*
- *  Replace missing library functions with inline code
+ *  Some functions are possibly missing on MacOS and in this case
+ *  are replaced with "static inline" functions:
+ *
+ *  clock_gettime()
+ *  clock_nanosleep()
  */
 
 #ifdef __APPLE__
@@ -51,7 +55,7 @@ static inline int clock_gettime( clockid_t clk_id, struct timespec *ts )
 
 //
 // MacOS does not have clock_nanosleep but it does have nanosleep
-// We ignores clock_id (assuming CLOCK_MONOTONIC)
+// We ignore clock_id (assuming CLOCK_MONOTONIC)
 // but for the flags we allow TIMER_ABSTIME (sleep until a specific poin
 // in time), for all other value we sleep for a speficic period.
 //
-- 
2.45.2