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

Diff for /mandoc/roff_int.h between version 1.12 and 1.17

version 1.12, 2018/12/30 00:49:56 version 1.17, 2020/04/24 12:02:34
Line 1 
Line 1 
 /*      $Id$    */  /* $OpenBSD$    */
 /*  /*
    * Copyright (c) 2013-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org>
  * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2013,2014,2015,2017,2018 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 39  struct roff_man {
Line 39  struct roff_man {
         struct roff_node *last_es; /* The most recent Es node. */          struct roff_node *last_es; /* The most recent Es node. */
         int               quick;   /* Abort parse early. */          int               quick;   /* Abort parse early. */
         int               flags;   /* Parse flags. */          int               flags;   /* Parse flags. */
 #define MDOC_LITERAL     (1 << 1)  /* In a literal scope. */  #define ROFF_NOFILL      (1 << 1)  /* Fill mode switched off. */
 #define MDOC_PBODY       (1 << 2)  /* In the document body. */  #define MDOC_PBODY       (1 << 2)  /* In the document body. */
 #define MDOC_NEWLINE     (1 << 3)  /* First macro/text in a line. */  #define MDOC_NEWLINE     (1 << 3)  /* First macro/text in a line. */
 #define MDOC_PHRASE      (1 << 4)  /* In a Bl -column phrase. */  #define MDOC_PHRASE      (1 << 4)  /* In a Bl -column phrase. */
Line 54  struct roff_man {
Line 54  struct roff_man {
 #define MDOC_PHRASEQF    (1 << 13) /* Quote first word encountered. */  #define MDOC_PHRASEQF    (1 << 13) /* Quote first word encountered. */
 #define MDOC_PHRASEQL    (1 << 14) /* Quote last word of this phrase. */  #define MDOC_PHRASEQL    (1 << 14) /* Quote last word of this phrase. */
 #define MDOC_PHRASEQN    (1 << 15) /* Quote first word of the next phrase. */  #define MDOC_PHRASEQN    (1 << 15) /* Quote first word of the next phrase. */
 #define MAN_LITERAL       MDOC_LITERAL  #define ROFF_NONOFILL    (1 << 16) /* Temporarily suspend no-fill mode. */
 #define MAN_NEWLINE       MDOC_NEWLINE  #define MAN_NEWLINE       MDOC_NEWLINE
         enum roff_sec     lastsec; /* Last section seen. */          enum roff_sec     lastsec; /* Last section seen. */
         enum roff_sec     lastnamed; /* Last standard section seen. */          enum roff_sec     lastnamed; /* Last standard section seen. */
         enum roff_next    next;    /* Where to put the next node. */          enum roff_next    next;    /* Where to put the next node. */
           char              filesec; /* Section digit in the file name. */
 };  };
   
   
Line 80  struct ohash  *roffhash_alloc(enum roff_tok, enum roff
Line 81  struct ohash  *roffhash_alloc(enum roff_tok, enum roff
 enum roff_tok     roffhash_find(struct ohash *, const char *, size_t);  enum roff_tok     roffhash_find(struct ohash *, const char *, size_t);
 void              roffhash_free(struct ohash *);  void              roffhash_free(struct ohash *);
   
   void              roff_state_reset(struct roff_man *);
 void              roff_validate(struct roff_man *);  void              roff_validate(struct roff_man *);
   
 /*  /*

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.17

CVSweb