Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/menuc define as hex and make MC_VALID smaller so it ...



details:   https://anonhg.NetBSD.org/src/rev/63a7a29e22c2
branches:  trunk
changeset: 452245:63a7a29e22c2
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jun 23 22:46:41 2019 +0000

description:
define as hex and make MC_VALID smaller so it fits in a short.

diffstat:

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

diffs (34 lines):

diff -r 6ca8b42f7bde -r 63a7a29e22c2 usr.bin/menuc/mdb.h
--- a/usr.bin/menuc/mdb.h       Sun Jun 23 22:06:03 2019 +0000
+++ b/usr.bin/menuc/mdb.h       Sun Jun 23 22:46:41 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mdb.h,v 1.11 2019/02/25 20:47:37 martin Exp $  */
+/*     $NetBSD: mdb.h,v 1.12 2019/06/23 22:46:41 christos Exp $        */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -87,14 +87,14 @@
 };
 
 /* defines for mopt */
-#define MC_NOEXITOPT 1
-#define MC_NOBOX 2
-#define MC_SCROLL 4
-#define MC_NOSHORTCUT 8
-#define MC_NOCLEAR 16
-#define MC_DFLTEXIT 32
-#define MC_ALWAYS_SCROLL 64
-#define MC_SUBMENU 128
-#define        MC_CONTINUOUS 256
-#define MC_VALID 0x10000
+#define MC_NOEXITOPT           0x001
+#define MC_NOBOX               0x002
+#define MC_SCROLL              0x004
+#define MC_NOSHORTCUT          0x008
+#define MC_NOCLEAR             0x010
+#define MC_DFLTEXIT            0x020
+#define MC_ALWAYS_SCROLL       0x040
+#define MC_SUBMENU             0x080
+#define        MC_CONTINUOUS           0x100
+#define MC_VALID               0x200
 #endif



Home | Main Index | Thread Index | Old Index