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

Diff for /mandoc/term.h between version 1.46 and 1.51

version 1.46, 2009/09/16 09:41:24 version 1.51, 2009/11/12 05:50:13
Line 23  enum termenc {
Line 23  enum termenc {
         TERMENC_ASCII          TERMENC_ASCII
 };  };
   
   enum    termfont {
           TERMFONT_NONE = 0,
           TERMFONT_BOLD,
           TERMFONT_UNDER
   };
   
 struct  termp {  struct  termp {
         size_t            rmargin;      /* Current right margin. */          size_t            rmargin;      /* Current right margin. */
         size_t            maxrmargin;   /* Max right margin. */          size_t            maxrmargin;   /* Max right margin. */
Line 41  struct termp {
Line 47  struct termp {
 #define TERMP_NOSPLIT    (1 << 11)      /* See termp_an_pre/post(). */  #define TERMP_NOSPLIT    (1 << 11)      /* See termp_an_pre/post(). */
 #define TERMP_SPLIT      (1 << 12)      /* See termp_an_pre/post(). */  #define TERMP_SPLIT      (1 << 12)      /* See termp_an_pre/post(). */
 #define TERMP_ANPREC     (1 << 13)      /* See termp_an_pre(). */  #define TERMP_ANPREC     (1 << 13)      /* See termp_an_pre(). */
         int               bold;  
         int               under;  
         char             *buf;          /* Output buffer. */          char             *buf;          /* Output buffer. */
         enum termenc      enc;          /* Type of encoding. */          enum termenc      enc;          /* Type of encoding. */
         void             *symtab;       /* Encoded-symbol table. */          void             *symtab;       /* Encoded-symbol table. */
           enum termfont     fontl;        /* Last font set. */
           enum termfont     fontq[10];    /* Symmetric fonts. */
           int               fonti;        /* Index of font stack. */
 };  };
   
 void             *term_ascii2htab(void);  
 const char       *term_a2ascii(void *, const char *, size_t, size_t *);  
 const char       *term_a2res(void *, const char *, size_t, size_t *);  
 void              term_asciifree(void *);  
   
 void              term_newln(struct termp *);  void              term_newln(struct termp *);
 void              term_vspace(struct termp *);  void              term_vspace(struct termp *);
 void              term_word(struct termp *, const char *);  void              term_word(struct termp *, const char *);
 void              term_flushln(struct termp *);  void              term_flushln(struct termp *);
   
   size_t            term_hspan(const struct roffsu *);
   size_t            term_vspan(const struct roffsu *);
   
   enum termfont     term_fonttop(struct termp *);
   const void       *term_fontq(struct termp *);
   void              term_fontpush(struct termp *, enum termfont);
   void              term_fontpop(struct termp *);
   void              term_fontpopq(struct termp *, const void *);
   void              term_fontrepl(struct termp *, enum termfont);
   void              term_fontlast(struct termp *);
   
 __END_DECLS  __END_DECLS
   

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.51

CVSweb