[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.17

version 1.13, 2009/11/02 06:22:46 version 1.17, 2010/05/08 07:30:19
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;
         }          }
Line 123  mdoc_atosec(const char *p)
Line 127  mdoc_atosec(const char *p)
   
 /* FIXME: move this into an editable .in file. */  /* FIXME: move this into an editable .in file. */
 size_t  size_t
 mdoc_macro2len(int macro)  mdoc_macro2len(enum mdoct macro)
 {  {
   
         switch (macro) {          switch (macro) {

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

CVSweb