/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/Func.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-08-26 21:43:01 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150826214301-a3ms101kvjx4g0qq
* General documentation clean up.
* Made the doxygen optimise for C
* Changed SBoxPrivate to use union
* Implemented the s_box_new_xxx functions
* moved free_func from SBoxClass to SBoxPrivate to lessen confusion with SObjectClass->free, and keep it private.
* Added S_ERROR_TYPE_ERROR to represent generic type errors.
* Added CALLBACK(k) macro
* Made a group for SMatrix.
* Added documentation for various functions and what not.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
 
74
74
 
75
75
/**
76
 
 *
 
76
 * @param obj The object that the function should be run on. Generally this
 
77
 *            should be ignored inside the function.
 
78
 * @param item The item that the the function should act on. @newline
 
79
 *             This can be printing the data, erasing the it, modifying it,
 
80
 *             changing it or what ever.
 
81
 * @param data The data that is passed to the _foreach () function. Often called
 
82
 *             the user data. Can also be used as an out parameter.
77
83
 */
78
84
typedef void (* ForEachFunc)(spointer obj, spointer item, spointer data);
79
85
 
80
86
#define METHOD(k) ((MethodFunc) k)
81
87
#define FUNCTION(k) ((FuncPointer) k)
82
88
#define FREEFUNC(k) ((FreeFunc) k)
 
89
#define CALLBACK(k) ((Callback) k)
83
90
 
84
91
/**
85
92
 * A CompFunc represents a standard comparison function.