source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Use tbl_span line number for warnings/errors.
@ 2011-02-06 22:05 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-02-06 22:05 UTC (permalink / raw)
  To: source

Log Message:
-----------
Use tbl_span line number for warnings/errors.

Modified Files:
--------------
    mdocml:
        man.c
        mdoc.c

Revision Data
-------------
Index: man.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -Lman.c -Lman.c -u -p -r1.98 -r1.99
--- man.c
+++ man.c
@@ -371,7 +371,7 @@ man_addspan(struct man *m, const struct 
 	assert( ! (MAN_HALT & m->flags));
 	if ( ! man_span_alloc(m, sp))
 		return(0);
-	return(man_descope(m, 0, 0));
+	return(man_descope(m, sp->line, 0));
 }
 
 static int
Index: mdoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -Lmdoc.c -Lmdoc.c -u -p -r1.178 -r1.179
--- mdoc.c
+++ mdoc.c
@@ -233,8 +233,7 @@ mdoc_addspan(struct mdoc *m, const struc
 	/* No text before an initial macro. */
 
 	if (SEC_NONE == m->lastnamed) {
-		/* FIXME: grab from span. */
-		mdoc_pmsg(m, 0, 0, MANDOCERR_NOTEXT);
+		mdoc_pmsg(m, sp->line, 0, MANDOCERR_NOTEXT);
 		return(1);
 	}
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-06 22:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06 22:05 mdocml: Use tbl_span line number for warnings/errors kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).