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

Diff for /mandoc/roff.c between version 1.94 and 1.95

version 1.94, 2010/07/07 15:04:54 version 1.95, 2010/07/21 09:15:48
Line 132  static const char *roff_getstrn(const struct roff *, 
Line 132  static const char *roff_getstrn(const struct roff *, 
                                 const char *, size_t);                                  const char *, size_t);
 static  enum rofferr     roff_line(ROFF_ARGS);  static  enum rofferr     roff_line(ROFF_ARGS);
 static  enum rofferr     roff_nr(ROFF_ARGS);  static  enum rofferr     roff_nr(ROFF_ARGS);
 static  int              roff_res(struct roff *, int,  static  int              roff_res(struct roff *,
                                 char **, size_t *, int, int *);                                  char **, size_t *, int);
 static  void             roff_setstr(struct roff *,  static  void             roff_setstr(struct roff *,
                                 const char *, const char *);                                  const char *, const char *);
   
Line 332  roff_alloc(struct regset *regs, const mandocmsg msg, v
Line 332  roff_alloc(struct regset *regs, const mandocmsg msg, v
  * is processed.   * is processed.
  */   */
 static int  static int
 roff_res(struct roff *r, int ln, char **bufp,  roff_res(struct roff *r, char **bufp, size_t *szp, int pos)
                 size_t *szp, int pos, int *offs)  
 {  {
         const char      *cp, *cpp, *st, *res;          const char      *cp, *cpp, *st, *res;
         int              i, maxl;          int              i, maxl;
         size_t           nsz;          size_t           nsz;
         char            *n;          char            *n;
   
           /* LINTED */
         for (cp = &(*bufp)[pos]; (cpp = strstr(cp, "\\*")); cp++) {          for (cp = &(*bufp)[pos]; (cpp = strstr(cp, "\\*")); cp++) {
                 cp = cpp + 2;                  cp = cpp + 2;
                 switch (*cp) {                  switch (*cp) {
Line 406  roff_parseln(struct roff *r, int ln, char **bufp, 
Line 406  roff_parseln(struct roff *r, int ln, char **bufp, 
          * words to fill in.           * words to fill in.
          */           */
   
         if (r->first_string && ! roff_res(r, ln, bufp, szp, pos, offs))          if (r->first_string && ! roff_res(r, bufp, szp, pos))
                 return(ROFF_RERUN);                  return(ROFF_RERUN);
   
         /*          /*

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95

CVSweb