=================================================================== RCS file: /cvs/mandoc/mdoc.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -p -r1.20 -r1.21 --- mandoc/mdoc.c 2009/01/07 15:53:00 1.20 +++ mandoc/mdoc.c 2009/01/07 15:57:14 1.21 @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.20 2009/01/07 15:53:00 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.21 2009/01/07 15:57:14 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -312,7 +312,7 @@ mdoc_parseln(struct mdoc *mdoc, int line, char *buf) while (buf[i] && isspace(buf[i])) i++; - if ( ! mdoc_macro(mdoc, c, 1, &i, buf)) { + if ( ! mdoc_macro(mdoc, c, line, 1, &i, buf)) { mdoc->flags |= MDOC_HALT; return(0); } @@ -358,7 +358,8 @@ mdoc_warn(struct mdoc *mdoc, int tok, int pos, enum md int -mdoc_macro(struct mdoc *mdoc, int tok, int ppos, int *pos, char *buf) +mdoc_macro(struct mdoc *mdoc, int tok, + int line, int ppos, int *pos, char *buf) { if ( ! (MDOC_PROLOGUE & mdoc_macros[tok].flags) && @@ -375,7 +376,7 @@ mdoc_macro(struct mdoc *mdoc, int tok, int ppos, int * return(0); } - return((*mdoc_macros[tok].fp)(mdoc, tok, ppos, pos, buf)); + return((*mdoc_macros[tok].fp)(mdoc, tok, line, ppos, pos, buf)); }