[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.16 and 1.18

version 1.16, 2010/04/03 12:46:35 version 1.18, 2010/05/09 21:06:50
Line 70  mdoc_iscdelim(char p)
Line 70  mdoc_iscdelim(char p)
 {  {
   
         switch (p) {          switch (p) {
         case('|'): /* FIXME! */          case('|'):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case('('):          case('('):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
Line 104  int
Line 104  int
 mdoc_isdelim(const char *p)  mdoc_isdelim(const char *p)
 {  {
   
         if (0 == *p)          if ('\0' == p[0])
                 return(0);                  return(0);
         if (0 != *(p + 1))          if ('\0' == p[1])
                 return(0);                  return(mdoc_iscdelim(p[0]));
         return(mdoc_iscdelim(*p));  
           /*
            * XXX; account for groff bubu where the \*(Ba reserved string
            * is treated in exactly the same way as the vertical bar.  This
            * is the only function that checks for this.
            */
           return(0 == strcmp(p, "\\*(Ba"));
 }  }
   
   
Line 127  mdoc_atosec(const char *p)
Line 133  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.16  
changed lines
  Added in v.1.18

CVSweb