tbl.h (cec8643b41ebefad6c677010fc784dc4bb0550f3) | tbl.h (4d131170e62381276a07ffc0aeb1b62e527d940c) |
---|---|
1/* $Id: tbl.h,v 1.1 2018/12/12 21:54:35 schwarze Exp $ */ | 1/* $Id: tbl.h,v 1.2 2021/08/10 12:55:04 schwarze Exp $ */ |
2/* 3 * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> | 2/* 3 * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
4 * Copyright (c) 2014, 2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> | 4 * Copyright (c) 2014,2015,2017,2018,2021 Ingo Schwarze <schwarze@openbsd.org> |
5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR --- 39 unchanged lines hidden (view full) --- 52struct tbl_cell { 53 struct tbl_cell *next; /* Layout cell to the right. */ 54 char *wstr; /* Min width represented as a string. */ 55 size_t width; /* Minimum column width. */ 56 size_t spacing; /* To the right of the column. */ 57 int vert; /* Width of subsequent vertical line. */ 58 int col; /* Column number, starting from 0. */ 59 int flags; | 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR --- 39 unchanged lines hidden (view full) --- 52struct tbl_cell { 53 struct tbl_cell *next; /* Layout cell to the right. */ 54 char *wstr; /* Min width represented as a string. */ 55 size_t width; /* Minimum column width. */ 56 size_t spacing; /* To the right of the column. */ 57 int vert; /* Width of subsequent vertical line. */ 58 int col; /* Column number, starting from 0. */ 59 int flags; |
60#define TBL_CELL_BOLD (1 << 0) /* b, B, fB */ 61#define TBL_CELL_ITALIC (1 << 1) /* i, I, fI */ | |
62#define TBL_CELL_TALIGN (1 << 2) /* t, T */ 63#define TBL_CELL_UP (1 << 3) /* u, U */ 64#define TBL_CELL_BALIGN (1 << 4) /* d, D */ 65#define TBL_CELL_WIGN (1 << 5) /* z, Z */ 66#define TBL_CELL_EQUAL (1 << 6) /* e, E */ 67#define TBL_CELL_WMAX (1 << 7) /* x, X */ | 60#define TBL_CELL_TALIGN (1 << 2) /* t, T */ 61#define TBL_CELL_UP (1 << 3) /* u, U */ 62#define TBL_CELL_BALIGN (1 << 4) /* d, D */ 63#define TBL_CELL_WIGN (1 << 5) /* z, Z */ 64#define TBL_CELL_EQUAL (1 << 6) /* e, E */ 65#define TBL_CELL_WMAX (1 << 7) /* x, X */ |
66 enum mandoc_esc font; |
|
68 enum tbl_cellt pos; 69}; 70 71/* 72 * A layout row. 73 */ 74struct tbl_row { 75 struct tbl_row *next; /* Layout row below. */ --- 47 unchanged lines hidden --- | 67 enum tbl_cellt pos; 68}; 69 70/* 71 * A layout row. 72 */ 73struct tbl_row { 74 struct tbl_row *next; /* Layout row below. */ --- 47 unchanged lines hidden --- |