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

Diff for /mandoc/mdoc_macro.c between version 1.4 and 1.6

version 1.4, 2009/03/27 14:56:15 version 1.6, 2009/04/02 06:51:44
Line 24 
Line 24 
   
 #include "libmdoc.h"  #include "libmdoc.h"
   
 /*  
  * This has scanning/parsing routines, each of which extract a macro and  
  * its arguments and parameters, then know how to progress to the next  
  * macro.  
  */  
   
 /* FIXME: .Fl, .Ar, .Cd handling of `|'. */  /* FIXME: .Fl, .Ar, .Cd handling of `|'. */
   
 enum    mwarn {  enum    mwarn {
Line 334  lookup(struct mdoc *mdoc, int line, int pos, int from,
Line 328  lookup(struct mdoc *mdoc, int line, int pos, int from,
 {  {
         int              res;          int              res;
   
         res = mdoc_tokhash_find(mdoc->htab, p);          res = mdoc_hash_find(mdoc->htab, p);
         if (MDOC_PARSED & mdoc_macros[from].flags)          if (MDOC_PARSED & mdoc_macros[from].flags)
                 return(res);                  return(res);
         if (MDOC_MAX == res)          if (MDOC_MAX == res)
Line 1479  phrase(struct mdoc *mdoc, int line, int ppos, char *bu
Line 1473  phrase(struct mdoc *mdoc, int line, int ppos, char *bu
                  */                   */
   
                 c = quoted ? MDOC_MAX :                  c = quoted ? MDOC_MAX :
                         mdoc_tokhash_find(mdoc->htab, &buf[la]);                          mdoc_hash_find(mdoc->htab, &buf[la]);
   
                 if (MDOC_MAX != c) {                  if (MDOC_MAX != c) {
                         if ( ! mdoc_macro(mdoc, c, line, la, &i, buf))                          if ( ! mdoc_macro(mdoc, c, line, la, &i, buf))

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

CVSweb