Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/wsfontload Default bit/byte order with #define's an...



details:   https://anonhg.NetBSD.org/src/rev/cdd2875b31e9
branches:  trunk
changeset: 481221:cdd2875b31e9
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Jan 25 01:04:07 2000 +0000

description:
Default bit/byte order with #define's and fix usage().

diffstat:

 usr.sbin/wsfontload/wsfontload.c |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (46 lines):

diff -r d79935b01fe1 -r cdd2875b31e9 usr.sbin/wsfontload/wsfontload.c
--- a/usr.sbin/wsfontload/wsfontload.c  Tue Jan 25 01:03:21 2000 +0000
+++ b/usr.sbin/wsfontload/wsfontload.c  Tue Jan 25 01:04:07 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
+/* $NetBSD: wsfontload.c,v 1.3 2000/01/25 01:04:07 ad Exp $ */
 
 /*
  * Copyright (c) 1999
@@ -42,10 +42,12 @@
 
 #include <dev/wscons/wsconsio.h>
 
-#define DEFDEV "/dev/ttyEcfg"
-#define DEFWIDTH 8
-#define DEFHEIGHT 16
-#define DEFENC WSDISPLAY_FONTENC_ISO
+#define DEFDEV         "/dev/ttyEcfg"
+#define DEFWIDTH       8
+#define DEFHEIGHT      16
+#define DEFENC         WSDISPLAY_FONTENC_ISO
+#define DEFBITORDER    WSDISPLAY_FONTORDER_L2R
+#define DEFBYTEORDER   WSDISPLAY_FONTORDER_L2R
 
 int main __P((int, char**));
 static void usage __P((void));
@@ -58,7 +60,7 @@
 
        (void)fprintf(stderr,
                "Usage: %s [-f wsdev] [-w width] [-h height] [-e encoding]"
-               " [-N name] [fontfile]\n",
+               " [-N name] [-b] [-B] [fontfile]\n",
                      __progname);
        exit(1);
 }
@@ -82,8 +84,8 @@
        f.stride = 0;
        f.encoding = DEFENC;
        f.name = 0;
-       f.bitorder = WSDISPLAY_FONTORDER_L2R;
-       f.byteorder = WSDISPLAY_FONTORDER_L2R;
+       f.bitorder = DEFBITORDER;
+       f.byteorder = DEFBYTEORDER;
 
        while ((c = getopt(argc, argv, "f:w:h:e:N:bB")) != -1) {
                switch (c) {



Home | Main Index | Thread Index | Old Index