home *** CD-ROM | disk | FTP | other *** search
- Project Printer FKEY 1.1
-
- Copyright ⌐ 1992 Phil Shapiro
- All Rights Reserved
-
- Description
-
- This is an FKEY which will produce a list of the files in a THINK C project. It
- lists the file names, object sizes, and segmentation information. It was
- tested under System 7 with THINK C 5.0 and 4.0. It should work with earlier
- versions of THINK C under System 6 as well.
-
- Installation and Use
-
- Since this FKEY is only useful inside of THINK C, I would recommend using
- ResEdit to add the FKEY resource directly to the resource fork of THINK C.
- Once installed, just hit the FKEY (command-shift-5 by default) and a list of
- the files in the current project will be pasted into an Untitled window. It
- won't do anything if invoked outside of THINK C, or if no project is open.
-
- The list of files produced contains each project entry in the order that it
- appears in the project. At the end of each segment, the total number of bytes
- in that segment are printed out. An alternate listing can be produced by
- depressing the Caps Lock key before invoking the FKEY; this listing contains
- all of the project entries sorted by name, followed by the total number of
- bytes in the entire project. Note that the bytes printed out only reflect bytes
- of CODE, not DATA or JUMP.
-
- The project window must be the frontmost window in THINK C, and the
- thumb for the project window's scrollbar should be at the top. See Bugs
- below for more information.
-
- Customizing
-
- You can change the FKEY's command-shift number by changing the resource ID
- number for the FKEY resource. This can be done using ResEdit's "Get Resource
- Info" menu item.
-
- How it works
-
- This FKEY uses a technique similar to the one used in James Walker's Text
- Capture FKEY. It first resizes and invalidates the project window, and then
- patches the traps that THINK C uses to redraw the window's contents. By
- watching the data sent to these patches, all the information displayed in the
- project window can be collected and printed out. Since this doesn't rely on
- the project's internal format, it should work with any version of THINK C.
- However, this limits the information that can be displayed to just the names
- and sizes of the project entries.
-
- Bugs/Odd Features
-
- The FKEY will only work if the Project window is frontmost. Also, if the
- Project window isn't scrolled to the top, only the files below the current
- window position will be printed out.
-
- Version History
-
- 1.1 - fixed incompatibility with '040 cache on Quadras
- - added per-segment totals to listing
- - added Caps Lock sorting option
- 1.0 - initial release on 3/7/92
-
- This hack is free. Please contact me if you find any bugs, or have any
- suggestions for improvements!
-
- Phil Shapiro
-
- Internet: phils@cs.brandeis.edu
- AOL: PhilShap
- Postal:
- 70 Simpson Ave.
- Somerville, MA 02144