[BACK]Return to mdoc_strings.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/Attic/mdoc_strings.c between version 1.15 and 1.16

version 1.15, 2010/05/14 14:47:44 version 1.16, 2010/05/15 12:30:59
Line 53 
Line 53 
  * 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 79 
Line 79 
         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 102 
Line 102 
          * 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);
 }  }
   
   

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16