Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/msgc nuke msg_printf() and msg_printf_add().



details:   https://anonhg.NetBSD.org/src/rev/4c32a425e3a2
branches:  trunk
changeset: 474392:4c32a425e3a2
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sun Jul 04 22:55:48 1999 +0000

description:
nuke msg_printf() and msg_printf_add().

diffstat:

 usr.bin/msgc/msg_sys.def |  26 +-------------------------
 usr.bin/msgc/msgc.1      |  13 +------------
 usr.bin/msgc/msgdb.c     |   4 +---
 3 files changed, 3 insertions(+), 40 deletions(-)

diffs (92 lines):

diff -r 9d367596c2c6 -r 4c32a425e3a2 usr.bin/msgc/msg_sys.def
--- a/usr.bin/msgc/msg_sys.def  Sun Jul 04 22:52:22 1999 +0000
+++ b/usr.bin/msgc/msg_sys.def  Sun Jul 04 22:55:48 1999 +0000
@@ -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 @@
        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 -r 9d367596c2c6 -r 4c32a425e3a2 usr.bin/msgc/msgc.1
--- a/usr.bin/msgc/msgc.1       Sun Jul 04 22:52:22 1999 +0000
+++ b/usr.bin/msgc/msgc.1       Sun Jul 04 22:55:48 1999 +0000
@@ -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 @@
 .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 @@
 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 -r 9d367596c2c6 -r 4c32a425e3a2 usr.bin/msgc/msgdb.c
--- a/usr.bin/msgc/msgdb.c      Sun Jul 04 22:52:22 1999 +0000
+++ b/usr.bin/msgc/msgdb.c      Sun Jul 04 22:55:48 1999 +0000
@@ -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 @@
                "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,"



Home | Main Index | Thread Index | Old Index