Enlightenment CVS committal Author : mej Project : eterm Module : libast
Dir : eterm/libast/include/libast Modified Files: obj.h types.h.in Log Message: Wed Jul 9 19:49:39 2003 Michael Jennings (mej) Some minor rearranging. =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/include/libast/obj.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- obj.h 3 Jul 2003 19:27:46 -0000 1.17 +++ obj.h 9 Jul 2003 23:49:47 -0000 1.18 @@ -341,7 +341,7 @@ * @param meth The name of the method to call. * @return A pointer to the specified method for that object. * - * @see DOXGRP_OBJ, SPIF_OBJ_CLASS(), spif_class_t + * @see DOXGRP_OBJ, SPIF_OBJ_CLASS() */ #define SPIF_OBJ_CALL_METHOD(obj, meth) SPIF_OBJ_CLASS(obj)->meth @@ -514,25 +514,36 @@ /[EMAIL PROTECTED]/ -/* The type for the classname variables. I don't see any reason why this - would be anything but a const char *, but you never know. :-) */ -typedef const char *spif_classname_t; - -/* Generic function pointer. */ -typedef void * (*spif_func_t)(); +/[EMAIL PROTECTED]/ +/** + * @name Basic Object Class Definitions + * --- + * + * These types form the foundation of the LibAST object hierarchy. + * + * @ingroup DOXGRP_OBJ + */ -/* The class contains the function pointers for the generic object functions. */ +/** + * @anchor spif_class_t + * Object class structure. + * + * This class contains the object class structure. + */ SPIF_DEFINE_OBJ(class) { - spif_classname_t classname; + /** Text representation of class name. */ + spif_classname_t classname; - spif_func_t noo; - spif_func_t init; - spif_func_t done; - spif_func_t del; - spif_func_t show; - spif_func_t comp; - spif_func_t dup; - spif_func_t type; + /** Pointer to object's constructor. */ + spif_func_t noo; + /** Pointer to object's initializer. */ + spif_func_t init; + spif_func_t done; + spif_func_t del; + spif_func_t show; + spif_func_t comp; + spif_func_t dup; + spif_func_t type; }; /* An obj is the most basic object type. It contains simply a pointer to @@ -540,6 +551,7 @@ SPIF_DEFINE_OBJ(obj) { spif_class_t cls; }; +/[EMAIL PROTECTED]/ =================================================================== RCS file: /cvsroot/enlightenment/eterm/libast/include/libast/types.h.in,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- types.h.in 1 Jul 2003 19:51:21 -0000 1.9 +++ types.h.in 9 Jul 2003 23:49:47 -0000 1.10 @@ -552,7 +552,19 @@ * * @see DOXGRP_TYPES */ -typedef spif_ptr_t (*spif_fptr_t)(spif_ptr_t, ...); +typedef void * (*spif_func_t)(); + +/** + * A class name. + * + * This typedef abstracts the actual type of a classname variable. At + * this point I can't imagine it needing to be anything else, but one + * never knows.... + * + * @see DOXGRP_TYPES + */ +typedef const spif_charptr_t spif_classname_t; + /[EMAIL PROTECTED]/ /[EMAIL PROTECTED]/ ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs