/[ascend]/trunk/base/generic/compiler/type_desc.h
ViewVC logotype

Diff of /trunk/base/generic/compiler/type_desc.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1289 by johnpye, Sun Jan 7 10:11:50 2007 UTC revision 1290 by johnpye, Mon Feb 26 04:54:45 2007 UTC
# Line 396  extern int ReplaceMethods(struct TypeDes Line 396  extern int ReplaceMethods(struct TypeDes
396      @return Returns 0 if successful, 1 if not.      @return Returns 0 if successful, 1 if not.
397  */  */
398    
399    ASC_DLLSPEC struct InitProcedure *FindMethod(const struct TypeDescription *d, const symchar *procname);
400    /**<
401        Find procedure with the given name in a type's METHOD list, or failing that,
402        from the universal procedure list. Functionality was part of initialise.c
403        but moved here in interest of object-orientation.
404    
405        Note that calling this method too early may cause problems if UNIVERSAL
406        methods have not yet been parsed.
407    
408        @param d Type in which to search
409        @param procname Name of the method to look for (as a symchar)
410        @return pointer to the method, or NULL if not found
411    */
412    
413  #ifdef NDEBUG  #ifdef NDEBUG
414  #define CopyTypeDesc(d) ((d)->ref_count++)  #define CopyTypeDesc(d) ((d)->ref_count++)
415  #else  #else

Legend:
Removed from v.1289  
changed lines
  Added in v.1290

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22