wdvi

network DVI viewer
Log | Files | Refs

commit be5431916b27fa6dbc35bfa198fb71e90dac1311
parent 3fb2aec6fa516be7d14a7aba61a312061f7b7245
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Sat, 11 Sep 2021 21:44:12 +0000

move more globals out of xdvi.h

Diffstat:
Mspecial.h | 9+++++++++
Mxdvi.h | 8--------
2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/special.h b/special.h @@ -33,6 +33,15 @@ struct pagecolor { /* Information on background color and initial color stack for each page. */ struct pagecolor *page_colors = NULL; +/* The initial color stack is gotten from the pagecolor record for a page. */ +const struct rgb *color_bottom; +unsigned int color_bot_size; /* number of entries */ + +/* Additions to the runtime color stack on a given page are stored in a linked + list. "struct colorframe" is defined in special.c. */ +struct colorframe *rcs_top; + + int scanned_page; /* last page prescanned */ int scanned_page_color; /* last page scanned for color spcls */ int scanned_page_reset; /* number to reset the above to */ diff --git a/xdvi.h b/xdvi.h @@ -170,14 +170,6 @@ XColor color_data[2]; #define back_color_data color_data[1] -/* The initial color stack is gotten from the pagecolor record for a page. */ -const struct rgb *color_bottom; -unsigned int color_bot_size; /* number of entries */ - -/* Additions to the runtime color stack on a given page are stored in a linked - list. "struct colorframe" is defined in special.c. */ -struct colorframe *rcs_top; - /* Color states. */ struct rgb fg_initial; /* Initial fg (from command line) */ struct rgb bg_initial; /* Initial bg */