version 1.31, 2009/10/28 19:21:59 |
version 1.34, 2010/03/29 19:28:04 |
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
|
#ifdef HAVE_CONFIG_H |
|
#include "config.h" |
|
#endif |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <assert.h> |
#include <assert.h> |
Line 268 mdoc_argv(struct mdoc *m, int line, int tok, |
|
Line 272 mdoc_argv(struct mdoc *m, int line, int tok, |
|
return(ARGV_ERROR); |
return(ARGV_ERROR); |
|
|
if (NULL == (arg = *v)) |
if (NULL == (arg = *v)) |
arg = mandoc_calloc(1, sizeof(struct mdoc_arg)); |
arg = *v = mandoc_calloc(1, sizeof(struct mdoc_arg)); |
|
|
arg->argc++; |
arg->argc++; |
arg->argv = mandoc_realloc |
arg->argv = mandoc_realloc |
Line 397 args(struct mdoc *m, int line, int *pos, |
|
Line 401 args(struct mdoc *m, int line, int *pos, |
|
* follows the pattern of [[::delim::][ ]+]+. |
* follows the pattern of [[::delim::][ ]+]+. |
*/ |
*/ |
|
|
if ((fl & ARGS_DELIM) && mdoc_iscdelim(buf[*pos])) { |
if ((fl & ARGS_DELIM) && mdoc_iscdelim(buf[*pos]) > 1) { |
for (i = *pos; buf[i]; ) { |
for (i = *pos; buf[i]; ) { |
if ( ! mdoc_iscdelim(buf[i])) |
if ( mdoc_iscdelim(buf[i]) < 2) |
break; |
break; |
i++; |
i++; |
if (0 == buf[i] || ' ' != buf[i]) |
if (0 == buf[i] || ' ' != buf[i]) |