[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.232 and 1.235

version 1.232, 2019/01/07 07:26:29 version 1.235, 2022/04/14 16:43:44
Line 1 
Line 1 
 /*      $Id$ */  /* $Id$ */
 /*  /*
    * Copyright (c) 2010, 2012-2021 Ingo Schwarze <schwarze@openbsd.org>
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010, 2012-2019 Ingo Schwarze <schwarze@openbsd.org>  
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 26 
Line 26 
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
   
   #if DEBUG_MEMORY
   #include "mandoc_dbg.h"
   #endif
 #include "mandoc.h"  #include "mandoc.h"
 #include "roff.h"  #include "roff.h"
 #include "mdoc.h"  #include "mdoc.h"
Line 61  static void  rew_pending(struct roff_man *,
Line 64  static void  rew_pending(struct roff_man *,
                                 const struct roff_node *);                                  const struct roff_node *);
   
 static const struct mdoc_macro mdoc_macros[MDOC_MAX - MDOC_Dd] = {  static const struct mdoc_macro mdoc_macros[MDOC_MAX - MDOC_Dd] = {
         { in_line_eoln, MDOC_PROLOGUE }, /* Dd */          { in_line_eoln, MDOC_PROLOGUE | MDOC_JOIN }, /* Dd */
         { in_line_eoln, MDOC_PROLOGUE }, /* Dt */          { in_line_eoln, MDOC_PROLOGUE }, /* Dt */
         { in_line_eoln, MDOC_PROLOGUE }, /* Os */          { in_line_eoln, MDOC_PROLOGUE }, /* Os */
         { blk_full, MDOC_PARSED | MDOC_JOIN }, /* Sh */          { blk_full, MDOC_PARSED | MDOC_JOIN }, /* Sh */
Line 200  static const struct mdoc_macro mdoc_macros[MDOC_MAX - 
Line 203  static const struct mdoc_macro mdoc_macros[MDOC_MAX - 
         { in_line_eoln, MDOC_JOIN }, /* %Q */          { in_line_eoln, MDOC_JOIN }, /* %Q */
         { in_line_eoln, 0 }, /* %U */          { in_line_eoln, 0 }, /* %U */
         { phrase_ta, MDOC_CALLABLE | MDOC_PARSED | MDOC_JOIN }, /* Ta */          { phrase_ta, MDOC_CALLABLE | MDOC_PARSED | MDOC_JOIN }, /* Ta */
           { in_line_eoln, 0 }, /* Tg */
 };  };
   
   
Line 1509  in_line_eoln(MACRO_PROT_ARGS)
Line 1513  in_line_eoln(MACRO_PROT_ARGS)
                 if (n->tok == MDOC_Nm)                  if (n->tok == MDOC_Nm)
                         rew_last(mdoc, n->parent);                          rew_last(mdoc, n->parent);
         }          }
   
   #if DEBUG_MEMORY
           if (tok == MDOC_Dt)
                   mandoc_dbg_name(buf);
   #endif
   
         if (buf[*pos] == '\0' &&          if (buf[*pos] == '\0' &&
             (tok == MDOC_Fd || *roff_name[tok] == '%')) {              (tok == MDOC_Fd || *roff_name[tok] == '%')) {

Legend:
Removed from v.1.232  
changed lines
  Added in v.1.235

CVSweb