wdvi

network DVI viewer
Log | Files | Refs

commit f01eb098d49b6c3f6d2a237d298a32257eb39929
parent 86efd5ca1bbec536dc74d39dbae526c7dd8d0081
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Tue, 14 Sep 2021 16:39:23 +0000

move struct geom_info into its only consumer

Diffstat:
Mdvi-draw.c | 14++++++++++++++
Mspecial.h | 12------------
2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/dvi-draw.c b/dvi-draw.c @@ -1139,6 +1139,20 @@ draw_page() # define mane_base_x 0 # define mane_base_y 0 + +/* + * Used by the geometry-scanning routines. + * It passes pointers to routines to be called at certain + * points in the dvi file, and other information. + */ + +struct geom_info { + void (*geom_box) (struct geom_info *, long, long, long, long); + void (*geom_special) (struct geom_info *, const char *); + void *geom_data; +}; + + /* * This set of routines can be called while draw_part() is active, * so the global variables must be separate. diff --git a/special.h b/special.h @@ -1,18 +1,6 @@ #include "data.h" /* struct rgb */ /* - * Used by the geometry-scanning routines. - * It passes pointers to routines to be called at certain - * points in the dvi file, and other information. - */ - -struct geom_info { - void (*geom_box) (struct geom_info *, long, long, long, long); - void (*geom_special) (struct geom_info *, const char *); - void *geom_data; -}; - -/* * Per-page data in DVI file, indexed by page number - 1. * Offset is initialized in prepare_pages(). * Page size is initialized while prescanning.