version 1.71, 2010/05/15 18:35:14 |
version 1.75, 2010/05/16 00:04:46 |
Line 574 pset(const char *buf, int pos, struct curparse *curp, |
|
Line 574 pset(const char *buf, int pos, struct curparse *curp, |
|
* default to -man, which is more lenient. |
* default to -man, which is more lenient. |
*/ |
*/ |
|
|
if (buf[0] == '.') { |
if ('.' == buf[0] || '\'' == buf[0]) { |
for (i = 1; buf[i]; i++) |
for (i = 1; buf[i]; i++) |
if (' ' != buf[i] && '\t' != buf[i]) |
if (' ' != buf[i] && '\t' != buf[i]) |
break; |
break; |
Line 773 mwarn(void *arg, int line, int col, const char *msg) |
|
Line 773 mwarn(void *arg, int line, int col, const char *msg) |
|
return(1); |
return(1); |
} |
} |
|
|
|
static const char * const mandocerrs[MANDOCERR_MAX] = { |
|
"ok", |
|
"multi-line scope open on exit", |
|
"request for scope closure when no matching scope is open", |
|
"line arguments will be lost", |
|
"memory exhausted" |
|
}; |
|
|
/* |
/* |
* XXX: this is experimental code that will eventually become the |
* XXX: this is experimental code that will eventually become the |
* generic means of covering all warnings and errors! |
* generic means of covering all warnings and errors! |
Line 781 mwarn(void *arg, int line, int col, const char *msg) |
|
Line 789 mwarn(void *arg, int line, int col, const char *msg) |
|
static int |
static int |
mmsg(enum mandocerr t, void *arg, int ln, int col, const char *msg) |
mmsg(enum mandocerr t, void *arg, int ln, int col, const char *msg) |
{ |
{ |
|
#if 0 |
struct curparse *cp; |
struct curparse *cp; |
|
|
cp = (struct curparse *)arg; |
cp = (struct curparse *)arg; |
|
|
fprintf(stderr, "%s:%d:%d: %s\n", cp->file, ln, col + 1, msg); |
fprintf(stderr, "%s:%d:%d: %s", cp->file, |
|
ln, col + 1, mandocerrs[t]); |
|
|
|
if (msg) |
|
fprintf(stderr, ": %s", msg); |
|
|
|
fputc('\n', stderr); |
|
#endif |
return(1); |
return(1); |
} |
} |