version 1.2, 2010/01/01 17:14:28 |
version 1.4, 2010/06/19 20:46:28 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* 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 |
|
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
|
|
|
#include "mandoc.h" |
#include "libman.h" |
#include "libman.h" |
|
|
|
|
Line 57 man_args(struct man *m, int line, int *pos, char *buf, |
|
Line 58 man_args(struct man *m, int line, int *pos, char *buf, |
|
} |
} |
|
|
if (0 == buf[*pos]) { |
if (0 == buf[*pos]) { |
if ( ! man_pwarn(m, line, *pos, WTQUOTE)) |
if ( ! man_pmsg(m, line, *pos, MANDOCERR_BADQUOTE)) |
return(ARGS_ERROR); |
return(ARGS_ERROR); |
return(ARGS_QWORD); |
return(ARGS_QWORD); |
} |
} |
Line 71 man_args(struct man *m, int line, int *pos, char *buf, |
|
Line 72 man_args(struct man *m, int line, int *pos, char *buf, |
|
(*pos)++; |
(*pos)++; |
|
|
if (0 == buf[*pos]) |
if (0 == buf[*pos]) |
if ( ! man_pwarn(m, line, *pos, WTSPACE)) |
if ( ! man_pmsg(m, line, *pos, MANDOCERR_EOLNSPACE)) |
return(ARGS_ERROR); |
return(ARGS_ERROR); |
|
|
return(ARGS_QWORD); |
return(ARGS_QWORD); |
Line 95 man_args(struct man *m, int line, int *pos, char *buf, |
|
Line 96 man_args(struct man *m, int line, int *pos, char *buf, |
|
(*pos)++; |
(*pos)++; |
|
|
if (0 == buf[*pos]) |
if (0 == buf[*pos]) |
if ( ! man_pwarn(m, line, *pos, WTSPACE)) |
if ( ! man_pmsg(m, line, *pos, MANDOCERR_EOLNSPACE)) |
return(ARGS_ERROR); |
return(ARGS_ERROR); |
|
|
return(ARGS_WORD); |
return(ARGS_WORD); |