Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/dev More variable naming pedantry.



details:   https://anonhg.NetBSD.org/src/rev/3330f26fa5ca
branches:  trunk
changeset: 479858:3330f26fa5ca
user:      ad <ad%NetBSD.org@localhost>
date:      Thu Dec 23 15:42:06 1999 +0000

description:
More variable naming pedantry.

diffstat:

 sys/arch/pmax/dev/lk201.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (62 lines):

diff -r 3b73f1ac3d26 -r 3330f26fa5ca sys/arch/pmax/dev/lk201.c
--- a/sys/arch/pmax/dev/lk201.c Thu Dec 23 15:34:17 1999 +0000
+++ b/sys/arch/pmax/dev/lk201.c Thu Dec 23 15:42:06 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lk201.c,v 1.16 1999/12/23 15:34:18 ad Exp $    */
+/*     $NetBSD: lk201.c,v 1.17 1999/12/23 15:42:06 ad Exp $    */
 
 /*
  * The LK201 keycode mapping routine is here, along with initialization
@@ -159,7 +159,7 @@
 /*
  * Keyboard initialization string.
  */
-static u_char kbdInitString[] = {
+static u_char lk_initstr[] = {
        LK_LED_ENABLE, LED_ALL,         /* show we are resetting keyboard */
        LK_DEFAULTS,
        LK_CMD_MODE(LK_AUTODOWN, 1),
@@ -193,7 +193,7 @@
        int     ts_keycode;
        int     ts_len;
        char    *ts_string;
-} static toString[] = {                                /* termcap name */
+} static lk_keytostr[] = {                     /* termcap name */
        { KBD_UP,       3, "\033[A" },          /* ku */
        { KBD_DOWN,     3, "\033[B" },          /* kd */
        { KBD_RIGHT,    3, "\033[C" },          /* kr */
@@ -203,7 +203,7 @@
        { KBD_PREVIOUS, 6, "\033[216z" },       /* kP */
 };
 
-#define NUM_TOSTRING (sizeof(toString) / sizeof(toString[0]))
+#define NUM_KEYTOSTR (sizeof(lk_keytostr) / sizeof(lk_keytostr[0]))
 
 static void    (*raw_kbd_putc) __P((dev_t dev, int c)) = NULL;
 static int     (*raw_kbd_getc) __P((dev_t dev)) = NULL;
@@ -225,8 +225,8 @@
                return;
        inlk_reset = 1;
 
-       for (i = 0; i < sizeof(kbdInitString); i++) {
-               (*putc)(kbddev, (int)kbdInitString[i]);
+       for (i = 0; i < sizeof(lk_initstr); i++) {
+               (*putc)(kbddev, (int)lk_initstr[i]);
                DELAY(20000);
        }
 
@@ -318,10 +318,10 @@
                cc = KBD_RET;
        else if (cc >= KBD_NOKEY) {
                /* Check for keys that have multi-character codes */
-               for (i = 0; i < NUM_TOSTRING; i++)
-                       if (toString[i].ts_keycode == cc) {
-                               cp = toString[i].ts_string;
-                               *len = toString[i].ts_len;
+               for (i = 0; i < NUM_KEYTOSTR; i++)
+                       if (lk_keytostr[i].ts_keycode == cc) {
+                               cp = lk_keytostr[i].ts_string;
+                               *len = lk_keytostr[i].ts_len;
                                break;
                        }
 



Home | Main Index | Thread Index | Old Index