[BACK]Return to dummy.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/dummy.c, Revision 1.2

1.2     ! kristaps    1: /* $Id: dummy.c,v 1.1 2008/11/23 16:53:18 kristaps Exp $ */
1.1       kristaps    2: /*
                      3:  * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
                      4:  *
                      5:  * Permission to use, copy, modify, and distribute this software for any
                      6:  * purpose with or without fee is hereby granted, provided that the
                      7:  * above copyright notice and this permission notice appear in all
                      8:  * copies.
                      9:  *
                     10:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
                     11:  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
                     12:  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
                     13:  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
                     14:  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
                     15:  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
                     16:  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
                     17:  * PERFORMANCE OF THIS SOFTWARE.
                     18:  */
                     19: #include <assert.h>
                     20: #include <stdlib.h>
                     21:
                     22: #include "libmdocml.h"
                     23: #include "private.h"
                     24:
                     25:
                     26: int
                     27: md_line_dummy(const struct md_args *args,
                     28:                struct md_mbuf *out, const struct md_rbuf *in,
1.2     ! kristaps   29:                char *buf, size_t sz, void *data)
1.1       kristaps   30: {
                     31:
                     32:        assert(buf);
                     33:        assert(out);
                     34:        assert(in);
                     35:        assert(args);
                     36:        assert(NULL == data);
                     37:
                     38:        if ( ! md_buf_puts(out, buf, sz))
                     39:                return(0);
                     40:        if ( ! md_buf_putchar(out, '\n'))
                     41:                return(0);
                     42:
                     43:        return(1);
                     44: }

CVSweb