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

Diff for /mandoc/term.h between version 1.108 and 1.112

version 1.108, 2014/12/02 10:08:06 version 1.112, 2015/04/02 23:48:20
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2011-2015 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
  * copyright notice and this permission notice appear in all copies.   * copyright notice and this permission notice appear in all copies.
  *   *
  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES   * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF   * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR   * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES   * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN   * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
Line 38  enum termfont {
Line 38  enum termfont {
   
 #define TERM_MAXMARGIN    100000 /* FIXME */  #define TERM_MAXMARGIN    100000 /* FIXME */
   
   struct  roff_meta;
 struct  termp;  struct  termp;
   
 typedef void    (*term_margin)(struct termp *, const void *);  typedef void    (*term_margin)(struct termp *, const struct roff_meta *);
   
 struct  termp_tbl {  struct  termp_tbl {
         int               width;        /* width in fixed chars */          int               width;        /* width in fixed chars */
Line 84  struct termp {
Line 85  struct termp {
         enum termenc      enc;          /* Type of encoding. */          enum termenc      enc;          /* Type of encoding. */
         const struct mchars *symtab;    /* Character table. */          const struct mchars *symtab;    /* Character table. */
         enum termfont     fontl;        /* Last font set. */          enum termfont     fontl;        /* Last font set. */
         enum termfont     fontq[10];    /* Symmetric fonts. */          enum termfont    *fontq;        /* Symmetric fonts. */
           int               fontsz;       /* Allocated size of font stack */
         int               fonti;        /* Index of font stack. */          int               fonti;        /* Index of font stack. */
         term_margin       headf;        /* invoked to print head */          term_margin       headf;        /* invoked to print head */
         term_margin       footf;        /* invoked to print foot */          term_margin       footf;        /* invoked to print foot */
Line 116  void    term_vspace(struct termp *);
Line 118  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 *);
 void              term_begin(struct termp *, term_margin,  void              term_begin(struct termp *, term_margin,
                         term_margin, const void *);                          term_margin, const struct roff_meta *);
 void              term_end(struct termp *);  void              term_end(struct termp *);
   
 void              term_setwidth(struct termp *, const char *);  void              term_setwidth(struct termp *, const char *);
 size_t            term_hspan(const struct termp *,  int               term_hspan(const struct termp *, const struct roffsu *);
                         const struct roffsu *);  int               term_vspan(const struct termp *, const struct roffsu *);
 size_t            term_vspan(const struct termp *,  
                         const struct roffsu *);  
 size_t            term_strlen(const struct termp *, const char *);  size_t            term_strlen(const struct termp *, const char *);
 size_t            term_len(const struct termp *, size_t);  size_t            term_len(const struct termp *, size_t);
   
 enum termfont     term_fonttop(struct termp *);  
 const void       *term_fontq(struct termp *);  
 void              term_fontpush(struct termp *, enum termfont);  void              term_fontpush(struct termp *, enum termfont);
 void              term_fontpop(struct termp *);  void              term_fontpop(struct termp *);
 void              term_fontpopq(struct termp *, const void *);  void              term_fontpopq(struct termp *, int);
 void              term_fontrepl(struct termp *, enum termfont);  void              term_fontrepl(struct termp *, enum termfont);
 void              term_fontlast(struct termp *);  void              term_fontlast(struct termp *);
   

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

CVSweb