=================================================================== RCS file: /cvs/pod2mdoc/pod2mdoc.c,v retrieving revision 1.54 retrieving revision 1.55 diff -u -p -r1.54 -r1.55 --- pod2mdoc/pod2mdoc.c 2015/02/19 15:26:45 1.54 +++ pod2mdoc/pod2mdoc.c 2015/02/19 16:34:32 1.55 @@ -1,4 +1,4 @@ -/* $Id: pod2mdoc.c,v 1.54 2015/02/19 15:26:45 schwarze Exp $ */ +/* $Id: pod2mdoc.c,v 1.55 2015/02/19 16:34:32 schwarze Exp $ */ /* * Copyright (c) 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015 Ingo Schwarze @@ -106,6 +106,32 @@ enum cmd { CMD_CUT, CMD__MAX }; + +static void command(struct state *, const char *, size_t, size_t); +static void dofile(const struct args *, const char *, + const struct tm *, char *, size_t); +static void donamenm(struct state *, const char *, size_t *, size_t); +static void dopar(struct state *, char *, size_t, size_t); +static void dosynopsisfl(const char *, size_t *, size_t); +static int dosynopsisop(struct state *, const char *, size_t *, + size_t, size_t *); +static int formatcode(struct state *, const char *, size_t *, + size_t, int, int); +static void formatcodeln(struct state *, const char *, const char *, + size_t *, size_t, int); +static void formatescape(struct state *, const char *, size_t *, size_t); +static int hasmatch(const char *, size_t, size_t); +static void ordinary(struct state *, const char *, size_t, size_t); +static void outbuf_addchar(struct state *); +static void outbuf_addstr(struct state *, const char *); +static void outbuf_flush(struct state *); +static void outbuf_grow(struct state *, size_t); +static enum list listguess(const char *, size_t, size_t); +static void mdoc_newln(struct state *); +static int readfile(const struct args *, const char *); +static void register_type(const char *); +static int trylink(const char *, size_t *, size_t, size_t); +static void verbatim(struct state *, char *, size_t, size_t); static const char *const cmds[CMD__MAX] = { "pod", /* CMD_POD */