Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/menuc/testm Catch up with current menuc.



details:   https://anonhg.NetBSD.org/src/rev/29d930f8ae8b
branches:  trunk
changeset: 570009:29d930f8ae8b
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Fri Sep 17 18:16:44 2004 +0000

description:
Catch up with current menuc.

diffstat:

 usr.bin/menuc/testm/main.c |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (68 lines):

diff -r a69ceb6b1f32 -r 29d930f8ae8b usr.bin/menuc/testm/main.c
--- a/usr.bin/menuc/testm/main.c        Fri Sep 17 18:16:31 2004 +0000
+++ b/usr.bin/menuc/testm/main.c        Fri Sep 17 18:16:44 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.5 2003/06/04 19:07:40 dsl Exp $     */
+/*     $NetBSD: main.c,v 1.6 2004/09/17 18:16:44 wrstuden Exp $        */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -58,9 +58,9 @@
 
 /* opt processing routines .. */
 
-int opt_1 (struct menudesc *m);
+int opt_1 (struct menudesc *m, void *p);
 
-int opt_1 (struct menudesc *m)
+int opt_1 (struct menudesc *m, void *p)
 {
        msg_clear();
        msg_prompt (MSG_name, "", &ent_text[0][6], 40);
@@ -68,9 +68,9 @@
        return 0;
 }
 
-int opt_2 (struct menudesc *m);
+int opt_2 (struct menudesc *m, void *p);
 
-int opt_2 (struct menudesc *m)
+int opt_2 (struct menudesc *m, void *p)
 {
        msg_clear();
        msg_prompt (MSG_street, "", &ent_text[1][6], 40);
@@ -78,9 +78,9 @@
        return 0;
 }
 
-int opt_3 (struct menudesc *m);
+int opt_3 (struct menudesc *m, void *p);
 
-int opt_3 (struct menudesc *m)
+int opt_3 (struct menudesc *m, void *p)
 {
        msg_clear();
        msg_prompt (MSG_city, "", &ent_text[2][6], 40);
@@ -100,8 +100,8 @@
 
 
 void do_dynamic(void);
-void dyn_disp (void);
-void dyn_disp (void)
+void dyn_disp (struct menudesc *, void *);
+void dyn_disp (struct menudesc *m, void *p)
 {
     sprintf (&ent_text[4][5], "%d", num++);
 }
@@ -112,9 +112,9 @@
 
        num = 0;
        menu_no = new_menu ("  A test dynamic menu! ", mymenu, 5, 10, 10,
-               0, 55, MC_SCROLL, dyn_disp, NULL,
+               0, 55, MC_SCROLL, dyn_disp, NULL, NULL,
                "Make sure you try at least one option before exiting.\n"
-               "Then look at what changes.\n");
+               "Then look at what changes.\n", "Done now!");
        if (menu_no < 0) {
                endwin();
                (void) fprintf (stderr, "Dynamic memu creation failure. \n");



Home | Main Index | Thread Index | Old Index