Annotation of mandoc/dummy.c, Revision 1.1
1.1 ! kristaps 1: /* $Id: libmdocml.c,v 1.4 2008/11/23 11:05:25 kristaps Exp $ */
! 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,
! 29: const char *buf, size_t sz, void *data)
! 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