source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: Mention the requirement to link against zlib.
@ 2025-02-25 17:04 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2025-02-25 17:04 UTC (permalink / raw)
  To: source

Log Message:
-----------
Mention the requirement to link against zlib.
Suggested by James K. Lowden <jklowden at schemamania dot org>.
While here, mention that API stability is not a goal.

Modified Files:
--------------
    mandoc:
        mandoc.3

Revision Data
-------------
Index: mandoc.3
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mandoc.3,v
diff -Lmandoc.3 -Lmandoc.3 -u -p -r1.45 -r1.46
--- mandoc.3
+++ mandoc.3
@@ -143,6 +143,37 @@ or invoke
 .Fn mparse_reset
 and go back to step 2 to parse new files.
 .El
+.Pp
+The design goals of the
+.Nm mandoc
+library are limited to providing the functionality required by the
+.Xr mandoc 1
+program.
+Consequently, the functions documented in the present manual page
+do not aim for API stability.
+Any third-party program using them typically requires adjustments after every
+.Nm mandoc
+release.
+Linking such a program requires
+.Fl lz
+because
+.Fn mparse_readfd
+calls
+.Xr gzdopen 3 ,
+.Xr gzread 3 ,
+.Xr gzerror 3 ,
+and
+.Xr gzclose 3 .
+For
+.Xr mandoc 1
+itself, the
+.Pa ./configure
+script automatically adds
+.Fl lz
+to the
+.Ev LDADD
+.Xr make 1
+variable.
 .Sh REFERENCE
 This section documents the functions, types, and variables available
 via
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-25 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-25 17:04 mandoc: Mention the requirement to link against zlib schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).