Deleted Added
full compact
out.h (274880) out.h (275432)
1/* $Id: out.h,v 1.22 2014/04/20 16:46:05 schwarze Exp $ */
1/* $Id: out.h,v 1.24 2014/10/14 02:16:06 schwarze Exp $ */
2/*
3 * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 19 unchanged lines hidden (view full) ---

29 SCALE_VS, /* default vertical (v) */
30 SCALE_FS, /* syn. for u (f) */
31 SCALE_MAX
32};
33
34struct roffcol {
35 size_t width; /* width of cell */
36 size_t decimal; /* decimal position in cell */
2/*
3 * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 19 unchanged lines hidden (view full) ---

29 SCALE_VS, /* default vertical (v) */
30 SCALE_FS, /* syn. for u (f) */
31 SCALE_MAX
32};
33
34struct roffcol {
35 size_t width; /* width of cell */
36 size_t decimal; /* decimal position in cell */
37 int flags; /* layout flags, see tbl_cell */
37};
38
39struct roffsu {
40 enum roffscale unit;
41 double scale;
42};
43
44typedef size_t (*tbl_strlen)(const char *, void *);

--- 9 unchanged lines hidden (view full) ---

54__BEGIN_DECLS
55
56#define SCALE_VS_INIT(p, v) \
57 do { (p)->unit = SCALE_VS; \
58 (p)->scale = (v); } \
59 while (/* CONSTCOND */ 0)
60
61#define SCALE_HS_INIT(p, v) \
38};
39
40struct roffsu {
41 enum roffscale unit;
42 double scale;
43};
44
45typedef size_t (*tbl_strlen)(const char *, void *);

--- 9 unchanged lines hidden (view full) ---

55__BEGIN_DECLS
56
57#define SCALE_VS_INIT(p, v) \
58 do { (p)->unit = SCALE_VS; \
59 (p)->scale = (v); } \
60 while (/* CONSTCOND */ 0)
61
62#define SCALE_HS_INIT(p, v) \
62 do { (p)->unit = SCALE_BU; \
63 do { (p)->unit = SCALE_EN; \
63 (p)->scale = (v); } \
64 while (/* CONSTCOND */ 0)
65
66int a2roffsu(const char *, struct roffsu *, enum roffscale);
64 (p)->scale = (v); } \
65 while (/* CONSTCOND */ 0)
66
67int a2roffsu(const char *, struct roffsu *, enum roffscale);
67void tblcalc(struct rofftbl *tbl, const struct tbl_span *);
68void tblcalc(struct rofftbl *tbl,
69 const struct tbl_span *, size_t);
68
69__END_DECLS
70
71#endif /*!OUT_H*/
70
71__END_DECLS
72
73#endif /*!OUT_H*/