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

Diff for /src/usr.bin/mandoc/chars.c between version 1.9 and 1.10

version 1.9, 2010/07/25 18:05:54 version 1.10, 2010/07/31 21:43:07
Line 29 
Line 29 
         struct ln        *next;          struct ln        *next;
         const char       *code;          const char       *code;
         const char       *ascii;          const char       *ascii;
         size_t            asciisz;  
         int               unicode;          int               unicode;
         int               type;          int               type;
 #define CHARS_CHAR       (1 << 0)  #define CHARS_CHAR       (1 << 0)
Line 39 
Line 38 
   
 #define LINES_MAX         370  #define LINES_MAX         370
   
 #define CHAR(in, ch, chsz, code) \  #define CHAR(in, ch, code) \
         { NULL, (in), (ch), (chsz), (code), CHARS_CHAR },          { NULL, (in), (ch), (code), CHARS_CHAR },
 #define STRING(in, ch, chsz, code) \  #define STRING(in, ch, code) \
         { NULL, (in), (ch), (chsz), (code), CHARS_STRING },          { NULL, (in), (ch), (code), CHARS_STRING },
 #define BOTH(in, ch, chsz, code) \  #define BOTH(in, ch, code) \
         { NULL, (in), (ch), (chsz), (code), CHARS_BOTH },          { NULL, (in), (ch), (code), CHARS_BOTH },
   
 #define CHAR_TBL_START    static struct ln lines[LINES_MAX] = {  #define CHAR_TBL_START    static struct ln lines[LINES_MAX] = {
 #define CHAR_TBL_END      };  #define CHAR_TBL_END      };
Line 161 
Line 160 
         if (NULL == ln)          if (NULL == ln)
                 return(NULL);                  return(NULL);
   
         *rsz = ln->asciisz;          *rsz = strlen(ln->ascii);
         return(ln->ascii);          return(ln->ascii);
 }  }
   
Line 178 
Line 177 
         if (NULL == ln)          if (NULL == ln)
                 return(NULL);                  return(NULL);
   
         *rsz = ln->asciisz;          *rsz = strlen(ln->ascii);
         return(ln->ascii);          return(ln->ascii);
 }  }
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10