/[ascend]/trunk/base/generic/general/list.h
ViewVC logotype

Diff of /trunk/base/generic/general/list.h

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

revision 591 by johnpye, Fri Apr 21 07:22:20 2006 UTC revision 592 by johnpye, Fri May 12 09:50:57 2006 UTC
# Line 114  typedef void (*DestroyFunc)(VOIDPTR); Line 114  typedef void (*DestroyFunc)(VOIDPTR);
114  /** Generic function called during iterations. */  /** Generic function called during iterations. */
115  typedef void (*IterateFunc)(VOIDPTR);  typedef void (*IterateFunc)(VOIDPTR);
116    
117  extern void gl_init(void);  ASC_DLLSPEC(void) gl_init(void);
118  /**<  /**<
119   *  Initializes the list recycler control table.   *  Initializes the list recycler control table.
120   *  Until this function is called, no recycling will take place.   *  Until this function is called, no recycling will take place.
# Line 152  extern void gl_init_pool(void); Line 152  extern void gl_init_pool(void);
152   *  call gl_create() before this is called if LISTUSESPOOL == TRUE.   *  call gl_create() before this is called if LISTUSESPOOL == TRUE.
153   */   */
154    
155  extern void gl_destroy_pool(void);  ASC_DLLSPEC(void) gl_destroy_pool(void);
156  /**<  /**<
157   *  Destroys list overhead structure data management.  This must be   *  Destroys list overhead structure data management.  This must be
158   *  called to clean up before shutting down your application if   *  called to clean up before shutting down your application if
# Line 441  extern unsigned long gl_capacity(CONST s Line 441  extern unsigned long gl_capacity(CONST s
441   *  @return The number of items that can be stored in list without expanding.   *  @return The number of items that can be stored in list without expanding.
442   */   */
443    
444  extern int gl_sorted(CONST struct gl_list_t *list);  ASC_DLLSPEC(int) gl_sorted(CONST struct gl_list_t *list);
445  /**<  /**<
446   *  Query whether the specified list is sorted.  A list having 0 or 1   *  Query whether the specified list is sorted.  A list having 0 or 1
447   *  element is always sorted.  The specified list may not be NULL   *  element is always sorted.  The specified list may not be NULL
# Line 703  extern void gl_reverse(struct gl_list_t Line 703  extern void gl_reverse(struct gl_list_t
703   *  @param list The list to modify.   *  @param list The list to modify.
704   */   */
705    
706  extern void gl_reset(struct gl_list_t *list);  ASC_DLLSPEC(void) gl_reset(struct gl_list_t *list);
707  /**<  /**<
708   *  Resets the list to a *clean* state as if it had just been created.   *  Resets the list to a *clean* state as if it had just been created.
709   *  As such, the list will be considered as expandle and sorted but   *  As such, the list will be considered as expandle and sorted but
# Line 825  extern VOIDPTR *gl_fetchaddr(CONST struc Line 825  extern VOIDPTR *gl_fetchaddr(CONST struc
825   *  @return The address of the pointer as position pos.   *  @return The address of the pointer as position pos.
826   */   */
827    
828  extern void gl_emptyrecycler(void);  ASC_DLLSPEC(void) gl_emptyrecycler(void);
829  /**<  /**<
830   *  Empties the list recycler.   *  Empties the list recycler.
831   *  To improve runtime performance, this list module trys to reuse destroyed   *  To improve runtime performance, this list module trys to reuse destroyed

Legend:
Removed from v.591  
changed lines
  Added in v.592

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