[BACK]Return to mdoc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mdoc.c between version 1.36 and 1.37

version 1.36, 2010/03/25 02:02:28 version 1.37, 2010/04/02 12:39:47
Line 139 
Line 139 
 static  void              mdoc_free1(struct mdoc *);  static  void              mdoc_free1(struct mdoc *);
 static  void              mdoc_alloc1(struct mdoc *);  static  void              mdoc_alloc1(struct mdoc *);
 static  struct mdoc_node *node_alloc(struct mdoc *, int, int,  static  struct mdoc_node *node_alloc(struct mdoc *, int, int,
                                 int, enum mdoc_type);                                  enum mdoct, enum mdoc_type);
 static  int               node_append(struct mdoc *,  static  int               node_append(struct mdoc *,
                                 struct mdoc_node *);                                  struct mdoc_node *);
 static  int               parsetext(struct mdoc *, int, char *);  static  int               parsetext(struct mdoc *, int, char *);
Line 337 
Line 337 
   
   
 int  int
 mdoc_macro(struct mdoc *m, int tok,  mdoc_macro(struct mdoc *m, enum mdoct tok,
                 int ln, int pp, int *pos, char *buf)                  int ln, int pp, int *pos, char *buf)
 {  {
   
           assert(tok < MDOC_MAX);
         /*          /*
          * If we're in the prologue, deny "body" macros.  Similarly, if           * If we're in the prologue, deny "body" macros.  Similarly, if
          * we're in the body, deny prologue calls.           * we're in the body, deny prologue calls.
Line 420 
Line 422 
   
   
 static struct mdoc_node *  static struct mdoc_node *
 node_alloc(struct mdoc *m, int line,  node_alloc(struct mdoc *m, int line, int pos,
                 int pos, int tok, enum mdoc_type type)                  enum mdoct tok, enum mdoc_type type)
 {  {
         struct mdoc_node *p;          struct mdoc_node *p;
   
Line 430 
Line 432 
         p->line = line;          p->line = line;
         p->pos = pos;          p->pos = pos;
         p->tok = tok;          p->tok = tok;
         if (MDOC_TEXT != (p->type = type))          p->type = type;
                 assert(p->tok >= 0);  
   
         return(p);          return(p);
 }  }
   
   
 int  int
 mdoc_tail_alloc(struct mdoc *m, int line, int pos, int tok)  mdoc_tail_alloc(struct mdoc *m, int line, int pos, enum mdoct tok)
 {  {
         struct mdoc_node *p;          struct mdoc_node *p;
   
Line 451 
Line 452 
   
   
 int  int
 mdoc_head_alloc(struct mdoc *m, int line, int pos, int tok)  mdoc_head_alloc(struct mdoc *m, int line, int pos, enum mdoct tok)
 {  {
         struct mdoc_node *p;          struct mdoc_node *p;
   
Line 467 
Line 468 
   
   
 int  int
 mdoc_body_alloc(struct mdoc *m, int line, int pos, int tok)  mdoc_body_alloc(struct mdoc *m, int line, int pos, enum mdoct tok)
 {  {
         struct mdoc_node *p;          struct mdoc_node *p;
   
Line 481 
Line 482 
   
 int  int
 mdoc_block_alloc(struct mdoc *m, int line, int pos,  mdoc_block_alloc(struct mdoc *m, int line, int pos,
                 int tok, struct mdoc_arg *args)                  enum mdoct tok, struct mdoc_arg *args)
 {  {
         struct mdoc_node *p;          struct mdoc_node *p;
   
Line 498 
Line 499 
   
 int  int
 mdoc_elem_alloc(struct mdoc *m, int line, int pos,  mdoc_elem_alloc(struct mdoc *m, int line, int pos,
                 int tok, struct mdoc_arg *args)                  enum mdoct tok, struct mdoc_arg *args)
 {  {
         struct mdoc_node *p;          struct mdoc_node *p;
   

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37