From 7091b415bb41b9d7098a24cfe0a577299622f5db Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Mon, 19 Mar 2012 09:36:44 -0700 Subject: [PATCH] Fix various documentation formatting regressions. --- configure.ac | 17 +++++++++++++---- doc/jemalloc.xml.in | 38 ++++++++++++++++++++------------------ 2 files changed, 33 insertions(+), 22 deletions(-) diff --git a/configure.ac b/configure.ac index 47d5784b..4a068d09 100644 --- a/configure.ac +++ b/configure.ac @@ -87,14 +87,23 @@ AC_SUBST([MANDIR]) dnl Support for building documentation. AC_PATH_PROG([XSLTPROC], [xsltproc], , [$PATH]) +if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then + DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" +elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then + DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets" +else + dnl Documentation building will fail if this default gets used. + DEFAULT_XSLROOT="" +fi AC_ARG_WITH([xslroot], - [AS_HELP_STRING([--with-xslroot=], [XSL stylesheet root path])], + [AS_HELP_STRING([--with-xslroot=], [XSL stylesheet root path])], [ if test "x$with_xslroot" = "xno" ; then - XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" + XSLROOT="${DEFAULT_XSLROOT}" else XSLROOT="${with_xslroot}" -fi, - XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" +fi +], + XSLROOT="${DEFAULT_XSLROOT}" ) AC_SUBST([XSLROOT]) diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in index ffc6c94e..3cbc851f 100644 --- a/doc/jemalloc.xml.in +++ b/doc/jemalloc.xml.in @@ -377,7 +377,7 @@ for (i = 0; i < nbins; i++) { sets *rsize to the real size of the allocation if rsize is not NULL. Behavior is undefined if size is - 0. + 0. The rallocm function resizes the allocation at *ptr to be at least @@ -390,7 +390,7 @@ for (i = 0; i < nbins; i++) { language="C">size + extra) bytes, though inability to allocate the extra byte(s) will not by itself result in failure. Behavior is - undefined if size is 0, or if + undefined if size is 0, or if (size + extra > SIZE_T_MAX). @@ -409,7 +409,7 @@ for (i = 0; i < nbins; i++) { *rsize to the real size of the allocation that would result from the equivalent allocm function call. Behavior is undefined if - size is 0. + size is 0. @@ -516,53 +516,55 @@ for (i = 0; i < nbins; i++) { Size classes - - - - + + + + Category - Subcategory + Spacing Size - Small - Tiny + Small + lg [8] - 16-spaced + 16 [16, 32, 48, ..., 128] - 32-spaced + 32 [160, 192, 224, 256] - 64-spaced + 64 [320, 384, 448, 512] - 128-spaced + 128 [640, 768, 896, 1024] - 256-spaced + 256 [1280, 1536, 1792, 2048] - 512-spaced + 512 [2560, 3072, 3584] - Large + Large + 4 KiB [4 KiB, 8 KiB, 12 KiB, ..., 4072 KiB] - Huge + Huge + 4 MiB [4 MiB, 8 MiB, 12 MiB, ...]