Corretta formattazione
git-svn-id: svn://10.65.10.50/trunk@856 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
59acd28d41
commit
8e349d2dcc
@ -1,27 +1,27 @@
|
|||||||
/*
|
/*
|
||||||
@(SH) Header
|
@(SH) Header
|
||||||
|
|
||||||
@(C#) PUBBLICHE
|
@(C#) PUBBLICHE
|
||||||
NOFLDS : massimo numero di chiavi da ordinare
|
NOFLDS : massimo numero di chiavi da ordinare
|
||||||
|
|
||||||
@(C$) PRIVATE
|
@(C$) PRIVATE
|
||||||
MOSTMEM : numero massimo di bytes di memoria per il buffer di sort
|
MOSTMEM : numero massimo di bytes di memoria per il buffer di sort
|
||||||
LEASTMEM : numero minimo di bytes di memoria per il buffer di sort
|
LEASTMEM : numero minimo di bytes di memoria per il buffer di sort
|
||||||
@(VG#) PUBBLICHE
|
@(VG#) PUBBLICHE
|
||||||
s_prm : struttura di un sort
|
s_prm : struttura di un sort
|
||||||
s_prm.rc_len : lunghezza del record
|
s_prm.rc_len : lunghezza del record
|
||||||
s_prm.s_fld : vettore della struttura dei campi di sort
|
s_prm.s_fld : vettore della struttura dei campi di sort
|
||||||
s_prm.s_fld[].f_pos : prima posizione del campo (contando da 1)
|
s_prm.s_fld[].f_pos : prima posizione del campo (contando da 1)
|
||||||
s_prm.s_fld[].f_len : lunghezza del campo e tipo del campo; se f_len > 0 e' una stringa; se f_len = -1 e' un intero; se f_len = -2 e' un boolean
|
s_prm.s_fld[].f_len : lunghezza del campo e tipo del campo; se f_len > 0 e' una stringa; se f_len = -1 e' un intero; se f_len = -2 e' un boolean
|
||||||
s_prm.s_fld[].ad : a = crescente; d = decrescente
|
s_prm.s_fld[].ad : a = crescente; d = decrescente
|
||||||
|
|
||||||
@(VG$) PRIVATE
|
@(VG$) PRIVATE
|
||||||
bp : struttura di una sequenza in un buffer di merge
|
bp : struttura di una sequenza in un buffer di merge
|
||||||
bp.rc : puntatore al record nel merge buffer
|
bp.rc : puntatore al record nel merge buffer
|
||||||
bp.rbuf : record rimasti nel buffer in questa sequenza di sort
|
bp.rbuf : record rimasti nel buffer in questa sequenza di sort
|
||||||
bp.rdsk : record rimasti nel disco in questa sequenza di sort
|
bp.rdsk : record rimasti nel disco in questa sequenza di sort
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __CSORT_H
|
#ifndef __CSORT_H
|
||||||
#define __CSORT_H
|
#define __CSORT_H
|
||||||
@ -112,36 +112,36 @@ struct s_prm {
|
|||||||
char ad;
|
char ad;
|
||||||
|
|
||||||
} s_fld [NOFLDS];
|
} s_fld [NOFLDS];
|
||||||
};
|
};
|
||||||
struct bp {
|
struct bp {
|
||||||
char *rc;
|
char *rc;
|
||||||
/* @(!) 2.3.00.112 */
|
/* @(!) 2.3.00.112 */
|
||||||
unsigned rbuf;
|
unsigned rbuf;
|
||||||
unsigned rdsk;
|
unsigned rdsk;
|
||||||
/* @(:) 2.3.00.112 */
|
/* @(:) 2.3.00.112 */
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
/*----------------------- FUNZIONI VISIBILI PRIMA PARTE ---------------------*/
|
/*----------------------- FUNZIONI VISIBILI PRIMA PARTE ---------------------*/
|
||||||
|
|
||||||
int init_sort(struct s_prm *); /* Initialize the sort */
|
int init_sort(struct s_prm *); /* Initialize the sort */
|
||||||
void sort(char *); /* Pass records to Sort */
|
void sort(char *); /* Pass records to Sort */
|
||||||
char *sort_op(void); /* Retrieve sorted records */
|
char *sort_op(void); /* Retrieve sorted records */
|
||||||
void sort_stats(void); /* Display sort statistics */
|
void sort_stats(void); /* Display sort statistics */
|
||||||
|
|
||||||
/*----------------------- FUNZIONI VISIBILI SECONDA PARTE -------------------*/
|
/*----------------------- FUNZIONI VISIBILI SECONDA PARTE -------------------*/
|
||||||
|
|
||||||
void initsortfield (void);
|
void initsortfield (void);
|
||||||
int addsortfield (isfdptr, FieldName, int, int, char);
|
int addsortfield (isfdptr, FieldName, int, int, char);
|
||||||
int finesortfield (isfdptr);
|
int finesortfield (isfdptr);
|
||||||
|
|
||||||
/* azzera l'elenco dei campi in base a cui eseguire il sort */
|
/* azzera l'elenco dei campi in base a cui eseguire il sort */
|
||||||
/* ritorna 0 se tutto ok, -1 se chiamata piu' di NOFLDS volte dopo l'ultimo initsortfield */
|
/* ritorna 0 se tutto ok, -1 se chiamata piu' di NOFLDS volte dopo l'ultimo initsortfield */
|
||||||
/* ritorna 0 se tutto ok, -1 se non c'e' sufficiente memoria per procedere */
|
/* ritorna 0 se tutto ok, -1 se non c'e' sufficiente memoria per procedere */
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
};
|
};
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user