home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Applications / TrapsGen 1.0.1 / About TrapsGen next >
Encoding:
Text File  |  1995-07-01  |  1.7 KB  |  57 lines  |  [TEXT/CWIE]

  1. TrapsGen 1.0
  2. Copyright 1995 Chris K. Thomas.  All Rights Reserved.
  3. thunderone@delphi.com
  4.  
  5.  
  6. ____________________________
  7. Dizzy In The Head
  8.  
  9. TrapsGen is a quick hack which takes the Universal Headers version of 
  10. the Traps.h file (possibly earlier versions, I don't remember how it 
  11. used to be formatted) and automagically generates a C source file 
  12. containing a table with entries in this format:
  13.  
  14. struct TrapRecord
  15. {
  16.     unsigned char *trapName;
  17.     unsigned short trapNumber;
  18. };
  19.  
  20. All portions of the text not taken from Traps.h are kept in TEXT 
  21. resources, so you can modify whatever you don't like without modifying 
  22. the source.
  23.  
  24. Source is Metrowerks C++ and uses a few auxilary PP classes.  It's not 
  25. wonderful, reusable source, but it does the job, and it *is* just a 
  26. quick hack.
  27.  
  28.  
  29. ____________________________
  30. Fooling Around In The Corner
  31.  
  32. To use the provided PowerMac binary, put a copy of your traps.h file 
  33. in the same folder as TrapsGen and run it.
  34.  
  35. To run a 68k binary, you'll need to duplicate the TrapsGen project file, 
  36. drag it onto MWERKS 68k C++ and add the 68k runtime libraries.  And 
  37. build it.
  38.  
  39. As a demonstration of flexibility, you might want to try it on the 
  40. "UndocumentedTraps.h" file I've provided.  Just rename it "Traps.h" 
  41. and you're ready to run.
  42.  
  43.  
  44. ____________________________
  45. Send Lawyers, Guns and Money
  46.  
  47. I'm available at thunderone@delphi.com, as always.  If TrapsGen has 
  48. managed to excite, depress, stun, amaze, sadden, or destroy you, send me 
  49. a note.
  50.  
  51.  
  52. ____________________________
  53. Had My Fortune Read
  54.  
  55. TrapsGen is provided AS IS.  It may not be distributed through 
  56. Prodigy.  The author is not responsible for damages incurred through 
  57. it's use.  I guarantee no support, no tea and no warranty.