"Anthony J. Bentley" <[email protected]> wrote:
> Hi,
>
> Qman is a modern, full-featured manual page viewer featuring hyperlinks,
> web browser like navigation, a table of contents for each page, incremental
> search, on-line help, and more. It also strives to be fast and tiny, so that
> it can be used everywhere. For this reason, it's been written in plain C and
> has only minimal dependencies.
"minimal dependencies" -> python, lol :)
> Also attached is a dependency, devel/py-cogapp:
>
>
> Cog is a content generation tool. It lets you use small bits of Python code
> in otherwise static files to generate whatever text you need.
>
> Cog transforms files in a very simple way: it finds chunks of Python code
> embedded in them, executes the Python code, and inserts its output back into
> the original file. The file can contain whatever text you like around the
> Python code.
>
>
> ok?
both looks okay to me, and works. i didn't understand why it complains
about mvwaddnwstr() not being declared, but it links and works.
i'd just suggest to throw this patch in too, or i can commit it after
you import. in any case, okay op@ to import it :)
use reallocarray from libc
Index: src/util.c
--- src/util.c.orig
+++ src/util.c
@@ -49,7 +49,7 @@ void *xcalloc(size_t nmemb, size_t size) {
}
void *xreallocarray(void *ptr, size_t nmemb, size_t size) {
-#if defined(__GLIBC__) && (defined(_DEFAULT_SOURCE) || defined(_GNU_SOURCE))
+#if defined(__OpenBSD__)
void *const res = reallocarray(ptr, nmemb, size);
#else
size_t total = nmemb * size;