Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/msgc privatize msg_beep
details: https://anonhg.NetBSD.org/src/rev/e09df86b2c2f
branches: trunk
changeset: 474363:e09df86b2c2f
user: cgd <cgd%NetBSD.org@localhost>
date: Sun Jul 04 10:35:19 1999 +0000
description:
privatize msg_beep
diffstat:
usr.bin/msgc/msg_sys.def | 12 +++++++-----
usr.bin/msgc/msgc.1 | 4 +---
usr.bin/msgc/msgdb.c | 3 +--
3 files changed, 9 insertions(+), 10 deletions(-)
diffs (82 lines):
diff -r ffd2db5e1f5f -r e09df86b2c2f usr.bin/msgc/msg_sys.def
--- a/usr.bin/msgc/msg_sys.def Sun Jul 04 10:29:30 1999 +0000
+++ b/usr.bin/msgc/msg_sys.def Sun Jul 04 10:35:19 1999 +0000
@@ -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 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 @@
wdelch(msg_win);
}
} else
- msg_beep ();
+ _msg_beep();
} else if (ch == 0x15) { /* ^U; line kill */
while (count > 0) {
count--;
@@ -337,7 +339,7 @@
waddch (msg_win, ch);
ibuf[count++] = ch;
} else
- msg_beep ();
+ _msg_beep();
if (do_echo)
wrefresh(msg_win);
}
diff -r ffd2db5e1f5f -r e09df86b2c2f usr.bin/msgc/msgc.1
--- a/usr.bin/msgc/msgc.1 Sun Jul 04 10:29:30 1999 +0000
+++ b/usr.bin/msgc/msgc.1 Sun Jul 04 10:35:19 1999 +0000
@@ -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 @@
.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
diff -r ffd2db5e1f5f -r e09df86b2c2f usr.bin/msgc/msgdb.c
--- a/usr.bin/msgc/msgdb.c Sun Jul 04 10:29:30 1999 +0000
+++ b/usr.bin/msgc/msgdb.c Sun Jul 04 10:35:19 1999 +0000
@@ -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 @@
"#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"
Home |
Main Index |
Thread Index |
Old Index