/* $Id: tbl.c,v 1.40 2015/10/06 18:32:20 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2015 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "config.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "mandoc.h"
#include "mandoc_aux.h"
#include "libmandoc.h"
#include "libroff.h"
enum rofferr
{
const char *cp;
int active;
/*
* In the options section, proceed to the layout section
* after a semicolon, or right away if there is no semicolon.
* Ignore semicolons in arguments.
*/
active = 1;
switch (*cp) {
case '(':
active = 0;
continue;
case ')':
active = 1;
continue;
case ';':
if (active)
break;
continue;
default:
continue;
}
break;
}
if (*cp == ';') {
if (p[pos] == '\0')
return ROFF_IGN;
}
}
/* Process the other section types. */
case TBL_PART_LAYOUT:
return ROFF_IGN;
case TBL_PART_CDATA:
default:
break;
}
return ROFF_TBL;
}
struct tbl_node *
{
return tbl;
}
void
{
}
}
}
}
}
void
{
}
const struct tbl_span *
{
: tbl->first_span;
if (span)
return span;
}
int
{
return 0;
}
return 1;
}