=================================================================== RCS file: /cvs/mandoc/mandoc.c,v retrieving revision 1.65 retrieving revision 1.66 diff -u -p -r1.65 -r1.66 --- mandoc/mandoc.c 2012/05/31 22:38:16 1.65 +++ mandoc/mandoc.c 2012/06/12 20:21:04 1.66 @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.65 2012/05/31 22:38:16 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.66 2012/06/12 20:21:04 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012 Ingo Schwarze @@ -601,32 +601,6 @@ mandoc_eos(const char *p, size_t sz, int enclosed) } return(found && !enclosed); -} - -/* - * Find out whether a line is a macro line or not. If it is, adjust the - * current position and return one; if it isn't, return zero and don't - * change the current position. - */ -int -mandoc_getcontrol(const char *cp, int *ppos) -{ - int pos; - - pos = *ppos; - - if ('\\' == cp[pos] && '.' == cp[pos + 1]) - pos += 2; - else if ('.' == cp[pos] || '\'' == cp[pos]) - pos++; - else - return(0); - - while (' ' == cp[pos] || '\t' == cp[pos]) - pos++; - - *ppos = pos; - return(1); } /*