version 1.59, 2009/03/08 18:02:36 |
version 1.64, 2009/03/09 14:19:59 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#ifdef __linux__ |
|
#include <time.h> |
|
#endif |
|
|
|
|
#include "private.h" |
|
|
/* |
/* |
* This has scanning/parsing routines, each of which extract a macro and |
* This has scanning/parsing routines, each of which extract a macro and |
* its arguments and parameters, then know how to progress to the next |
* its arguments and parameters, then know how to progress to the next |
* macro. |
* macro. |
*/ |
*/ |
|
|
#include "private.h" |
|
|
|
static int macro_obsolete(MACRO_PROT_ARGS); |
static int macro_obsolete(MACRO_PROT_ARGS); |
static int macro_constant(MACRO_PROT_ARGS); |
static int macro_constant(MACRO_PROT_ARGS); |
static int macro_constant_scoped(MACRO_PROT_ARGS); |
static int macro_constant_scoped(MACRO_PROT_ARGS); |
Line 181 const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { |
|
Line 178 const struct mdoc_macro __mdoc_macros[MDOC_MAX] = { |
|
{ macro_obsolete, 0 }, /* Fr */ |
{ macro_obsolete, 0 }, /* Fr */ |
{ macro_constant, 0 }, /* Ud */ |
{ macro_constant, 0 }, /* Ud */ |
{ macro_constant, 0 }, /* Lb */ |
{ macro_constant, 0 }, /* Lb */ |
|
{ macro_constant_delimited, MDOC_CALLABLE | MDOC_PARSED }, /* Ap */ |
|
{ macro_text, 0 }, /* Lp */ |
|
{ macro_text, MDOC_PARSED }, /* Lk */ |
|
{ macro_text, MDOC_PARSED }, /* Mt */ |
}; |
}; |
|
|
const struct mdoc_macro * const mdoc_macros = __mdoc_macros; |
const struct mdoc_macro * const mdoc_macros = __mdoc_macros; |
Line 238 scopewarn(struct mdoc *mdoc, enum mdoc_type type, |
|
Line 239 scopewarn(struct mdoc *mdoc, enum mdoc_type type, |
|
n = t = "<root>"; |
n = t = "<root>"; |
tt = "block"; |
tt = "block"; |
|
|
switch (p->type) { |
switch (type) { |
case (MDOC_BODY): |
case (MDOC_BODY): |
tt = "multi-line"; |
tt = "multi-line"; |
break; |
break; |
Line 1204 macro_constant_delimited(MACRO_PROT_ARGS) |
|
Line 1205 macro_constant_delimited(MACRO_PROT_ARGS) |
|
*/ |
*/ |
|
|
switch (tok) { |
switch (tok) { |
|
case (MDOC_Ap): |
|
/* FALLTHROUGH */ |
case (MDOC_No): |
case (MDOC_No): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case (MDOC_Ns): |
case (MDOC_Ns): |