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

Diff for /src/usr.bin/mandoc/roff.c between version 1.33 and 1.34

version 1.33, 2011/04/05 22:19:11 version 1.34, 2011/04/21 22:59:54
Line 596 
Line 596 
         t = (r->current_string = roff_getstrn(r, mac, maclen))          t = (r->current_string = roff_getstrn(r, mac, maclen))
             ? ROFF_USERDEF : roff_hash_find(mac, maclen);              ? ROFF_USERDEF : roff_hash_find(mac, maclen);
   
         *pos += maclen;          *pos += (int)maclen;
         while (buf[*pos] && ' ' == buf[*pos])          while (buf[*pos] && ' ' == buf[*pos])
                 (*pos)++;                  (*pos)++;
   
Line 1131 
Line 1131 
   
         cp = *bufp + pos;          cp = *bufp + pos;
         while ('\0' != *cp) {          while ('\0' != *cp) {
                 name = roff_getname(r, &cp, ln, cp - *bufp);                  name = roff_getname(r, &cp, ln, (int)(cp - *bufp));
                 if ('\0' != *name)                  if ('\0' != *name)
                         roff_setstr(r, name, NULL, 0);                          roff_setstr(r, name, NULL, 0);
         }          }
Line 1366 
Line 1366 
          * One additional byte for the '\n' in multiline mode,           * One additional byte for the '\n' in multiline mode,
          * and one for the terminating '\0'.           * and one for the terminating '\0'.
          */           */
         newch = strlen(string) + (multiline ? 2 : 1);          newch = strlen(string) + (multiline ? 2u : 1u);
         if (NULL == n->string) {          if (NULL == n->string) {
                 n->string = mandoc_malloc(newch);                  n->string = mandoc_malloc(newch);
                 *n->string = '\0';                  *n->string = '\0';
Line 1377 
Line 1377 
         }          }
   
         /* Skip existing content in the destination buffer. */          /* Skip existing content in the destination buffer. */
         c = n->string + oldch;          c = n->string + (int)oldch;
   
         /* Append new content to the destination buffer. */          /* Append new content to the destination buffer. */
         while (*string) {          while (*string) {

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34