privatize msg_beep

This commit is contained in:
cgd 1999-07-04 10:35:19 +00:00
parent 4443f1b7ab
commit 8b6866fc0b
3 changed files with 9 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: msg_sys.def,v 1.13 1999/07/04 10:29:30 cgd Exp $ */
/* $NetBSD: msg_sys.def,v 1.14 1999/07/04 10:35:19 cgd Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -43,15 +43,17 @@ static size_t cbuffersize;
static int last_i_was_nl, last_i_was_space;
static int last_o_was_punct, last_o_was_space;
static void _msg_beep(void);
static int _msg_vprintf(int auto_fill, char *fmt, va_list ap);
static void _msg_vprompt(char *msg, int do_echo, char *def, char *val,
int max_chars, va_list ap);
/* Routines */
void msg_beep (void)
static void
msg_beep(void)
{
fprintf (stderr, "\a");
fprintf(stderr, "\a");
}
int msg_window(WINDOW *window)
@ -297,7 +299,7 @@ _msg_vprompt(char *msg, int do_echo, char *def, char *val, int max_chars,
wdelch(msg_win);
}
} else
msg_beep ();
_msg_beep();
} else if (ch == 0x15) { /* ^U; line kill */
while (count > 0) {
count--;
@ -337,7 +339,7 @@ _msg_vprompt(char *msg, int do_echo, char *def, char *val, int max_chars,
waddch (msg_win, ch);
ibuf[count++] = ch;
} else
msg_beep ();
_msg_beep();
if (do_echo)
wrefresh(msg_win);
}

View File

@ -1,4 +1,4 @@
.\" $NetBSD: msgc.1,v 1.7 1999/07/04 10:29:30 cgd Exp $
.\" $NetBSD: msgc.1,v 1.8 1999/07/04 10:35:19 cgd Exp $
.\"
.\" Copyright 1997 Piermont Information Systems Inc.
.\" All rights reserved.
@ -47,8 +47,6 @@ msgc
.Fd #include \b'"'msg_defs.h\b'"'
.Ft void
.Fn msg_window "WINDOW *window"
.Ft void
.Fn msg_beep "void"
.Ft char *
.Fn msg_string "int msg_no"
.Ft void

View File

@ -1,4 +1,4 @@
/* $NetBSD: msgdb.c,v 1.8 1999/07/04 10:29:30 cgd Exp $ */
/* $NetBSD: msgdb.c,v 1.9 1999/07/04 10:35:19 cgd Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -142,7 +142,6 @@ write_msg_file ()
"#include <curses.h>\n"
"\n"
"/* Prototypes */\n"
"void msg_beep(void);\n"
"int msg_window(WINDOW *window);\n"
"char *msg_string (int msg_no);\n"
"void msg_clear(void);\n"