[BACK]Return to mdoc_strings.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/mdoc_strings.c between version 1.13 and 1.16

version 1.13, 2009/11/02 06:22:46 version 1.16, 2010/04/03 12:46:35
Line 14 
Line 14 
  * 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 57  static const struct mdoc_secname secnames[SECNAME_MAX]
Line 61  static const struct mdoc_secname secnames[SECNAME_MAX]
 };  };
   
   
   /*
    * FIXME: this is repeated in print_text() (html.c) and term_word()
    * (term.c).
    */
 int  int
 mdoc_iscdelim(char p)  mdoc_iscdelim(char p)
 {  {
   
         switch (p) {          switch (p) {
         case('|'):          case('|'): /* FIXME! */
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
           case('('):
                   /* FALLTHROUGH */
           case('['):
                   return(1);
         case('.'):          case('.'):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case(','):          case(','):
Line 76  mdoc_iscdelim(char p)
Line 88  mdoc_iscdelim(char p)
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case('!'):          case('!'):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case('('):  
                 /* FALLTHROUGH */  
         case(')'):          case(')'):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case('['):  
                 /* FALLTHROUGH */  
         case(']'):          case(']'):
                 /* FALLTHROUGH */                  return(2);
         case('{'):  
                 /* FALLTHROUGH */  
         case('}'):  
                 return(1);  
         default:          default:
                 break;                  break;
         }          }

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

CVSweb