[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.105 and 1.108

version 1.105, 2011/03/22 14:05:45 version 1.108, 2011/04/25 00:03:07
Line 26 
Line 26 
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
   
   #include "mdoc.h"
 #include "mandoc.h"  #include "mandoc.h"
 #include "libmdoc.h"  #include "libmdoc.h"
 #include "libmandoc.h"  #include "libmandoc.h"
Line 599  dword(struct mdoc *m, int line, 
Line 600  dword(struct mdoc *m, int line, 
   
         if (DELIM_OPEN == d)          if (DELIM_OPEN == d)
                 m->last->flags |= MDOC_DELIMO;                  m->last->flags |= MDOC_DELIMO;
         else if (DELIM_CLOSE == d)  
           /*
            * Closing delimiters only suppress the preceding space
            * when they follow something, not when they start a new
            * block or element, and not when they follow `No'.
            *
            * XXX  Explicitly special-casing MDOC_No here feels
            *      like a layering violation.  Find a better way
            *      and solve this in the code related to `No'!
            */
   
           else if (DELIM_CLOSE == d && m->last->prev &&
                           m->last->prev->tok != MDOC_No)
                 m->last->flags |= MDOC_DELIMC;                  m->last->flags |= MDOC_DELIMC;
   
         return(1);          return(1);
Line 617  append_delims(struct mdoc *m, int line, int *pos, char
Line 630  append_delims(struct mdoc *m, int line, int *pos, char
   
         for (;;) {          for (;;) {
                 la = *pos;                  la = *pos;
                 ac = mdoc_zargs(m, line, pos, buf, ARGS_NOWARN, &p);                  ac = mdoc_zargs(m, line, pos, buf, &p);
   
                 if (ARGS_ERROR == ac)                  if (ARGS_ERROR == ac)
                         return(0);                          return(0);
Line 1716  phrase(struct mdoc *m, int line, int ppos, char *buf)
Line 1729  phrase(struct mdoc *m, int line, int ppos, char *buf)
         for (pos = ppos; ; ) {          for (pos = ppos; ; ) {
                 la = pos;                  la = pos;
   
                 ac = mdoc_zargs(m, line, &pos, buf, 0, &p);                  ac = mdoc_zargs(m, line, &pos, buf, &p);
   
                 if (ARGS_ERROR == ac)                  if (ARGS_ERROR == ac)
                         return(0);                          return(0);
Line 1761  phrase_ta(MACRO_PROT_ARGS)
Line 1774  phrase_ta(MACRO_PROT_ARGS)
   
         for (;;) {          for (;;) {
                 la = *pos;                  la = *pos;
                 ac = mdoc_zargs(m, line, pos, buf, 0, &p);                  ac = mdoc_zargs(m, line, pos, buf, &p);
   
                 if (ARGS_ERROR == ac)                  if (ARGS_ERROR == ac)
                         return(0);                          return(0);

Legend:
Removed from v.1.105  
changed lines
  Added in v.1.108

CVSweb