wdvi

network DVI viewer
Log | Files | Refs

commit f6a5c4f9f037108d001154e025f06202f1c9dad4
parent 176a2a15ff46c9748740d2b27456cc26c82004ee
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Sat, 11 Mar 2023 18:08:38 +0000

ansi function signatures

Diffstat:
Mspecial.c | 29+++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)

diff --git a/special.c b/special.c @@ -175,7 +175,7 @@ set_pen_size(char *cp) */ static void -flush_path() +flush_path(void) { int i; int last_min_x, last_max_x, last_min_y, last_max_y; @@ -206,9 +206,7 @@ flush_path() */ static void -flush_dashed(cp, dotted) - char *cp; - Boolean dotted; +flush_dashed(char *cp, Boolean dotted) { int i; int numdots; @@ -271,8 +269,7 @@ flush_dashed(cp, dotted) */ static void -add_path(cp) - char *cp; +add_path(char *cp) { int pathx, pathy; @@ -290,8 +287,7 @@ add_path(cp) */ static void -im_fdraw(x, y) - double x,y; +im_fdraw(double x, double y) { if (++path_len >= MAXPOINTS) errx(1, "Too many arc points"); @@ -305,8 +301,7 @@ im_fdraw(x, y) */ static void -draw_ellipse(xc, yc, xr, yr) - int xc, yc, xr, yr; +draw_ellipse(int xc, int yc, int xr, int yr) { double angle, theta; int n; @@ -338,9 +333,7 @@ draw_ellipse(xc, yc, xr, yr) */ static void -arc(cp, invis) - char *cp; - Boolean invis; +arc(char *cp, Boolean invis) { int xc, yc, xrad, yrad, n; float start_angle, end_angle, angle, theta, r; @@ -398,7 +391,7 @@ arc(cp, invis) */ static void -flush_spline() +flush_spline(void) { int xp, yp; int N; @@ -441,7 +434,7 @@ flush_spline() */ static void -shade_last() +shade_last(void) { blacken = whiten = False; shade = True; @@ -453,7 +446,7 @@ shade_last() */ static void -whiten_last() +whiten_last(void) { whiten = True; blacken = shade = False; @@ -465,7 +458,7 @@ whiten_last() */ static void -blacken_last() +blacken_last(void) { blacken = True; whiten = shade = False; @@ -473,7 +466,7 @@ blacken_last() void -init_prescan() +init_prescan(void) { scanned_page = scanned_page_color = scanned_page_reset = -1;