version 1.19, 2010/05/12 08:41:17 |
version 1.20, 2010/05/15 08:54:04 |
Line 57 static const char * const secnames[SEC__MAX] = { |
|
Line 57 static const char * const secnames[SEC__MAX] = { |
|
* FIXME: this is repeated in print_text() (html.c) and term_word() |
* FIXME: this is repeated in print_text() (html.c) and term_word() |
* (term.c). |
* (term.c). |
*/ |
*/ |
int |
enum mdelim |
mdoc_iscdelim(char p) |
mdoc_iscdelim(char p) |
{ |
{ |
|
|
switch (p) { |
switch (p) { |
case('|'): |
|
/* FALLTHROUGH */ |
|
case('('): |
case('('): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case('['): |
case('['): |
return(1); |
return(DELIM_OPEN); |
|
case('|'): |
|
return(DELIM_MIDDLE); |
case('.'): |
case('.'): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(','): |
case(','): |
Line 83 mdoc_iscdelim(char p) |
|
Line 83 mdoc_iscdelim(char p) |
|
case(')'): |
case(')'): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case(']'): |
case(']'): |
return(2); |
return(DELIM_CLOSE); |
default: |
default: |
break; |
break; |
} |
} |
|
|
return(0); |
return(DELIM_NONE); |
} |
} |
|
|
|
|
int |
enum mdelim |
mdoc_isdelim(const char *p) |
mdoc_isdelim(const char *p) |
{ |
{ |
|
|
Line 106 mdoc_isdelim(const char *p) |
|
Line 106 mdoc_isdelim(const char *p) |
|
* is treated in exactly the same way as the vertical bar. This |
* is treated in exactly the same way as the vertical bar. This |
* is the only function that checks for this. |
* is the only function that checks for this. |
*/ |
*/ |
return(0 == strcmp(p, "\\*(Ba")); |
return(strcmp(p, "\\*(Ba") ? DELIM_NONE : DELIM_MIDDLE); |
} |
} |
|
|
|
|