From 40cde0918671af45575820608cdf0cf2aa1faa80 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 6 Jan 2011 13:45:47 +0000 Subject: [PATCH] Remove delims from struct tbl (not used anywhere and never will be). --- mandoc.h | 3 +-- tbl_opts.c | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mandoc.h b/mandoc.h index 7da2e541..9dd448e6 100644 --- a/mandoc.h +++ b/mandoc.h @@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.48 2011/01/04 15:02:00 kristaps Exp $ */ +/* $Id: mandoc.h,v 1.49 2011/01/06 13:45:47 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * @@ -152,7 +152,6 @@ struct tbl { char tab; /* cell-separator */ char decimal; /* decimal point */ int linesize; - char delims[2]; /* FIXME: deprecate */ int opts; #define TBL_OPT_CENTRE (1 << 0) #define TBL_OPT_EXPAND (1 << 1) diff --git a/tbl_opts.c b/tbl_opts.c index 8500b74d..06338970 100644 --- a/tbl_opts.c +++ b/tbl_opts.c @@ -1,4 +1,4 @@ -/* $Id: tbl_opts.c,v 1.5 2011/01/02 10:10:57 kristaps Exp $ */ +/* $Id: tbl_opts.c,v 1.6 2011/01/06 13:45:47 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -102,12 +102,12 @@ arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) switch (key) { case (KEY_DELIM): - if ('\0' == (tbl->opts.delims[0] = p[(*pos)++])) { + if ('\0' == p[(*pos)++]) { TBL_MSG(tbl, MANDOCERR_TBL, ln, *pos - 1); return(0); } - if ('\0' == (tbl->opts.delims[1] = p[(*pos)++])) { + if ('\0' == p[(*pos)++]) { TBL_MSG(tbl, MANDOCERR_TBL, ln, *pos - 1); return(0); } -- 2.47.1