summaryrefslogtreecommitdiff
path: root/usr.bin/msgc
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1999-07-04 22:55:48 +0000
committercgd <cgd@NetBSD.org>1999-07-04 22:55:48 +0000
commit4515ccfe3e1009117a2665d4fbf42e190e8a7954 (patch)
treef056d1e9d182947ef94ee9aa21f2641ce19f101f /usr.bin/msgc
parentb62c0ee8ad1681a6d0e08bd516a2d152d288ba74 (diff)
nuke msg_printf() and msg_printf_add().
Diffstat (limited to 'usr.bin/msgc')
-rw-r--r--usr.bin/msgc/msg_sys.def26
-rw-r--r--usr.bin/msgc/msgc.113
-rw-r--r--usr.bin/msgc/msgdb.c4
3 files changed, 3 insertions, 40 deletions
diff --git a/usr.bin/msgc/msg_sys.def b/usr.bin/msgc/msg_sys.def
index 2b31ecb671e..25a68a10b31 100644
--- a/usr.bin/msgc/msg_sys.def
+++ b/usr.bin/msgc/msg_sys.def
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_sys.def,v 1.16 1999/07/04 21:30:14 cgd Exp $ */
+/* $NetBSD: msg_sys.def,v 1.17 1999/07/04 22:55:48 cgd Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -245,30 +245,6 @@ void msg_display_add(msg msg_no, ...)
va_end (ap);
}
-int msg_printf (const char *fmt, ...)
-{
- va_list ap;
- int res;
-
- msg_clear();
-
- va_start (ap, fmt);
- res = _msg_vprintf(1, fmt, ap);
- va_end (ap);
- return res;
-}
-
-int msg_printf_add (const char *fmt, ...)
-{
- va_list ap;
- int res;
-
- va_start (ap, fmt);
- res = _msg_vprintf(1, fmt, ap);
- va_end (ap);
- return res;
-}
-
static void
_msg_vprompt(const char *msg, int do_echo, const char *def, char *val,
diff --git a/usr.bin/msgc/msgc.1 b/usr.bin/msgc/msgc.1
index 450bace6671..ecc82b023be 100644
--- a/usr.bin/msgc/msgc.1
+++ b/usr.bin/msgc/msgc.1
@@ -1,4 +1,4 @@
-.\" $NetBSD: msgc.1,v 1.9 1999/07/04 21:30:14 cgd Exp $
+.\" $NetBSD: msgc.1,v 1.10 1999/07/04 22:55:48 cgd Exp $
.\"
.\" Copyright 1997 Piermont Information Systems Inc.
.\" All rights reserved.
@@ -59,10 +59,6 @@ msgc
.Fn msg_display "msg msg_no" ...
.Ft void
.Fn msg_display_add "msg msg_no" ...
-.Ft int
-.Fn msg_printf "const char *fmt" ...
-.Ft int
-.Fn msg_printf_add "const char *fmt" ...
.Ft void
.Fn msg_prompt "msg msg_no" "const char *def" "char *val" "int max_chars" ...
.Ft void
@@ -124,13 +120,6 @@ cause a defined message to be displayed in the message window and does
the requested conversions before printing. The difference is that
.Fn msg_display
clears the window before displaying the message.
-The functions
-.Fn msg_printf and
-.Fn msg_printf_add
-print to the message window but take the format string from the function
-call instead of the message directory. Again, the first version,
-.Fn msg_printf ,
-clears the window before printing.
.Pp
The remaining functions deal with a prompt facility. A prompt message
is either taken from the message directory or from a given string. The
diff --git a/usr.bin/msgc/msgdb.c b/usr.bin/msgc/msgdb.c
index 9ec801dde6b..bfd77d6497e 100644
--- a/usr.bin/msgc/msgdb.c
+++ b/usr.bin/msgc/msgdb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: msgdb.c,v 1.10 1999/07/04 21:30:15 cgd Exp $ */
+/* $NetBSD: msgdb.c,v 1.11 1999/07/04 22:55:48 cgd Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -151,8 +151,6 @@ write_msg_file ()
"void msg_standend(void);\n"
"void msg_display(msg msg_no,...);\n"
"void msg_display_add(msg msg_no,...);\n"
- "int msg_printf (const char *fmt, ...);\n"
- "int msg_printf_add (const char *fmt, ...);\n"
"void msg_prompt (msg msg_no, const char *def,"
" char *val, int max_chars, ...);\n"
"void msg_prompt_add (msg msg_no, const char *def,"