wdvi

network DVI viewer
Log | Files | Refs

commit df5d6641b5caedaa3a86c87208bac0d7258d0aa0
parent ca3098c435c5c92388fe54605733cd1ace61f681
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Mon, 16 Aug 2021 15:35:02 +0000

cc: silence compiler warnings

Fix K&R default parameter promotion warnings by changing the function
defintions to ANSI.

Diffstat:
Mdvi-draw.c | 3+--
Mdvi-init.c | 23++++++++++-------------
Mevents.c | 4++--
Mpk.c | 4+---
Mutil.c | 4+---
Mvf.c | 4+---
6 files changed, 16 insertions(+), 26 deletions(-)

diff --git a/dvi-draw.c b/dvi-draw.c @@ -2678,8 +2678,7 @@ src_spec_show_special(g_info, str) } void -source_special_show(do_them_all) - wide_bool do_them_all; +source_special_show(wide_bool do_them_all) { struct geom_info g_info; struct src_spec_show_data data; diff --git a/dvi-init.c b/dvi-init.c @@ -199,9 +199,7 @@ full_reset_colors() */ void -realloc_font(fontp, newsize) - struct font *fontp; - wide_ubyte newsize; +realloc_font(struct font *fontp, wide_ubyte newsize) { struct glyph *glyph; @@ -219,9 +217,7 @@ realloc_font(fontp, newsize) */ void -realloc_virtual_font(fontp, newsize) - struct font *fontp; - wide_ubyte newsize; +realloc_virtual_font(struct font *fontp, wide_ubyte newsize) { struct macro *macro; @@ -381,15 +377,16 @@ reuse_font(fontp) * define_font reads the rest of the fntdef command and then reads in * the specified pixel file, adding it to the global linked-list holding * all of the fonts used in the job. + * + * vfparent; vf parent of this font, or NULL + * tntable; table for low TeXnumbers + * tn_table_len; length of table for TeXnumbers + * tn_headpp; addr of head of list of TeXnumbers */ struct font * -define_font(file, cmnd, vfparent, tntable, tn_table_len, tn_headpp) - FILE *file; - wide_ubyte cmnd; - struct font *vfparent; /* vf parent of this font, or NULL */ - struct font **tntable; /* table for low TeXnumbers */ - unsigned int tn_table_len; /* length of table for TeXnumbers */ - struct tn **tn_headpp; /* addr of head of list of TeXnumbers */ +define_font(FILE *file, wide_ubyte cmnd, struct font *vfparent, + struct font **tntable, unsigned int tn_table_len, + struct tn **tn_headpp) { int TeXnumber; struct font *fontp; diff --git a/events.c b/events.c @@ -45,6 +45,7 @@ NOTE: # include <X11/Xaw/Viewport.h> # include <X11/cursorfont.h> +#include <X11/IntrinsicI.h> /* _XtComputeLateBindings */ #ifdef BUTTONS # include <X11/Xaw/Command.h> @@ -1499,8 +1500,7 @@ static Arg arg_xy[] = { void -home(scrl) - wide_bool scrl; +home(wide_bool scrl) { if (!scrl) XUnmapWindow(DISP, mane.win); get_xy(); diff --git a/pk.c b/pk.c @@ -304,9 +304,7 @@ read_PK_char(fontp, ch) } void -read_PK_index(fontp, hushcs) - struct font *fontp; - wide_bool hushcs; +read_PK_index(struct font *fontp, wide_bool hushcs) { int hppp, vppp; long checksum; diff --git a/util.c b/util.c @@ -1017,9 +1017,7 @@ xdvi_temp_fd(str) */ void -prep_fd(fd, noblock) - int fd; - wide_bool noblock; +prep_fd(int fd, wide_bool noblock) { /* Set file descriptor for non-blocking I/O */ if (noblock) diff --git a/vf.c b/vf.c @@ -51,9 +51,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ void -read_VF_index(fontp, hushcs) - struct font *fontp; - wide_bool hushcs; +read_VF_index(struct font *fontp, wide_bool hushcs) { FILE *VF_file = fontp->file; ubyte cmnd;