Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.bin/menuc pull up rev(s) 1.13-1.14 from trunk. (cgd)



details:   https://anonhg.NetBSD.org/src/rev/822d9447dfca
branches:  netbsd-1-4
changeset: 468945:822d9447dfca
user:      cgd <cgd%NetBSD.org@localhost>
date:      Thu Jun 24 00:52:02 1999 +0000

description:
pull up rev(s) 1.13-1.14 from trunk. (cgd)

diffstat:

 usr.bin/menuc/mdb.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r f1968dad8a75 -r 822d9447dfca usr.bin/menuc/mdb.c
--- a/usr.bin/menuc/mdb.c       Thu Jun 24 00:51:55 1999 +0000
+++ b/usr.bin/menuc/mdb.c       Thu Jun 24 00:52:02 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mdb.c,v 1.12 1998/07/23 17:56:00 phil Exp $    */
+/*     $NetBSD: mdb.c,v 1.12.2.1 1999/06/24 00:52:02 cgd Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -184,6 +184,7 @@
                "       menu_ent *opts;\n"
                "       WINDOW   *mw;\n"
                "       char     *helpstr;\n"
+               "       char     *exitstr;\n"
                "       void    (*post_act)(void);\n"
                "       void    (*exit_act)(void);\n"
                "} menudesc ;\n"
@@ -203,6 +204,7 @@
                "extern int __m_endwin;\n"
                "\n"
                "/* Prototypes */\n"
+               "int menu_init (void);\n"
                "void process_menu (int num);\n"
                "void __menu_initerror (void);\n"
                );
@@ -346,6 +348,13 @@
                                }
                        (void) fprintf (out_file, "\"");
                }
+               (void) fprintf (out_file, ",");
+               if (menus[i]->info->mopt & NOEXITOPT)
+                       (void) fprintf (out_file, "NULL");
+               else if (menus[i]->info->exitstr != NULL)
+                       (void) fprintf (out_file, menus[i]->info->exitstr);
+               else
+                       (void) fprintf (out_file, "\"Exit\"");
                if (strlen(menus[i]->info->postact.code))
                        (void) fprintf (out_file, ",menu_%d_postact", i);
                else



Home | Main Index | Thread Index | Old Index