Declare-Filter autom. procedure declarations tool

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Declare-Filter autom. procedure declarations tool

Post by Kurzer »

Declare-Filter is a small tool, which makes programming with the original IDE of PureBasic a little easier.

Procedures must be declared in PureBasic usually at the beginning of the main program code, where they are placed before the procedures you would like to call. When the call to a procedure is done before the actual declaring of it, the compiler gives an error message.
Now this gets more complicated when you need to call procedures from different included files, where a call to a procedure could easily be done before the actual declaring of it, and thus the compiler gives an error message.

So I wrote a small tool, which searches all of the main source code and include files for procedures, and generates a declare list that I can copy into the main source code. Or with the use of special magic words (explained on the website), in my main source the program will generate an includable file of all the declares, which can be included in the main source code.

The program can be run by itself from any directory, and can also be setup as a tool in the editor of PureBasic.

You can save much work and avoid frustration if you move procedures in huge projects. You never have to think about procedure declarations with this tool.

For further explanations and screenshots please visit the english Declare-Filter page.
A big thanks must go to the user yrreti who has done all the translation work!
Last edited by Kurzer on Sat Feb 16, 2008 9:41 am, edited 1 time in total.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Looks interesting. Will give it a try.

Thanks for sharing :)

cheers
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: Declare-Filter autom. procedure declarations tool

Post by Kurzer »

After 2 years of proper use the german version of Declare-Filter has now been updated.
- The tool searches now recursive for includes in includes in includes in includes in... (it suppresses automatically multiple includes)
- Complete rewrite of the Procedure()-detection (there was a problem detecting procedures with an array as parameter)
- Now you find a nativ Window CHM-Helpfile (only in german, sorry)

If you still use the english Version you only have to replace the Declare-filter.exe file. The use and the behavior of the program is similar to the old version.

Please download the updated german version from my german website
Direkt download here
Direkt download of the older english version here
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
Post Reply