NOSTATICFN for src/*

This commit is contained in:
nhkeni
2024-03-14 17:41:51 -04:00
parent d523041b60
commit 9c0ed8ae63
111 changed files with 3871 additions and 3879 deletions

View File

@@ -60,25 +60,23 @@ extern void *trace_procs_chain(int, int, void *, void *, void *);
#endif
#if defined(WINCHAIN) || defined(TTY_GRAPHICS)
static struct win_choices *win_choices_find(const char *s) NONNULLARG1;
staticfn struct win_choices *win_choices_find(const char *s) NONNULLARG1;
#endif
static void def_raw_print(const char *s) NONNULLARG1;
static void def_wait_synch(void);
static boolean get_menu_coloring(const char *, int *, int *) NONNULLPTRS;
staticfn void def_raw_print(const char *s) NONNULLARG1;
staticfn void def_wait_synch(void);
staticfn boolean get_menu_coloring(const char *, int *, int *) NONNULLPTRS;
#ifdef DUMPLOG
static winid dump_create_nhwindow(int);
static void dump_clear_nhwindow(winid);
static void dump_display_nhwindow(winid, boolean);
static void dump_destroy_nhwindow(winid);
static void dump_start_menu(winid, unsigned long);
static void dump_add_menu(winid, const glyph_info *, const ANY_P *, char,
staticfn winid dump_create_nhwindow(int);
staticfn void dump_clear_nhwindow(winid);
staticfn void dump_display_nhwindow(winid, boolean);
staticfn void dump_destroy_nhwindow(winid);
staticfn void dump_start_menu(winid, unsigned long);
staticfn void dump_add_menu(winid, const glyph_info *, const ANY_P *, char,
char, int, int, const char *, unsigned int);
static void dump_end_menu(winid, const char *);
static int dump_select_menu(winid, int, MENU_ITEM_P **);
static void dump_putstr(winid, int, const char *);
#endif /* DUMPLOG */
staticfn void dump_end_menu(winid, const char *);
staticfn int dump_select_menu(winid, int, MENU_ITEM_P **);
staticfn void dump_putstr(winid, int, const char *);
#ifdef HANGUPHANDLING
volatile
@@ -155,7 +153,7 @@ struct winlink {
static struct winlink *chain = 0;
static struct winlink *
staticfn struct winlink *
wl_new(void)
{
struct winlink *wl = (struct winlink *) alloc(sizeof *wl);
@@ -167,14 +165,14 @@ wl_new(void)
return wl;
}
static void
staticfn void
wl_addhead(struct winlink *wl)
{
wl->nextlink = chain;
chain = wl;
}
static void
staticfn void
wl_addtail(struct winlink *wl)
{
struct winlink *p = chain;
@@ -203,14 +201,14 @@ genl_can_suspend_yes(void)
return TRUE;
}
static
staticfn
void
def_raw_print(const char *s)
{
puts(s);
}
static
staticfn
void
def_wait_synch(void)
{
@@ -249,7 +247,7 @@ check_tty_wincap2(unsigned long wincap2)
#endif
#if defined(WINCHAIN) || defined(TTY_GRAPHICS)
static struct win_choices *
staticfn struct win_choices *
win_choices_find(const char *s)
{
int i;
@@ -520,44 +518,44 @@ genl_putmsghistory(const char *msg, boolean is_restoring)
* in order to avoid all terminal I/O after hangup/disconnect.
*/
static int hup_nhgetch(void);
static char hup_yn_function(const char *, const char *, char);
static int hup_nh_poskey(coordxy *, coordxy *, int *);
static void hup_getlin(const char *, char *);
static void hup_init_nhwindows(int *, char **);
static void hup_exit_nhwindows(const char *);
static winid hup_create_nhwindow(int);
static int hup_select_menu(winid, int, MENU_ITEM_P **);
static void hup_add_menu(winid, const glyph_info *, const anything *, char,
staticfn int hup_nhgetch(void);
staticfn char hup_yn_function(const char *, const char *, char);
staticfn int hup_nh_poskey(coordxy *, coordxy *, int *);
staticfn void hup_getlin(const char *, char *);
staticfn void hup_init_nhwindows(int *, char **);
staticfn void hup_exit_nhwindows(const char *);
staticfn winid hup_create_nhwindow(int);
staticfn int hup_select_menu(winid, int, MENU_ITEM_P **);
staticfn void hup_add_menu(winid, const glyph_info *, const anything *, char,
char, int, int, const char *, unsigned int);
static void hup_end_menu(winid, const char *);
static void hup_putstr(winid, int, const char *);
static void hup_print_glyph(winid, coordxy, coordxy, const glyph_info *,
staticfn void hup_end_menu(winid, const char *);
staticfn void hup_putstr(winid, int, const char *);
staticfn void hup_print_glyph(winid, coordxy, coordxy, const glyph_info *,
const glyph_info *);
static void hup_outrip(winid, int, time_t);
static void hup_curs(winid, int, int);
static void hup_display_nhwindow(winid, boolean);
static void hup_display_file(const char *, boolean);
staticfn void hup_outrip(winid, int, time_t);
staticfn void hup_curs(winid, int, int);
staticfn void hup_display_nhwindow(winid, boolean);
staticfn void hup_display_file(const char *, boolean);
#ifdef CLIPPING
static void hup_cliparound(int, int);
staticfn void hup_cliparound(int, int);
#endif
#ifdef CHANGE_COLOR
static void hup_change_color(int, long, int);
staticfn void hup_change_color(int, long, int);
#ifdef MAC
static short hup_set_font_name(winid, char *);
staticfn short hup_set_font_name(winid, char *);
#endif
static char *hup_get_color_string(void);
staticfn char *hup_get_color_string(void);
#endif /* CHANGE_COLOR */
static void hup_status_update(int, genericptr_t, int, int, int,
staticfn void hup_status_update(int, genericptr_t, int, int, int,
unsigned long *);
static int hup_int_ndecl(void);
static void hup_void_ndecl(void);
static void hup_void_fdecl_int(int);
static void hup_void_fdecl_winid(winid);
static void hup_void_fdecl_winid_ulong(winid, unsigned long);
static void hup_void_fdecl_constchar_p(const char *);
static win_request_info *hup_ctrl_nhwindow(winid, int, win_request_info *);
staticfn int hup_int_ndecl(void);
staticfn void hup_void_ndecl(void);
staticfn void hup_void_fdecl_int(int);
staticfn void hup_void_fdecl_winid(winid);
staticfn void hup_void_fdecl_winid_ulong(winid, unsigned long);
staticfn void hup_void_fdecl_constchar_p(const char *);
staticfn win_request_info *hup_ctrl_nhwindow(winid, int, win_request_info *);
static struct window_procs hup_procs = {
WPID(hup), 0L, 0L,
@@ -641,7 +639,7 @@ nhwindows_hangup(void)
windowprocs.win_getmsghistory = previnterface_getmsghistory;
}
static void
staticfn void
hup_exit_nhwindows(const char *lastgasp)
{
/* core has called exit_nhwindows(); call the previous interface's
@@ -655,14 +653,14 @@ hup_exit_nhwindows(const char *lastgasp)
iflags.window_inited = FALSE;
}
static int
staticfn int
hup_nhgetch(void)
{
return '\033'; /* ESC */
}
/*ARGSUSED*/
static char
staticfn char
hup_yn_function(
const char *prompt UNUSED,
const char *resp UNUSED,
@@ -674,35 +672,35 @@ hup_yn_function(
}
/*ARGSUSED*/
static int
staticfn int
hup_nh_poskey(coordxy *x UNUSED, coordxy *y UNUSED, int *mod UNUSED)
{
return '\033';
}
/*ARGSUSED*/
static void
staticfn void
hup_getlin(const char *prompt UNUSED, char *outbuf)
{
Strcpy(outbuf, "\033");
}
/*ARGSUSED*/
static void
staticfn void
hup_init_nhwindows(int *argc_p UNUSED, char **argv UNUSED)
{
iflags.window_inited = TRUE;
}
/*ARGUSED*/
static winid
staticfn winid
hup_create_nhwindow(int type UNUSED)
{
return WIN_ERR;
}
/*ARGSUSED*/
static int
staticfn int
hup_select_menu(
winid window UNUSED,
int how UNUSED,
@@ -712,7 +710,7 @@ hup_select_menu(
}
/*ARGSUSED*/
static void
staticfn void
hup_add_menu(
winid window UNUSED,
const glyph_info *glyphinfo UNUSED,
@@ -728,21 +726,21 @@ hup_add_menu(
}
/*ARGSUSED*/
static void
staticfn void
hup_end_menu(winid window UNUSED, const char *prompt UNUSED)
{
return;
}
/*ARGSUSED*/
static void
staticfn void
hup_putstr(winid window UNUSED, int attr UNUSED, const char *text UNUSED)
{
return;
}
/*ARGSUSED*/
static void
staticfn void
hup_print_glyph(
winid window UNUSED,
coordxy x UNUSED, coordxy y UNUSED,
@@ -753,28 +751,28 @@ hup_print_glyph(
}
/*ARGSUSED*/
static void
staticfn void
hup_outrip(winid tmpwin UNUSED, int how UNUSED, time_t when UNUSED)
{
return;
}
/*ARGSUSED*/
static void
staticfn void
hup_curs(winid window UNUSED, int x UNUSED, int y UNUSED)
{
return;
}
/*ARGSUSED*/
static void
staticfn void
hup_display_nhwindow(winid window UNUSED, boolean blocking UNUSED)
{
return;
}
/*ARGSUSED*/
static void
staticfn void
hup_display_file(const char *fname UNUSED, boolean complain UNUSED)
{
return;
@@ -782,7 +780,7 @@ hup_display_file(const char *fname UNUSED, boolean complain UNUSED)
#ifdef CLIPPING
/*ARGSUSED*/
static void
staticfn void
hup_cliparound(int x UNUSED, int y UNUSED)
{
return;
@@ -791,7 +789,7 @@ hup_cliparound(int x UNUSED, int y UNUSED)
#ifdef CHANGE_COLOR
/*ARGSUSED*/
static void
staticfn void
hup_change_color(int color, int reverse, long rgb)
{
return;
@@ -799,14 +797,14 @@ hup_change_color(int color, int reverse, long rgb)
#ifdef MAC
/*ARGSUSED*/
static short
staticfn short
hup_set_font_name(winid window, char *fontname)
{
return 0;
}
#endif /* MAC */
static char *
staticfn char *
hup_get_color_string(void)
{
return (char *) 0;
@@ -814,7 +812,7 @@ hup_get_color_string(void)
#endif /* CHANGE_COLOR */
/*ARGSUSED*/
static void
staticfn void
hup_status_update(
int idx UNUSED, genericptr_t ptr UNUSED,
int chg UNUSED, int pc UNUSED,
@@ -827,34 +825,34 @@ hup_status_update(
* Non-specific stubs.
*/
static int
staticfn int
hup_int_ndecl(void)
{
return -1;
}
static void
staticfn void
hup_void_ndecl(void)
{
return;
}
/*ARGUSED*/
static void
staticfn void
hup_void_fdecl_int(int arg UNUSED)
{
return;
}
/*ARGUSED*/
static void
staticfn void
hup_void_fdecl_winid(winid window UNUSED)
{
return;
}
/*ARGUSED*/
static void
staticfn void
hup_void_fdecl_winid_ulong(
winid window UNUSED,
unsigned long mbehavior UNUSED)
@@ -863,7 +861,7 @@ hup_void_fdecl_winid_ulong(
}
/*ARGUSED*/
static void
staticfn void
hup_void_fdecl_constchar_p(const char *string UNUSED)
{
return;
@@ -1283,49 +1281,49 @@ dump_forward_putstr(winid win, int attr, const char *str, int no_forward)
}
/*ARGSUSED*/
static void
staticfn void
dump_putstr(winid win UNUSED, int attr UNUSED, const char *str)
{
if (dumplog_file)
fprintf(dumplog_file, "%s\n", str);
}
static winid
staticfn winid
dump_create_nhwindow(int type UNUSED)
{
return WIN_ERR;
}
/*ARGUSED*/
static void
staticfn void
dump_clear_nhwindow(winid win UNUSED)
{
return;
}
/*ARGSUSED*/
static void
staticfn void
dump_display_nhwindow(winid win UNUSED, boolean p UNUSED)
{
return;
}
/*ARGUSED*/
static void
staticfn void
dump_destroy_nhwindow(winid win UNUSED)
{
return;
}
/*ARGUSED*/
static void
staticfn void
dump_start_menu(winid win UNUSED, unsigned long mbehavior UNUSED)
{
return;
}
/*ARGSUSED*/
static void
staticfn void
dump_add_menu(winid win UNUSED,
const glyph_info *glyphinfo,
const anything *identifier UNUSED,
@@ -1345,7 +1343,7 @@ dump_add_menu(winid win UNUSED,
}
/*ARGSUSED*/
static void
staticfn void
dump_end_menu(winid win UNUSED, const char *str)
{
if (dumplog_file) {
@@ -1356,7 +1354,7 @@ dump_end_menu(winid win UNUSED, const char *str)
}
}
static int
staticfn int
dump_select_menu(winid win UNUSED, int how UNUSED, menu_item **item)
{
*item = (menu_item *) 0;
@@ -1830,7 +1828,7 @@ add_menu_str(winid tmpwin, const char *buf)
buf, MENU_ITEMFLAGS_NONE);
}
static boolean
staticfn boolean
get_menu_coloring(const char *str, int *color, int *attr)
{
struct menucoloring *tmpmc;