Pre-Compiler Sorting

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
jqn
User
User
Posts: 97
Joined: Fri Oct 31, 2003 3:04 pm

Pre-Compiler Sorting

Post by jqn »

Hi all,

When a program is very very big, whith a lot of includes (every function in a source "pbi" file)... it's very difficult to obtain that each proc, each global, each macro is in its place so that the compiler finds them in the corresponding order.

In order to obtain this, I've developed a "precompiler", that sorts all the source lines in its standard order:

Code: Select all

Enumeration
  #Constants
  #Structures
  #Globals
  #Declares
  #Macros
  #Procedures
  #Main
  #Data
EndEnumeration
It would be very useful if PB compiler made this work.


JOAQUIN