@@@ man wip
[mLib] / codec / codec.3
index ee5a447..6f2ccd8 100644 (file)
@@ -29,30 +29,31 @@ codec \- binary encoding and decoding
 .B "#define CDCF_IGNSPC ..."
 .B "#define CDCF_IGNJUNK ..."
 
+.ta 2n
 .B "enum {"
-.B "\h'4n'CDCERR_OK = ...,"
-.B "\h'4n'CDCERR_INVCH = ...,"
-.B "\h'4n'CDCERR_INVEQPAD = ...,"
-.B "\h'4n'CDCERR_INVZPAD = ..."
+.B "   CDCERR_OK = ...,"
+.B "   CDCERR_INVCH = ...,"
+.B "   CDCERR_INVEQPAD = ...,"
+.B "   CDCERR_INVZPAD = ..."
 .B "};"
 
 .B "typedef struct {"
-.B "\h'4n'const char *name;"
-.ds mT \fBcodec *(*encoder)(
-.BI "\h'4n'\*(mTunsigned " flags ,
-.BI "\h'4n+\w'\*(mT'u'const char *" indent ", unsigned " maxlen );
-.BI "\h'4n'codec *(*decoder)(unsigned " flags );
-.B "\h'4n'...\&"
+.B "   const char *name;"
+.ta 2n +\w'\fBcodec *(*encoder)('u
+.BI "  codec *(*encoder)(unsigned " flags ,
+.BI "          const char *" indent ", unsigned " maxlen );
+.BI "  codec *(*decoder)(unsigned " flags );
+.B "   ...\&"
 .B "} codec_class;"
 
 .B "typedef struct {"
-.B "\h'4n'const codec_ops *ops;"
+.B "   const codec_ops *ops;"
 .B "} codec;"
 
 .B "typedef struct {"
-.B "\h'4n'const codec_class *c;"
-.BI "\h'4n'int (*code)(codec *" c ", const void *" p ", size_t " sz ", dstr *" d );
-.BI "\h'4n'void (*destroy)(codec *" c );
+.B "   const codec_class *c;"
+.BI "  int (*code)(codec *" c ", const void *" p ", size_t " sz ", dstr *" d );
+.BI "  void (*destroy)(codec *" c );
 .B "} codec_ops;"
 
 .B "codec_class null_codec_class;"