plan9fox/libpanel/rtext.h
xfnw 856abd2f7d Squashed 'sys/src/cmd/gopher/' content from commit 3680728b6
git-subtree-dir: sys/src/cmd/gopher
git-subtree-split: 3680728b631ed65201b397f4ae3e5d1b03be42f9
2022-07-01 15:46:23 -04:00

11 lines
360 B
C

/*
* Rtext definitions
*/
#define PL_NOPBIT 4
#define PL_NARGBIT 12
#define PL_ARGMASK ((1<<PL_NARGBIT)-1)
#define PL_SPECIAL(op) (((-1<<PL_NOPBIT)|op)<<PL_NARGBIT)
#define PL_OP(t) ((t)&~PL_ARGMASK)
#define PL_ARG(t) ((t)&PL_ARGMASK)
#define PL_TAB PL_SPECIAL(0) /* # of tab stops before text */
void pltabsize(int, int); /* set min tab and tab size */