#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <ctype.h>#include <string.h>#include <limits.h>#include "TCL/tcl.h"#include "TCL/tk.h"#include "TCL/hd.h"Data Structures | |
| struct | _hd_config |
Typedefs | |
| typedef _hd_config | hd_config |
Functions | |
| int | LineRead (ClientData clientData, Tcl_Interp *interp, int argc, char *argv[]) |
| int | FileRewind (ClientData clientData, Tcl_Interp *interp, int argc, char *argv[]) |
| int | LineAscii (ClientData clientData, Tcl_Interp *interp, int argc, char *argv[]) |
| int | Tcl_HdInit (Tcl_Interp *interp) |
| int | ReadInteger (hd_config *g, Tcl_Interp *interp, int size, int numItems, char *format) |
| int | ReadFloat (hd_config *g, Tcl_Interp *interp, int size, int numItems, char *format) |
| int | main (int argc, char **argv) |
Variables | |
| hd_config | hdConfig |
| const char * | usageStr |
|
|
The typedef for _hd_config. |
|
||||||||||||||||||||
|
Callback for the Tcl FileRewind command. Rewinds the dump file.
|
|
||||||||||||||||||||
|
Callback for the Tcl LineAscii command. Expects:
|
|
||||||||||||||||||||
|
Callback for the Tcl LineRead command. Expects:
|
|
||||||||||||
|
Application entry point. The program resources are intialized, then the Tcl and Tk interpreters are started using the script hd.tk".
|
|
||||||||||||||||||||||||
|
Reads in one or more floating point values from the input file. The data is converted to the appropriate ASCII string and appended to the Tcl interpreter result field.
|
|
||||||||||||||||||||||||
|
Reads in one or more integer values from the input file. The data is converted to the appropriate ASCII string and appended to the Tcl interpreter result field.
|
|
|
The Tcl/Tk initialization callback. This function is called by Tcl after the interpreter is created but before the application starts. The Tcl interpreter is expanded to handle the application specific commands.
|
|
|
The application global config info. |
|
|
Initial value: "hd [-b|n|x|d|X|D|f|F] file_name\n\n"
"\tb - 8-bit hex\n"
"\tn - 8-bit dec\n"
"\tx - 16-bit hex\n"
"\td - 16-bit dec\n"
"\tX - 32-bit hex\n"
"\tD - 32-bit dec\n"
"\tf - 32-bit single float\n"
"\tF - 64-bin double float" |
1.2.14 written by Dimitri van Heesch,
© 1997-2002