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

Diff for /mandoc/main.c between version 1.72 and 1.73

version 1.72, 2010/05/15 18:43:59 version 1.73, 2010/05/15 21:53:11
Line 773  mwarn(void *arg, int line, int col, const char *msg)
Line 773  mwarn(void *arg, int line, int col, const char *msg)
         return(1);          return(1);
 }  }
   
   static  const char * const      mandocerrs[MANDOCERR_MAX] = {
           "ok",
           "multi-line scope open on exit",
           "request for scope closure when no matching scope is open",
           "line arguments will be lost",
           "memory exhausted"
   };
   
 /*  /*
  * XXX: this is experimental code that will eventually become the   * XXX: this is experimental code that will eventually become the
  * generic means of covering all warnings and errors!   * generic means of covering all warnings and errors!
Line 785  mmsg(enum mandocerr t, void *arg, int ln, int col, con
Line 793  mmsg(enum mandocerr t, void *arg, int ln, int col, con
   
         cp = (struct curparse *)arg;          cp = (struct curparse *)arg;
   
         /*fprintf(stderr, "%s:%d:%d: %s\n", cp->file, ln, col + 1, msg);*/          fprintf(stderr, "%s:%d:%d: %s", cp->file,
                           ln, col + 1, mandocerrs[t]);
   
           if (msg)
                   fprintf(stderr, ": %s", msg);
   
           fputc('\n', stderr);
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

CVSweb