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

Diff for /mandoc/roff.c between version 1.394 and 1.395

version 1.394, 2022/06/07 09:41:59 version 1.395, 2022/08/16 17:30:11
Line 40 
Line 40 
 #include "tbl_parse.h"  #include "tbl_parse.h"
 #include "eqn_parse.h"  #include "eqn_parse.h"
   
 /*  
  * ASCII_ESC is used to signal from roff_getarg() to roff_expand()  
  * that an escape sequence resulted from copy-in processing and  
  * needs to be checked or interpolated.  As it is used nowhere  
  * else, it is defined here rather than in a header file.  
  */  
 #define ASCII_ESC       27  
   
 /* Maximum number of string expansions per line, to break infinite loops. */  /* Maximum number of string expansions per line, to break infinite loops. */
 #define EXPAND_LIMIT    1000  #define EXPAND_LIMIT    1000
   
Line 1640  roff_getarg(struct roff *r, char **cpp, int ln, int *p
Line 1632  roff_getarg(struct roff *r, char **cpp, int ln, int *p
                                 cp++;                                  cp++;
                                 break;                                  break;
                         case '\\':                          case '\\':
                                 newesc = 1;                                  /*
                                    * Signal to roff_expand() that an escape
                                    * sequence resulted from copy-in processing
                                    * and needs to be checked or interpolated.
                                    */
                                 cp[-pairs] = ASCII_ESC;                                  cp[-pairs] = ASCII_ESC;
                                   newesc = 1;
                                 pairs++;                                  pairs++;
                                 cp++;                                  cp++;
                                 break;                                  break;

Legend:
Removed from v.1.394  
changed lines
  Added in v.1.395

CVSweb