From: Mark Wooding Date: Mon, 5 Aug 2019 17:15:43 +0000 (+0100) Subject: doc/sod.sty, etc.: Remove `type' category code. X-Git-Url: https://git.distorted.org.uk/~mdw/sod/commitdiff_plain/ff1f7b214736f24e5f0a2b24c06273a30eca0879 doc/sod.sty, etc.: Remove `type' category code. It was a synonym for `ty', which I prefer, only you have to pick the right one to get cross-references to work, which sucks. --- diff --git a/doc/runtime.tex b/doc/runtime.tex index 59b4d72..83acd31 100644 --- a/doc/runtime.tex +++ b/doc/runtime.tex @@ -43,7 +43,7 @@ calling functions which make use of keyword arguments; see The header file defines two simple structure types, and a function type which will be described later. -\begin{describe}{type}[struct kwval] +\begin{describe}{ty}[struct kwval] {struct kwval \{ \\ \ind const char *kw; \\ const void *val; \-\\ @@ -56,7 +56,7 @@ will be described later. the actual argument type.) \end{describe} -\begin{describe}{type}[struct kwtab] +\begin{describe}{ty}[struct kwtab] {struct kwtab \{ \\ \ind const struct kwval *v; \\ size_t n; \-\\ @@ -528,7 +528,7 @@ call @|kw_unknown|. message to the standard error stream and calls \man{abort}{3}. \end{describe} -\begin{describe}{type}[kw_unkhookfn] +\begin{describe}{ty}[kw_unkhookfn] {typedef void kw_unkhookfn(const char *@, const char *@);} The @|kw_unkhookfn| type is the type of unknown-keyword handler functions. diff --git a/doc/sod.sty b/doc/sod.sty index a63cb73..f5a43e4 100644 --- a/doc/sod.sty +++ b/doc/sod.sty @@ -234,7 +234,6 @@ \definedescribecategory{cls}{class} \definedescribecategory{rst}{restart} \definedescribecategory{ty}{type} -\definedescribecategory{type}{type} \definedescribecategory{mac}{#1{macro}} \definedescribecategory{feat}{feature macro} \definedescribecategory{lmac}{local #1{macro}} diff --git a/doc/structures.tex b/doc/structures.tex index d24fbeb..242d199 100644 --- a/doc/structures.tex +++ b/doc/structures.tex @@ -51,7 +51,7 @@ structure. Instance chains contain slots and vtable pointers, as described below. All instances have the basic structure of a @|struct sod_instance|. -\begin{describe}{type}[struct sod_instance] +\begin{describe}{ty}[struct sod_instance] {struct sod_instance \{ \\ \ind const struct sod_vtable *_vt; \-\\ \};} @@ -63,7 +63,7 @@ instances have the basic structure of a @|struct sod_instance|. \end{description} \end{describe} -\begin{describe}{type}[struct sod_vtable] +\begin{describe}{ty}[struct sod_vtable] {struct sod_vtable \{ \\ \ind const SodClass *_class; \\ size_t _base; \-\\ @@ -301,7 +301,7 @@ involved at the top of the class/metaclass graph (see \end{description} \end{describe} -\begin{describe}{type}[struct sod_chain] +\begin{describe}{ty}[struct sod_chain] {struct sod_chain \{ \\ \ind size_t n_classes; \\ const SodClass *const *classes; \\