gencls - class interface compiler for Prima core modules
gencls --h --inc --tml -O -I<name> --depend --sayparent filename.cls
Creates header with C macros and structures for Prima core modules object definition.
gencls takes the following arguments:
Generates .h file ( with declarations to be included in many files )
Generates .inc file ( with declarations to be included in only file )
Turns optimizing algorithm for .inc files on. Algorithm is based on an assumption, that may functions have same list of parameters, therefore same piece of code can be shared. With -O flag on, thunk body is replaced to a call to a function, which name is made up from all method parameters plus result. Actual function is not written in .inc file, but in .tml file. All duplicate declarations from a set of .tml files can be removed and reminder written to a large include file by tmlink utility.
Generates .tml file. Turns -O automatically on.
Adds a directory to a search path, where the utility searches for .cls files. Can be specified several times.
Prints out dependencies for a given file.
Prints out the immediate parent of a class inside given file.
Dmitry Karasik, <dmitry@karasik.eu.org>. Anton Berezin, <tobez@tobez.org>.
prima-guts, tmlink
This program is distributed under the BSD License.
To install Prima, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prima
CPAN shell
perl -MCPAN -e shell install Prima
For more information on module installation, please visit the detailed CPAN module installation guide.