version 1.9, 2017/06/14 22:50:37 |
version 1.10, 2018/08/10 20:40:43 |
|
|
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
/* |
/* |
* Copyright (c) 2010, 2017 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2010, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* 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 <assert.h> |
#include <assert.h> |
#include <stddef.h> |
#include <stddef.h> |
|
#include <string.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
#include "roff.h" |
#include "roff.h" |
|
|
static void |
static void |
roff_valid_ft(ROFF_VALID_ARGS) |
roff_valid_ft(ROFF_VALID_ARGS) |
{ |
{ |
char *cp; |
const char *cp; |
|
|
if (n->child == NULL) { |
if (n->child == NULL) { |
man->next = ROFF_NEXT_CHILD; |
man->next = ROFF_NEXT_CHILD; |
|
|
return; |
return; |
break; |
break; |
case 'C': |
case 'C': |
if (cp[1] == 'W' && cp[2] == '\0') |
if (cp[1] != '\0' && cp[2] == '\0' && |
|
strchr("BIRW", cp[1]) != NULL) |
return; |
return; |
break; |
break; |
default: |
default: |