root/tags/5.4.pre05/wxis_src/freqlist.h

Revision 1, 1.2 kB (checked in by heitor.barbieri, 4 years ago)

Criação do svn para Cisis.

Line 
1/* -------------------------------------------------------------- FREQLIST.H */
2
3/* ------------------------------------------------------------- enumeration */
4typedef enum {
5        FREQ_ERROR_OK,
6        FREQ_ERROR_ALLOC,
7        FREQ_ERROR_QTT
8} FREQ_ERROR;                           /* error codes */
9/* --------------------------------------------------------------- structure */
10typedef struct stru_freq_list {
11   char *item;                          /* frequency sorted item */
12   long qtt;                     /* quantity of itens found */
13   char *sort;                          /* sort key for display */
14   struct stru_freq_list *prev; /* previous list item */
15   struct stru_freq_list *next;  /* next list item */
16} STRUCT_FREQLIST;               /* frequency list */
17
18typedef struct {
19   STRUCT_FREQLIST *head;
20   STRUCT_FREQLIST *tail;
21   long item_tot;
22   long freq_tot;
23   BOOLEAN check_all;                           /* TRUE if the list is not sorted by item */
24} FREQLIST_VAR;                 /* frequency list variables */
25/* -------------------------------------------------------------- prototypes */
26void            freq_free       (STRUCT_FREQLIST *freq_pos);
27BOOLEAN         freq_load       (FREQLIST_VAR *freq_var,char *itens,long value,BOOLEAN list_style,BOOLEAN sort_style);
28void            freq_sort       (FREQLIST_VAR *freq_var);
Note: See TracBrowser for help on using the browser.