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

Diff for /mandoc/term.h between version 1.83 and 1.89

version 1.83, 2011/05/15 00:58:48 version 1.89, 2011/11/13 13:15:14
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  *   *
  * 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 22  __BEGIN_DECLS
Line 22  __BEGIN_DECLS
 struct  termp;  struct  termp;
   
 enum    termenc {  enum    termenc {
         TERMENC_ASCII          TERMENC_ASCII,
           TERMENC_LOCALE,
           TERMENC_UTF8
 };  };
   
 enum    termtype {  enum    termtype {
Line 50  struct termp_tbl {
Line 52  struct termp_tbl {
 struct  termp {  struct  termp {
         enum termtype     type;          enum termtype     type;
         struct rofftbl    tbl;          /* table configuration */          struct rofftbl    tbl;          /* table configuration */
           size_t            defindent;    /* Default indent for text. */
         size_t            defrmargin;   /* Right margin of the device. */          size_t            defrmargin;   /* Right margin of the device. */
         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 62  struct termp {
Line 65  struct termp {
         int               flags;          int               flags;
 #define TERMP_SENTENCE   (1 << 1)       /* Space before a sentence. */  #define TERMP_SENTENCE   (1 << 1)       /* Space before a sentence. */
 #define TERMP_NOSPACE    (1 << 2)       /* No space before words. */  #define TERMP_NOSPACE    (1 << 2)       /* No space before words. */
 #define TERMP_NOLPAD     (1 << 3)       /* See term_flushln(). */  
 #define TERMP_NOBREAK    (1 << 4)       /* See term_flushln(). */  #define TERMP_NOBREAK    (1 << 4)       /* See term_flushln(). */
 #define TERMP_IGNDELIM   (1 << 6)       /* Delims like regulars. */  #define TERMP_IGNDELIM   (1 << 6)       /* Delims like regulars. */
 #define TERMP_NONOSPACE  (1 << 7)       /* No space (no autounset). */  #define TERMP_NONOSPACE  (1 << 7)       /* No space (no autounset). */
Line 94  struct termp {
Line 96  struct termp {
         struct termp_ps  *ps;          struct termp_ps  *ps;
 };  };
   
 struct termp     *term_alloc(enum termenc);  void              term_eqn(struct termp *, const struct eqn *);
 void              term_tbl(struct termp *, const struct tbl_span *);  void              term_tbl(struct termp *, const struct tbl_span *);
 void              term_free(struct termp *);  void              term_free(struct termp *);
 void              term_newln(struct termp *);  void              term_newln(struct termp *);

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.89

CVSweb