home *** CD-ROM | disk | FTP | other *** search
- Path: uunet!cs.utexas.edu!sun-barr!cronkite.Central.Sun.COM!exodus!eng.auburn.edu
- From: kkirksey@eng.auburn.edu (Kenneth B. Kirksey)
- Newsgroups: comp.sources.x
- Subject: v14i022: xascii -- ASCII previewer, Part01/01
- Message-ID: <19144@exodus.Eng.Sun.COM>
- Date: 28 Aug 91 01:40:49 GMT
- Sender: news@exodus.Eng.Sun.COM
- Lines: 858
- Approved: argv@sun.com
-
- Submitted-by: Kenneth B. Kirksey <kkirksey@eng.auburn.edu>
- Posting-number: Volume 14, Issue 22
- Archive-name: xascii/part01
-
- +---------------+
- Moderator's note:
- "Rogue Monster"?????
- +---------------+
-
- #!/bin/sh
- # to extract, remove the header and type "sh filename"
- if `test ! -s ./Imakefile`
- then
- echo "writing ./Imakefile"
- cat > ./Imakefile << '\Rogue\Monster\'
- LOCAL_LIBRARIES = XawClientLibs
-
- SRCS = xascii.c
- OBJS = xascii.o
-
- ComplexProgramTarget(xascii)
- \Rogue\Monster\
- else
- echo "will not over write ./Imakefile"
- fi
- if `test ! -s ./Makefile`
- then
- echo "writing ./Makefile"
- cat > ./Makefile << '\Rogue\Monster\'
- xascii: xascii.o
- cc xascii.o -lXaw -lXmu -lXt -lX11 -o xascii
-
- xascii.o: xascii.c xascii.h
- cc -c xascii.c
-
-
- \Rogue\Monster\
- else
- echo "will not over write ./Makefile"
- fi
- if `test ! -s ./README`
- then
- echo "writing ./README"
- cat > ./README << '\Rogue\Monster\'
- WHY XASCII?
-
- I wrote this one because I got fed up with having to look up the ascii
- man page every time I wanted a charater value. It`s a neat little handy
- reference to have on your desktop. A couple of instructors here have even
- taken to using it in their labs.
-
-
- DISTRIBUTION
-
- XAscii is distributed under the happiware system. If you use Xascii and
- like it, send me e-mail and let me know.
-
-
- SUPPORT & COPYRIGHT
-
- XAscii is distrubuted as is and is only guaranteed to take up space on
- your disk. It is provided without warranty, either express or implied,
- for any purpose whatsoever. I am not liable for any loss or damages arising
- from the use or possession of Xascii.
-
- XAscii is free, but copyright is held by the author. You may distribute
- Xascii freely under the following conditions:
-
- 1) All files from the original distribution (including this Readme)
- are included.
-
- 2) No modifications have been made to any of the files in said
- distribution
-
- If you find anything wrong with Xascii, let me know, but I can't promise to
- do anything about it. I'm graduating next quarter and am going to be quite
- busy until then.
-
-
- BUGS
-
- None that I know of.
-
- An OLIT Version?
-
- If anyone is interested in seeing an OLIT 2.5 version of XAscii, send
- me email. If enough people are interested, I'll take a day off and
- crank one out.
-
-
- Ken Kirksey
- Internet: kkirksey@eng.auburn.edu
- Fidonet: 3613/13.4
- AOL: kkirksey1
- \Rogue\Monster\
- else
- echo "will not over write ./README"
- fi
- if `test ! -s ./XAscii`
- then
- echo "writing ./XAscii"
- cat > ./XAscii << '\Rogue\Monster\'
-
- !------------------------------------------------------------------------------
- ! Background Color
- !------------------------------------------------------------------------------
- XAscii*background: #cccccc
-
- !------------------------------------------------------------------------------
- ! Highlight Color
- !------------------------------------------------------------------------------
- XAscii*highlightColor: red
-
- !------------------------------------------------------------------------------
- ! Value Display Font
- !------------------------------------------------------------------------------
- XAscii*valueFont: -*-courier-bold-r-*-*-*-120-*-*-*-*-*-*
- \Rogue\Monster\
- else
- echo "will not over write ./XAscii"
- fi
- if `test ! -s ./patchlevel.h`
- then
- echo "writing ./patchlevel.h"
- cat > ./patchlevel.h << '\Rogue\Monster\'
- #define PATCHLEVEL 1
- \Rogue\Monster\
- else
- echo "will not over write ./patchlevel.h"
- fi
- if `test ! -s ./xascii.1`
- then
- echo "writing ./xascii.1"
- cat > ./xascii.1 << '\Rogue\Monster\'
- .TH XASCII 1 "Release 4" "X Version 11"
- .SH NAME
- xascii - ascii character set table for X
- .SH SYNOPSIS
- .ta 8n
- \fBxascii\fP [-option]
- .br
- .SH DESCRIPTION
- The
- .I xascii
- program displays the complete ascii character set along with each character's
- value in either decimal, hexidecimal, or octal notation.
- .SH OPTIONS
- .I Xascii
- accepts all of the standard X Toolkit command line options along with the
- additional options listed below:
- .TP 8
- .B \-hc \fIcolor\fP
- This option specifies the color that the title, values, and buttons will
- be displayed in. The default is \fIred\fP.
- .TP 8
- .B \-vf \fIfont\fP
- This option specifies the font that the ascii characters and their values
- will be displayed in. The default is \fIcourier\fP.
- .SH RESOURCES
- .PP
- Application specific resources (see app defaults file for more info):
- .PP
- .TP 8
- .B "highlightColor"
- Specifies the color that the title, values, and buttons will be displayed in.
- .TP 8
- .B "valueFont"
- Specifies the font that the ASCII characters and their values will be displayed
- in.
- .PP
- .SH BUGS
- .PP
- None that I know of
- .PP
- .SH COPYRIGHT
- Copyright 1991, Ken Kirksey.
- .br
- .SH AUTHOR
- Ken Kirksey (Auburn University)
- .br
- Internet: kkirksey@eng.auburn.edu
- .br
- FidoNet: 3613/13.4
- \Rogue\Monster\
- else
- echo "will not over write ./xascii.1"
- fi
- if `test ! -s ./xascii.c`
- then
- echo "writing ./xascii.c"
- cat > ./xascii.c << '\Rogue\Monster\'
- /*****************************************************************************
- * XAscii by Ken Kirksey *
- * *
- * XAscii displays a table of ascii characters and their respective values. *
- * The user choses which format the values are displayed in: either hex, *
- * decimal or octal. *
- * *
- * BASICALLY THE WAY IT WORKS *
- * In xascii.h four static arrays of strings are declared, one for *
- * ascii characters, one for decimal values, one for hex values and one *
- * for octal values. Each of these are broken up into five separate *
- * strings, each of which make up a column (label widget) in the xascii *
- * window. The ascii value columns remain static, they never change. *
- * The label widgets that hold the values, however, change whenever the *
- * user changes the notational mode (clicks on the dec ,hex, or octal *
- * button). What happens when one of these buttons is clicked is that *
- * an XtVaSetValues is done on the value label widgets to change their *
- * label resource to display the values in the notation specified by the*
- * button press. *
- * *
- * Send all kudos, complaints, suggestions, or bug reports to: *
- * Ken Kirksey (kkirksey@eng.auburn.edu) *
- * *
- * BTW: I use 4 column tabs for coding, so if your text editor isn't set for *
- * 4 column tabs, this program probably looks really funny. *
- * *
- ******************************************************************************
- * Version 1.1 5 Aug 91 *
- * *
- * Removed the #include <strings.h> as this was a portability no-no. *
- * Added an Imakefile (courtesy of Dave Elliot) to the release archive. * * *
- ******************************************************************************
- * Version 1.2 6 Aug 91 *
- * *
- * Fixed the problem that was causing my use of the valueFont resource to *
- * kill the program. The bug was pointed out by Dave Brooks. *
- * *
- *****************************************************************************/
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <X11/Intrinsic.h>
- #include <X11/Shell.h>
- #include <X11/Xos.h>
- #include <X11/StringDefs.h>
- #include <X11/Xaw/Command.h>
- #include <X11/Xaw/Toggle.h>
- #include <X11/Xaw/Label.h>
- #include <X11/Xaw/Form.h>
- #include "xascii.h"
-
- /*===========================================================================+
- | Function Declarations |
- +===========================================================================*/
- static void Quit(), /* Callbacks */
- ToHex(),
- ToDec(),
- ToOct(),
- Done(),
-
- AboutXascii(), /* Actions */
-
- Syntax(); /* Utilitie */
-
-
- /*===========================================================================+
- | Global Variable Declarations |
- +===========================================================================*/
-
- static XtAppContext appl_context;
-
- static XtActionsRec about_box[]= {
- {"about_xascii", AboutXascii},
- };
-
- static Widget toplevel,
- base_win,
- title_label,
- quit_button,
- toggles[3],
- ascii_list[6],
- value_list[6],
- pshell,
- about_base_win,
- about_label,
- done_button;
-
- char **hex_columns,
- **decimal_columns,
- **octal_columns,
- **ascii_columns;
-
- /*===========================================================================+
- | MAIN | +===========================================================================*/
- main (argc,argv)
- int argc;
- char ** argv;
- {
- int i, j;
-
- /*---------------------------------------------------------------------------+
- | Break up the Ascii table and values into separate columns (22 rows, 6 cols)|
- | for display. |
- +---------------------------------------------------------------------------*/
- ascii_columns = (char **)XtCalloc (6, sizeof (char *));
- hex_columns = (char **) XtCalloc (6, sizeof (char *));
- decimal_columns = (char **) XtCalloc (6, sizeof (char *));
- octal_columns = (char **) XtCalloc (6, sizeof (char *));
-
- for (i=0; i<6; i++)
- {
- ascii_columns[i] = (char *) XtCalloc (90, sizeof (char));
- hex_columns[i] = (char *) XtCalloc (90, sizeof (char));
- decimal_columns[i] = (char *) XtCalloc (90, sizeof (char));
- octal_columns[i] = (char *) XtCalloc (90, sizeof (char));
-
- for (j= (i*22); j < ((i+1) * 22); j++)
- {
- strcat (ascii_columns[i], ascii_values[j]);
- strcat (ascii_columns[i], "\n");
-
- strcat (hex_columns[i], hex_values[j]);
- strcat (hex_columns[i], "\n");
-
- strcat (decimal_columns[i], decimal_values[j]);
- strcat (decimal_columns[i], "\n");
-
- strcat (octal_columns[i], octal_values[j]);
- strcat (octal_columns[i], "\n");
- }
- }
-
- /*-----------------------------------------------------------------------+
- | Begin Widget Initialization. |
- +-----------------------------------------------------------------------*/
- toplevel = XtAppInitialize(
- &appl_context,
- "XAscii",
- options,
- XtNumber(options),
- &argc,argv,NULL, NULL,0);
-
- /*-----------------------------------------------------------------------+
- | Check for Invalid command line options |
- +-----------------------------------------------------------------------*/
- if (argc > 1)
- Syntax (argc, argv);
-
- XtVaGetApplicationResources (toplevel,
- &app_data,
- resources,
- XtNumber (resources),
- NULL);
-
- base_win = XtVaCreateManagedWidget(
- "base_win",
- formWidgetClass,
- toplevel,
- NULL, 0);
-
- /*----------------------------------------------------------------------+
- | Note the translation that invokes that about box pop up on a button |
- | click in this label widget. |
- +----------------------------------------------------------------------*/
- title_label = XtVaCreateManagedWidget (
- "title_label",
- labelWidgetClass,
- base_win,
- XtNforeground, app_data.highlight_color,
- XtNlabel, "X ASCII Chart",
- XtNwidth, 408,
- XtNtranslations, XtParseTranslationTable
- (defaultTranslations),
- XtVaTypedArg,
- XtNbackground,
- XtRString,
- white_bg,
- sizeof (white_bg),
- XtVaTypedArg,
- XtNfont,
- XtRString,
- title_font,
- sizeof (title_font),
- NULL, 0);
-
- /*-----------------------------------------------------------------------+
- |Create the label widgets for chart display. Default value mode is dec. |
- +-----------------------------------------------------------------------*/
- for (i=0; i<6; i++)
- {
- value_list[i] = XtVaCreateManagedWidget(
- "value_list",
- labelWidgetClass,
- base_win,
- XtNforeground, app_data.highlight_color,
- XtNfont, app_data.value_font,
- XtNfromVert, title_label,
- XtNlabel, decimal_columns[i],
- XtNhorizDistance, 10,
- XtNborderWidth, 0,
- XtNvertDistance, 10,
- XtVaTypedArg,
- XtNbackground,
- XtRString,
- white_bg,
- sizeof (white_bg),
-
- NULL);
-
- ascii_list[i] = XtVaCreateManagedWidget(
- "ascii_list",
- labelWidgetClass,
- base_win,
- XtNfont, app_data.value_font,
- XtNfromVert, title_label,
- XtNlabel, ascii_columns[i],
- XtNfromHoriz, value_list[i],
- XtNborderWidth, 0,
- XtNvertDistance, 10,
- XtNhorizDistance, 0,
- XtVaTypedArg,
- XtNbackground,
- XtRString,
- white_bg,
- sizeof (white_bg),
-
- NULL);
-
- }
-
- for (i=1; i<6; i++)
- XtVaSetValues (value_list[i], XtNfromHoriz, ascii_list[i-1], NULL);
- /*-----------------------------------------------------------------------+
- | Create the buttons for value mode selection. Make them a radio group, |
- | so that only one will be selected (highlighted) at a time. |
- +-----------------------------------------------------------------------*/
- for (i=0; i<3; i++)
- {
- toggles[i] = XtVaCreateManagedWidget (
- "toggle",
- toggleWidgetClass,
- base_win,
- XtNforeground, app_data.highlight_color,
- XtNborderColor, app_data.highlight_color,
- XtNfromVert, ascii_list[0],
- XtNvertDistance, 15,
- XtNwidth, 95,
- XtNresize, FALSE,
- XtNhorizDistance, 30,
- XtVaTypedArg,
- XtNbackground,
- XtRString,
- white_bg,
- sizeof (white_bg),
-
- NULL, 0);
-
- if (i != 0)
- XtVaSetValues(toggles[i], XtNfromHoriz, toggles[i-1], NULL);
-
- XtVaSetValues (toggles[i], XtNradioGroup, toggles[0], NULL);
- }
-
- XtVaSetValues (toggles[0],
- XtNlabel, "Hex",
- XtNhorizDistance, 0,
- XtNfromHoriz, value_list[0],
- NULL);
-
- XtVaSetValues (toggles[1],
- XtNstate, TRUE,
- XtNlabel, "Decimal",
- NULL);
-
- XtVaSetValues (toggles[2],
- XtNlabel, "Octal",
- NULL);
-
- XtAddCallback (toggles[0], XtNcallback, ToHex, NULL);
- XtAddCallback (toggles[1], XtNcallback, ToDec, NULL);
- XtAddCallback (toggles[2], XtNcallback, ToOct, NULL);
-
-
- quit_button = XtVaCreateManagedWidget (
- "quit_button",
- commandWidgetClass,
- base_win,
- XtNfromVert, toggles[0],
- XtNfromHoriz, ascii_list[0],
- XtNlabel, "Quit",
- XtNwidth, 100,
- XtNvertDistance, 15,
- XtNhorizDistance, 95,
- XtVaTypedArg,
- XtNbackground,
- XtRString,
- white_bg,
- sizeof (white_bg),
-
- NULL, 0);
-
- XtAddCallback (quit_button, XtNcallback, Quit, NULL);
-
- /*-----------------------------------------------------------------------+
- | Create the About Box. Invoked on click in title label. |
- +-----------------------------------------------------------------------*/
- pshell = XtVaCreatePopupShell (
- "pshell",
- transientShellWidgetClass,
- toplevel,
- NULL);
-
- about_base_win = XtVaCreateManagedWidget(
- "about_base_win",
- formWidgetClass,
- pshell,
-
- NULL);
-
- about_label = XtVaCreateManagedWidget(
- "about_label",
- labelWidgetClass,
- about_base_win,
- XtVaTypedArg,
- XtNbackground,
- XtRString,
- white_bg,
- sizeof (white_bg),
- XtNlabel, about_text,
- XtNforeground, app_data.highlight_color,
- XtNborderColor, app_data.highlight_color,
- XtNborderWidth, 4,
- NULL);
-
- done_button = XtVaCreateManagedWidget(
- "done_button",
- commandWidgetClass,
- about_base_win,
- XtVaTypedArg,
- XtNbackground,
- XtRString,
- white_bg,
- sizeof (white_bg),
- XtNfromVert, about_label,
- XtNvertDistance, 10,
- XtNhorizDistance, 165,
- XtNlabel, "Slainte!",
- NULL);
-
- XtAddCallback (done_button, XtNcallback, Done, NULL);
-
- XtAppAddActions (appl_context, about_box, XtNumber(about_box) );
-
- XtRealizeWidget(toplevel);
- XtAppMainLoop(appl_context);
- }
-
- /*===========================================================================+
- | CALLBACK FUNCTIONS | +===========================================================================*/
-
- /*---------------------------------------------------------------------------+
- | Quit |
- | Quit the application. Invoked by click on quit button. |
- +---------------------------------------------------------------------------*/ static void Quit (w,ignore1,ignore2)
- Widget w; XtPointer ignore1, ignore2;
- { XtDestroyApplicationContext(appl_context);
- exit(0);
- }
-
- /*---------------------------------------------------------------------------+
- | ToHex |
- | Changes the ascii character values to Hex notation. |
- +---------------------------------------------------------------------------*/
- static void ToHex (w,ignore1,ignore2)
- Widget w; XtPointer ignore1, ignore2;
- {
- int i;
-
- for (i=0; i<6; i++)
- XtVaSetValues (value_list[i], XtNlabel, hex_columns[i], NULL);
-
- }
-
-
- /*---------------------------------------------------------------------------+
- | ToDec |
- | Changes the ascii character values to Decimal notation. |
- +---------------------------------------------------------------------------*/
- static void ToDec (w,ignore1,ignore2)
- Widget w; XtPointer ignore1, ignore2;
- {
- int i;
-
- for (i=0; i<6; i++)
- XtVaSetValues (value_list[i], XtNlabel, decimal_columns[i], NULL);
-
- }
-
-
- /*---------------------------------------------------------------------------+
- | ToOct |
- | Changest the ascii character values to Octal notation. |
- +---------------------------------------------------------------------------*/
- static void ToOct (w,ignore1,ignore2)
- Widget w; XtPointer ignore1, ignore2;
- {
- int i;
-
- for (i=0; i<6; i++)
- XtVaSetValues (value_list[i], XtNlabel, octal_columns[i], NULL);
-
- }
-
-
- /*---------------------------------------------------------------------------+
- | Done |
- | Pops down the about box popup shell. |
- +---------------------------------------------------------------------------*/
- static void Done (w,ignore1,ignore2)
- Widget w; XtPointer ignore1, ignore2;
- {
- int i;
-
- XtPopdown (pshell);
- }
-
-
- /*===========================================================================+
- | ACTION FUNCTIONS | +===========================================================================*/
-
- /*---------------------------------------------------------------------------+
- | AboutXascii |
- | Positions and pops up the about box popup shell. |
- +---------------------------------------------------------------------------*/
- static void AboutXascii (w, event, nuffin1, nuffin2)
- Widget w;
- XButtonEvent event;
- String *nuffin1;
- Cardinal *nuffin2;
- {
- Position x,
- y;
-
- Dimension width,
- height;
-
- int i;
-
- XtVaGetValues (toplevel,
- XtNwidth, &width,
- XtNheight, &height,
- NULL);
-
- XtTranslateCoords (toplevel,
- (Position) 0,
- (Position) height/2,
- &x, &y,
- NULL);
-
- XtVaSetValues (pshell,
- XtNx, x,
- XtNy, y,
- NULL);
-
- XtPopup (pshell, XtGrabNonexclusive);
- }
-
- /*===========================================================================+
- | UTILITY FUNCTIONS | +===========================================================================*/
-
- /*---------------------------------------------------------------------------+
- | Syntax |
- | Parses off bad command line options (i.e. the stuff left over when |
- | XtVaAppInitialize is through). |
- +---------------------------------------------------------------------------*/ static void Syntax (argc, argv)
- int argc;
- char **argv;
- {
- int i,
- err = 0;
-
- for (i=1; i < argc; i++)
- {
- if (!err++)
- fprintf (stderr, "\nxascii: unknown command line option\n");
-
- fprintf (stderr, "option: %s\n", argv[i]);
- }
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
- \Rogue\Monster\
- else
- echo "will not over write ./xascii.c"
- fi
- if `test ! -s ./xascii.h`
- then
- echo "writing ./xascii.h"
- cat > ./xascii.h << '\Rogue\Monster\'
- /*****************************************************************************
- * Application Resource Definitions *
- *****************************************************************************/
- #define XtNhighlightColor "highlightColor"
- #define XtCHighlightColor "HighlightColor"
- #define XtNvalueFont "valueFont"
- #define XtCValueFont "ValueFont"
-
- typedef struct
- {
- Pixel highlight_color;
- XFontStruct *value_font;
- } AppData, *AppDataPtr;
-
- AppData app_data;
-
- static XtResource resources[] = {
- {
- XtNhighlightColor,
- XtCHighlightColor,
- XtRPixel,
- sizeof (Pixel),
- XtOffset (AppDataPtr, highlight_color),
- XtRString,
- "red"
- },
- {
- XtNvalueFont,
- XtCValueFont,
- XtRFontStruct,
- sizeof (XFontStruct *),
- XtOffset (AppDataPtr, value_font),
- XtRString,
- XtDefaultFont
- },
- };
-
-
- /****************************************************************************
- * Define Command line options. *
- ****************************************************************************/
- static XrmOptionDescRec options[] =
- {
- { "-hc", "*highlightColor", XrmoptionSepArg, NULL},
- { "-highlight", "*highlightColor", XrmoptionSepArg, NULL},
- { "-vf", "*valueFont", XrmoptionSepArg, NULL},
- };
-
-
- /****************************************************************************
- * String Constants. *
- ****************************************************************************/
- static char white_bg [] = "white";
- static char grey_bg [] = "#cccccc";
-
- static char title_font[] = "-*-helvetica-bold-r-*-*-14-140-*-*-*-*-*-*";
-
- static char about_text [] =
- "X Ascii Chart by Ken Kirksey\n\
- Auburn University\n\n\
- An Exercise in Procrastination\n\
- \"I shoulda been working on my senior design project\"\n\
- March 26, 1991";
-
- static char defaultTranslations [] = "#override\n\
- <Btn1Down>: about_xascii()";
-
-
- /*****************************************************************************
- * Translation Data *
- *****************************************************************************/
- char *ascii_values[132] =
- {
- "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL",
- "BS ", "HT ", "LF ", "VT ", "FF ", "CR ", "SO ", "SI ",
- "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYC", "ETB",
- "CAN", "EM ", "SUB", "ESC", "FS ", "GS ", "RS ", "US ",
- "SPA", "! ", "\" ", "# ", "$ ", "% ", "& ", "' ",
- "( ", ") ", "* ", "+ ", ", ", "- ", ". ", "/ ",
- "0 ", "1 ", "2 ", "3 ", "4 ", "5 ", "6 ", "7 ",
- "8 ", "9 ", ": ", "; ", "< ", "= ", "> ", "? ",
- "@ ", "A ", "B ", "C ", "D ", "E ", "F ", "G ",
- "H ", "I ", "J ", "K ", "L ", "M ", "N ", "O ",
- "P ", "Q ", "R ", "S ", "T ", "U ", "V ", "W ",
- "X ", "Y ", "Z ", "[ ", "\\ ", "] ", "^ ", "_ ",
- "` ", "a ", "b ", "c ", "d ", "e ", "f ", "g ",
- "h ", "i ", "j ", "k ", "l ", "m ", "n ", "o ",
- "p ", "q ", "r ", "s ", "t ", "u ", "v ", "w ",
- "x ", "y ", "z ", "{ ", "| ", "} ", "~ ", "DEL",
- " ", " ", " ", " "
- },
-
-
- *octal_values[132] =
- {
- "000", "001", "002", "003", "004", "005", "006", "007",
- "010", "011", "012", "013", "014", "015", "016", "017",
- "020", "021", "022", "023", "024", "025", "026", "027",
- "030", "031", "032", "033", "034", "035", "036", "037",
- "040", "041", "042", "043", "044", "045", "046", "047",
- "050", "051", "052", "053", "054", "055", "056", "057",
- "060", "061", "062", "063", "064", "065", "066", "067",
- "070", "071", "072", "073", "074", "075", "076", "077",
- "100", "101", "102", "103", "104", "105", "106", "107",
- "110", "111", "112", "113", "114", "115", "116", "117",
- "120", "121", "122", "123", "124", "125", "126", "127",
- "130", "131", "132", "133", "134", "135", "136", "137",
- "140", "141", "142", "143", "144", "145", "146", "147",
- "150", "151", "152", "153", "154", "155", "156", "157",
- "160", "161", "162", "163", "164", "165", "166", "167",
- "170", "171", "172", "173", "174", "175", "176", "177",
- " ", " ", " ", " "
- },
-
- *hex_values [132] =
- {
- "00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F",
- "10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F",
- "20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F",
- "30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F",
- "40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F",
- "50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F",
- "60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F",
- "70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F",
- " ", " ", " ", " "
- },
-
- *decimal_values [132] =
- {
- "000", "001", "002", "003", "004", "005", "006", "007", "008", "009",
- "010", "011", "012", "013", "014", "015", "016", "017", "018", "019",
- "020", "021", "022", "023", "024", "025", "026", "027", "028", "029",
- "030", "031", "032", "033", "034", "035", "036", "037", "038", "039",
- "040", "041", "042", "043", "044", "045", "046", "047", "048", "049",
- "050", "051", "052", "053", "054", "055", "056", "057", "058", "059",
- "060", "061", "062", "063", "064", "065", "066", "067", "068", "069",
- "070", "071", "072", "073", "074", "075", "076", "077", "078", "079",
- "080", "081", "082", "083", "084", "085", "086", "087", "088", "089",
- "090", "091", "092", "093", "094", "095", "096", "097", "098", "099",
- "100", "101", "102", "103", "104", "105", "106", "107", "108", "109",
- "110", "111", "112", "113", "114", "115", "116", "117", "118", "119",
- "120", "121", "122", "123", "124", "125", "126", "127", " ", " ",
- " ", " "
- };
- \Rogue\Monster\
- else
- echo "will not over write ./xascii.h"
- fi
- echo "Finished archive 1 of 1"
- exit
-
- --
- Dan Heller
- O'Reilly && Associates Z-Code Software Comp-sources-x:
- Senior Writer President comp-sources-x@uunet.uu.net
- argv@ora.com argv@zipcode.com
-