<pre style='margin:0'>
Ken (kencu) pushed a commit to branch legacycomments
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/c85238ff6c8529dfc4eaeefabea891d0274a6253">https://github.com/macports/macports-legacy-support/commit/c85238ff6c8529dfc4eaeefabea891d0274a6253</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c85238ff6c8529dfc4eaeefabea891d0274a6253
</span>Author: ken-cunningham-webuse <ken.cunningham.webuse@gmail.com>
AuthorDate: Mon Nov 12 16:07:43 2018 -0800
<span style='display:block; white-space:pre;color:#404040;'> legacy-support: change comment style
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> suppresses dozens of warning messages for C++ style comments
</span><span style='display:block; white-space:pre;color:#404040;'> not being appropriate for older C standards
</span>---
include/MacportsLegacySupport.h | 16 ++++++++--------
include/cmath | 10 +++++-----
include/stdio.h | 10 +++++-----
include/string.h | 12 ++++++------
include/sys/fcntl.h | 10 ++++++----
include/sys/mman.h | 6 +++---
include/time.h | 18 +++++++++---------
include/wchar.h | 8 ++++----
8 files changed, 46 insertions(+), 44 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/MacportsLegacySupport.h b/include/MacportsLegacySupport.h
</span><span style='display:block; white-space:pre;color:#808080;'>index 3878e47..c3e4cae 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/MacportsLegacySupport.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/MacportsLegacySupport.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -20,27 +20,27 @@
</span>
#include "AvailabilityMacros.h"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// defines for when legacy support is required for various functions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* defines for when legacy support is required for various functions */
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// clock_gettime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* clock_gettime */
</span> #define __MP_LEGACY_SUPPORT_GETTIME__ __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// strnlen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* strnlen */
</span> #define __MP_LEGACY_SUPPORT_STRNLEN__ __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// strndup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* strndup */
</span> #define __MP_LEGACY_SUPPORT_STRNDUP__ __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// getline
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* getline */
</span> #define __MP_LEGACY_SUPPORT_GETLINE__ __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// memmem
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* memmem */
</span> #define __MP_LEGACY_SUPPORT_MEMMEM__ __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// wcsdup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* wcsdup */
</span> #define __MP_LEGACY_SUPPORT_WCSDUP__ __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// llround
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* llround */
</span> #define __MP_LEGACY_SUPPORT_LLROUND__ __APPLE__ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070
#endif /* _MACPORTS_LEGACYSUPPORTDEFS_H_ */
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/cmath b/include/cmath
</span><span style='display:block; white-space:pre;color:#808080;'>index 9d067ae..f96e15c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/cmath
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/cmath
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,18 +18,18 @@
</span> #ifndef _MACPORTS_CMATH_H_
#define _MACPORTS_CMATH_H_
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// Include the primary system cmath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system cmath */
</span> #include_next <cmath>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// MP support header
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* MP support header */
</span> #include "MacportsLegacySupport.h"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// llround
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* llround */
</span> #if __MP_LEGACY_SUPPORT_LLROUND__
#ifdef __cplusplus
extern "C" {
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>- // Apparently present in library but header declarations are missing in 10.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Apparently present in library but header declarations are missing in 10.6 */
</span> extern long long int llrint ( double );
extern long long int llrintf ( float );
extern long long int llround ( double );
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,4 +41,4 @@ extern "C" {
</span> #endif
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif // _MACPORTS_CMATH_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* _MACPORTS_CMATH_H_ */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/stdio.h b/include/stdio.h
</span><span style='display:block; white-space:pre;color:#808080;'>index f6ad96f..63428a1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/stdio.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/stdio.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,15 +18,15 @@
</span> #ifndef _MACPORTS_STDIO_H_
#define _MACPORTS_STDIO_H_
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// Include the primary system time.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system time.h */
</span> #include_next <stdio.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// MP support header
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* MP support header */
</span> #include "MacportsLegacySupport.h"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// getline
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* getline */
</span> #if __MP_LEGACY_SUPPORT_GETLINE__
<span style='display:block; white-space:pre;background:#ffe0e0;'>-//#include <unistd.h> /* ssize_t */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #include <unistd.h> */ /* ssize_t */
</span> typedef long ssize_t;
#ifdef __cplusplus
extern "C" {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -38,4 +38,4 @@ extern "C" {
</span> #endif
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif // _MACPORTS_STDIO_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* _MACPORTS_STDIO_H_ */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/string.h b/include/string.h
</span><span style='display:block; white-space:pre;color:#808080;'>index a57b13c..4875d45 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/string.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/string.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,13 +18,13 @@
</span> #ifndef _MACPORTS_STRING_H_
#define _MACPORTS_STRING_H_
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// Include the primary system string.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system string.h */
</span> #include_next <string.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// MP support header
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* MP support header */
</span> #include "MacportsLegacySupport.h"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// strnlen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* strnlen */
</span> #if __MP_LEGACY_SUPPORT_STRNLEN__
#ifdef __cplusplus
extern "C" {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,7 +35,7 @@ extern "C" {
</span> #endif
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// strndup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* strndup */
</span> #if __MP_LEGACY_SUPPORT_STRNDUP__
#ifdef __cplusplus
extern "C" {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,7 +46,7 @@ extern "C" {
</span> #endif
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// memmem
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* memmem */
</span> #if __MP_LEGACY_SUPPORT_MEMMEM__
#ifdef __cplusplus
extern "C" {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,4 +58,4 @@ extern "C" {
</span> #endif
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif // _MACPORTS_STRING_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* _MACPORTS_STRING_H_ */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/sys/fcntl.h b/include/sys/fcntl.h
</span><span style='display:block; white-space:pre;color:#808080;'>index acc4b33..e1fe151 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/sys/fcntl.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/sys/fcntl.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,12 +18,14 @@
</span> #ifndef _MACPORTS_SYSFCNTL_H_
#define _MACPORTS_SYSFCNTL_H_
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// Include the primary system wchar.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system wchar.h */
</span> #include_next <sys/fcntl.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// replace missing O_CLOEXIT definition with 0, which works
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-// but does not replace the full function of that flag
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-// this is the commonly done fix in MacPorts (see gtk3, for example)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* replace missing O_CLOEXEC definition with 0, which works
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * but does not replace the full function of that flag
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * this is the commonly done fix in MacPorts (see gtk3, for example)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> #ifndef O_CLOEXEC
#define O_CLOEXEC 0
#endif
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/sys/mman.h b/include/sys/mman.h
</span><span style='display:block; white-space:pre;color:#808080;'>index eb5d4df..e208744 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/sys/mman.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/sys/mman.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,11 +18,11 @@
</span> #ifndef _MACPORTS_MMAN_H_
#define _MACPORTS_MMAN_H_
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// Include the primary system sys/mman.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system sys/mman.h */
</span> #include_next <sys/mman.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// MAP_ANONYMOUS only exists on 10.11+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-// Prior to that it was called MAP_ANON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* MAP_ANONYMOUS only exists on 10.11+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Prior to that it was called MAP_ANON */
</span> #ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/time.h b/include/time.h
</span><span style='display:block; white-space:pre;color:#808080;'>index 2b63fa1..4aa08f2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/time.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/time.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,22 +18,22 @@
</span> #ifndef _MACPORTS_TIME_H_
#define _MACPORTS_TIME_H_
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// Include the primary system time.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system time.h */
</span> #include_next <time.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// MP support header
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* MP support header */
</span> #include "MacportsLegacySupport.h"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// Legacy implementation of clock_gettime
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Legacy implementation of clock_gettime */
</span> #if __MP_LEGACY_SUPPORT_GETTIME__
#ifndef CLOCK_REALTIME
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// These values are choosen to match use in macOS10.12+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* These values are choosen to match use in macOS10.12+ */
</span> #define CLOCK_REALTIME 0
#define CLOCK_MONOTONIC 6
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// we do not implement these (yet).
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-//#define CLOCK_MONOTONIC_RAW 4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-//#define CLOCK_MONOTONIC_RAW_APPROX 5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* we do not implement these (yet). */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define CLOCK_MONOTONIC_RAW 4 */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* #define CLOCK_MONOTONIC_RAW_APPROX 5 */
</span> #endif
#ifdef __cplusplus
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,6 +47,6 @@ extern int clock_getres ( int clk_id, struct timespec *ts );
</span> }
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif // _MP_LEGACY_SUPPORT_GETTIME__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* _MP_LEGACY_SUPPORT_GETTIME__ */
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif // _MACPORTS_TIME_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* _MACPORTS_TIME_H_ */
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/include/wchar.h b/include/wchar.h
</span><span style='display:block; white-space:pre;color:#808080;'>index ac93292..93e95b8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/include/wchar.h
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/include/wchar.h
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,13 +18,13 @@
</span> #ifndef _MACPORTS_WCHAR_H_
#define _MACPORTS_WCHAR_H_
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// Include the primary system wchar.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* Include the primary system wchar.h */
</span> #include_next <wchar.h>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// MP support header
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* MP support header */
</span> #include "MacportsLegacySupport.h"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-// strnlen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+/* strnlen */
</span> #if __MP_LEGACY_SUPPORT_WCSDUP__
#ifdef __cplusplus
extern "C" {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,4 +35,4 @@ extern "C" {
</span> #endif
#endif
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#endif // _MACPORTS_WCHAR_H_
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#endif /* _MACPORTS_WCHAR_H_ */
</span></pre><pre style='margin:0'>
</pre>