home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-01 | 1.7 KB | 57 lines | [TEXT/CWIE] |
- TrapsGen 1.0
- Copyright 1995 Chris K. Thomas. All Rights Reserved.
- thunderone@delphi.com
-
-
- ____________________________
- Dizzy In The Head
-
- TrapsGen is a quick hack which takes the Universal Headers version of
- the Traps.h file (possibly earlier versions, I don't remember how it
- used to be formatted) and automagically generates a C source file
- containing a table with entries in this format:
-
- struct TrapRecord
- {
- unsigned char *trapName;
- unsigned short trapNumber;
- };
-
- All portions of the text not taken from Traps.h are kept in TEXT
- resources, so you can modify whatever you don't like without modifying
- the source.
-
- Source is Metrowerks C++ and uses a few auxilary PP classes. It's not
- wonderful, reusable source, but it does the job, and it *is* just a
- quick hack.
-
-
- ____________________________
- Fooling Around In The Corner
-
- To use the provided PowerMac binary, put a copy of your traps.h file
- in the same folder as TrapsGen and run it.
-
- To run a 68k binary, you'll need to duplicate the TrapsGen project file,
- drag it onto MWERKS 68k C++ and add the 68k runtime libraries. And
- build it.
-
- As a demonstration of flexibility, you might want to try it on the
- "UndocumentedTraps.h" file I've provided. Just rename it "Traps.h"
- and you're ready to run.
-
-
- ____________________________
- Send Lawyers, Guns and Money
-
- I'm available at thunderone@delphi.com, as always. If TrapsGen has
- managed to excite, depress, stun, amaze, sadden, or destroy you, send me
- a note.
-
-
- ____________________________
- Had My Fortune Read
-
- TrapsGen is provided AS IS. It may not be distributed through
- Prodigy. The author is not responsible for damages incurred through
- it's use. I guarantee no support, no tea and no warranty.