version 1.61, 2010/06/09 08:07:13 |
version 1.65, 2010/06/25 18:53:14 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> |
* Copyright (c) 2008, 2009 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 50 struct termp_ps { |
|
Line 50 struct termp_ps { |
|
size_t psmargsz; /* margin buf size */ |
size_t psmargsz; /* margin buf size */ |
size_t psmargcur; /* current pos in margin buf */ |
size_t psmargcur; /* current pos in margin buf */ |
size_t pspage; /* current page */ |
size_t pspage; /* current page */ |
|
char last; /* character buffer */ |
|
enum termfont lastf; /* last set font */ |
}; |
}; |
|
|
struct termp { |
struct termp { |
|
|
void (*end)(struct termp *); |
void (*end)(struct termp *); |
void (*endline)(struct termp *); |
void (*endline)(struct termp *); |
void (*advance)(struct termp *, size_t); |
void (*advance)(struct termp *, size_t); |
|
size_t (*width)(const struct termp *, char); |
const void *argf; /* arg for headf/footf */ |
const void *argf; /* arg for headf/footf */ |
union { |
union { |
struct termp_ps ps; |
struct termp_ps ps; |
Line 105 void term_begin(struct termp *, term_margin, |
|
Line 108 void term_begin(struct termp *, term_margin, |
|
term_margin, const void *); |
term_margin, const void *); |
void term_end(struct termp *); |
void term_end(struct termp *); |
|
|
size_t term_hspan(const struct roffsu *); |
size_t term_hspan(const struct termp *, |
size_t term_vspan(const struct roffsu *); |
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_len(const struct termp *, size_t); |
|
|
enum termfont term_fonttop(struct termp *); |
enum termfont term_fonttop(struct termp *); |
const void *term_fontq(struct termp *); |
const void *term_fontq(struct termp *); |