version 1.76, 2013/10/17 20:54:58 |
version 1.81, 2014/03/30 19:47:48 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2012 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> |
|
* Copyright (c) 2013 Franco Fichtner <franco@lastsummer.de> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 90 const struct man_macro __man_macros[MAN_MAX] = { |
|
Line 91 const struct man_macro __man_macros[MAN_MAX] = { |
|
{ in_line_eoln, MAN_BSCOPE }, /* EE */ |
{ in_line_eoln, MAN_BSCOPE }, /* EE */ |
{ blk_exp, MAN_BSCOPE | MAN_EXPLICIT }, /* UR */ |
{ blk_exp, MAN_BSCOPE | MAN_EXPLICIT }, /* UR */ |
{ blk_close, 0 }, /* UE */ |
{ blk_close, 0 }, /* UE */ |
|
{ in_line_eoln, 0 }, /* ll */ |
}; |
}; |
|
|
const struct man_macro * const man_macros = __man_macros; |
const struct man_macro * const man_macros = __man_macros; |
Line 298 blk_close(MACRO_PROT_ARGS) |
|
Line 300 blk_close(MACRO_PROT_ARGS) |
|
if (ntok == nn->tok && MAN_BLOCK == nn->type) |
if (ntok == nn->tok && MAN_BLOCK == nn->type) |
break; |
break; |
|
|
if (NULL != nn) |
if (NULL == nn) { |
man_unscope(man, nn, MANDOCERR_MAX); |
|
else |
|
man_pmsg(man, line, ppos, MANDOCERR_NOSCOPE); |
man_pmsg(man, line, ppos, MANDOCERR_NOSCOPE); |
|
if ( ! rew_scope(MAN_BLOCK, man, MAN_PP)) |
|
return(0); |
|
} else |
|
man_unscope(man, nn, MANDOCERR_MAX); |
|
|
return(1); |
return(1); |
} |
} |
Line 428 in_line_eoln(MACRO_PROT_ARGS) |
|
Line 432 in_line_eoln(MACRO_PROT_ARGS) |
|
if ( ! man_word_alloc(man, line, la, p)) |
if ( ! man_word_alloc(man, line, la, p)) |
return(0); |
return(0); |
} |
} |
|
|
|
/* |
|
* Append MAN_EOS in case the last snipped argument |
|
* ends with a dot, e.g. `.IR syslog (3).' |
|
*/ |
|
|
|
if (n != man->last && |
|
mandoc_eos(man->last->string, strlen(man->last->string))) |
|
man->last->flags |= MAN_EOS; |
|
|
/* |
/* |
* If no arguments are specified and this is MAN_SCOPED (i.e., |
* If no arguments are specified and this is MAN_SCOPED (i.e., |