diff help2html/uintarray.c @ 9:60b08b68c750

Switch to static inline as an expedient build fix. Should probably set this up with working C99 inline but for the moment I don't have the energy.
author David A. Holland
date Mon, 30 May 2022 23:56:45 -0400
parents 13d2b8934445
children
line wrap: on
line diff
--- a/help2html/uintarray.c	Mon May 30 23:51:43 2022 -0400
+++ b/help2html/uintarray.c	Mon May 30 23:56:45 2022 -0400
@@ -33,8 +33,13 @@
  * I wish there were a way to check that these were the same as the
  * inline versions, but apparently allowing such things to diverge is
  * a feature of C99. Bleh.
+ *
+ * Update: it all broke anyway, so I've switched to static inline as
+ * an expedient. Thus, at least for the time being, we don't need the
+ * extra copies.
  */
 
+#if 0
 unsigned uintarray_num(const struct uintarray *a) {
    return a->num;
 }
@@ -48,6 +53,7 @@
    assert(ix < a->num);
    a->v[ix] = val;
 }
+#endif
 
 ////////////////////////////////////////////////////////////