wdvi

network DVI viewer
Log | Files | Refs

commit 04001736d88e37baec97929d0efe9fc4073ffd93
parent b110763b35f284b0df51d704dd07dcb958ff2cc3
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Wed, 22 Sep 2021 00:26:39 +0000

make some function declarations real prototypes

Diffstat:
Mdvi-draw.c | 2+-
Mfilefind.c | 14++++++--------
Mfont-open.c | 1+
Mhttp.c | 1+
Mpopups.c | 8++++----
Mxdvi.c | 2+-
6 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/dvi-draw.c b/dvi-draw.c @@ -90,7 +90,7 @@ BMUNIT bit_masks[33] = { #endif #endif -static void draw_part(); +static void draw_part(struct frame *, double); /* * X routines. diff --git a/filefind.c b/filefind.c @@ -168,9 +168,9 @@ static struct lsr *lsrtab[1024]; /* hash table */ * Forward references. */ -static void dobrace(); -static struct steprec *scan_pct_s(); -static void atomize_pct_s(); +static void dobrace(const char *, unsigned, int, Boolean); +static struct steprec *scan_pct_s(void); +static void atomize_pct_s(void); #if !EXTERN_FFLINE @@ -459,14 +459,12 @@ prescan2(sp, p, skip) * p = input string pointer; it should point to the opening brace. * pos = position within ffline[] for output string. * level = nesting depth. + * + * skip: true if initial / does not mean // */ static void -dobrace(p, pos0, level, skip) - const char *p; - unsigned pos0; - int level; - Boolean skip; /* true if initial / does not mean // */ +dobrace(const char *p, unsigned pos0, int level, Boolean skip) { int lev; int level1; diff --git a/font-open.c b/font-open.c @@ -35,6 +35,7 @@ NOTE: #include "font.h" /* struct avl_t1 */ #include "filf-app.h" /* application-related defs, etc. */ #include "filefind.h" +#include "font-open.h" #include "util.h" /* xmalloc(), xmemdup(), avladd(), ... */ diff --git a/http.c b/http.c @@ -28,6 +28,7 @@ #include <openssl/evp.h> /* OpenSSL_add_all_algorithms() */ #include <openssl/ssl.h> /* SSL_read(), SSL_write() */ +#include "http.h" #include "popups.h" /* warning_popup_long() */ #include "util.h" /* xmalloc() */ diff --git a/popups.c b/popups.c @@ -268,7 +268,7 @@ warning_popup_long(const char *format, * Confirm popup - Pop up a window and ask a yes/no question. */ -Widget +static Widget confirm_popup(message, button_name, callback, yes_answer, no_answer) const char *message; const char *button_name; @@ -364,7 +364,7 @@ static Widget printlog_keep; /* Forward reference */ -static void print_precheck(); +static void print_precheck(void); static void @@ -460,7 +460,7 @@ cb_range(w, client_data, call_data) } /* ARGSUSED */ -void +static void range_handle_key(widget, closure, ev, cont) Widget widget; XtPointer closure; @@ -959,7 +959,7 @@ static int dvips_sig; /* SIGINT or SIGKILL */ /* Forward reference */ -static void print_do_it(); +static void print_do_it(void); static int getpageno(w) diff --git a/xdvi.c b/xdvi.c @@ -581,7 +581,7 @@ compile_wheel_actions() *wactpp = NULL; } -void +static void set_default_winsize() { Dimension addr_bwidth;