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

Diff for /texi2mdoc/util.c between version 1.18 and 1.19

version 1.18, 2015/02/28 08:41:59 version 1.19, 2015/02/28 13:16:44
Line 591  parseword(struct texi *p, size_t *pos, char extra)
Line 591  parseword(struct texi *p, size_t *pos, char extra)
  * index after the command name.   * index after the command name.
  */   */
 enum texicmd  enum texicmd
 texicmd(struct texi *p, size_t pos, size_t *end, struct teximacro **macro)  texicmd(const struct texi *p, size_t pos, size_t *end, struct teximacro **macro)
 {  {
         size_t   i, len, toksz;          size_t   i, len, toksz;
   
Line 824  parseeoln(struct texi *p, size_t *pos)
Line 824  parseeoln(struct texi *p, size_t *pos)
   
         if (*pos < BUFSZ(p) && '\n' == BUF(p)[*pos])          if (*pos < BUFSZ(p) && '\n' == BUF(p)[*pos])
                 advance(p, pos);                  advance(p, pos);
   }
   
   /*
    * Peek to see if there's a command after subsequent whitespace.
    * If so, return the macro identifier.
    * This DOES NOT work with user-defined macros.
    */
   enum texicmd
   peekcmd(const struct texi *p, size_t pos)
   {
           size_t          end;
   
           while (pos < BUFSZ(p) && ismspace(BUF(p)[pos]))
                   pos++;
           if (pos == BUFSZ(p) || '@' != BUF(p)[pos])
                   return(TEXICMD__MAX);
           return(texicmd(p, pos, &end, NULL));
 }  }
   
 /*  /*

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

CVSweb