I am no longer actively developing this application. I am not particularly motivated by this project, I much prefer working on BeExplorer and BeChess.
If enough people ask for me to continue working on this project I will, of course, make time. Alternatively, if someone else likes it enough they would like to work on it, just drop me a line and I'll send you everything I have.
Add something like this to your Makefile:Compiler header1.h header2.h header3.h code1.cpp code2.cpp code3.cpp
Be sure to put your .h files before your .cpp files (another feature would be to sort out the headers files and do them first).
This will generate a "data.db" file. Run the BeClassBrowser from the directory that contains this file (another feature would be to add File-Open).
Normally, the Compiler program takes a list of files to use, but we don't want to type those all out, right? So we first generate the tags file before running the Compiler. Use the following command:See "ctags --help" for details, but here is a rough guide to what this means.ctags --c-types=+A+C --sort=no --excmd=both -p /boot/develop/headers/be -R ^^^^^^1^^^^^ ^^^2^^^ ^^^^^3^^^^ ^^^^^^^^^^^^^^4^^^^^^^^^^^ ^5^
Ok, so now you have a rather large file called "tags" in your current directory. So we take this file and pass it to Compiler like this:
- create the tags file with special C++ information
- don't sort the resulting tags file (slow, just a waste)
- print both the context and the line number (my slight modification)
- use this as the base directory
- recurse directories
Compiler -f tagsYou will see an error something like:Unable to resolve references on the following tags:Don't worry about it, Compiler just couldn't find the definition of "exception" which is actually in the C++ header files. There will now be a file called "data.db" in your current directory. You can now delete the file "tags", you don't need it anymore.
sound_error /boot/develop/headers/be/./media/SoundPlayer.h class sound_error : public exception { cRun BeClassBrowser from the directory containing "data.db". It will take a few moments to come up, there is a lot of information and it has to sort it all.
Right here! It is only available for x86.
Drop me a line, I'll send you the code with a little bit of documentation. The project began as a "small" project, it has gotten rather complicated since that time. The browser part of the code is quite clean (but mostly undocumented), but the compiler part is rather messy.
|
Home: www.TimPhilip.net (site map)
Email: me@TimPhilip.net Copyright '98, '99, © Tim Philip |
|