From 8e349d2dcc9323111e965b3c89c7a543c5045126 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 12 Jan 1995 11:42:58 +0000 Subject: [PATCH] Corretta formattazione git-svn-id: svn://10.65.10.50/trunk@856 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/csort.h | 98 ++++++++++++++++++++++++------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/include/csort.h b/include/csort.h index 1e4018259..6611d5a2f 100755 --- a/include/csort.h +++ b/include/csort.h @@ -1,36 +1,36 @@ /* -@(SH) Header + @(SH) Header -@(C#) PUBBLICHE -NOFLDS : massimo numero di chiavi da ordinare + @(C#) PUBBLICHE + NOFLDS : massimo numero di chiavi da ordinare -@(C$) PRIVATE -MOSTMEM : numero massimo di bytes di memoria per il buffer di sort -LEASTMEM : numero minimo di bytes di memoria per il buffer di sort -@(VG#) PUBBLICHE -s_prm : struttura di un sort -s_prm.rc_len : lunghezza del record -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_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 + @(C$) PRIVATE + MOSTMEM : numero massimo di bytes di memoria per il buffer di sort + LEASTMEM : numero minimo di bytes di memoria per il buffer di sort + @(VG#) PUBBLICHE + s_prm : struttura di un sort + s_prm.rc_len : lunghezza del record + 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_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 -@(VG$) PRIVATE -bp : struttura di una sequenza in un buffer di merge -bp.rc : puntatore al record nel merge buffer -bp.rbuf : record rimasti nel buffer in questa sequenza di sort -bp.rdsk : record rimasti nel disco in questa sequenza di sort -------------------------------------------------------------------------------- -*/ + @(VG$) PRIVATE + bp : struttura di una sequenza in un buffer di merge + bp.rc : puntatore al record nel merge buffer + bp.rbuf : record rimasti nel buffer in questa sequenza di sort + bp.rdsk : record rimasti nel disco in questa sequenza di sort + ------------------------------------------------------------------------------- + */ #ifndef __CSORT_H #define __CSORT_H #ifndef __CCOMMON_H -#include "ccommon.h" +#include "ccommon.h" #endif #ifndef __CCUSTIO_H -#include "ccustio.h" +#include "ccustio.h" #endif #include "/usr/include/isam.h" @@ -105,43 +105,43 @@ typedef struct typedef isdef* isfdptr; struct s_prm { - int rc_len; - struct { - int f_pos; - int f_len; - char ad; + int rc_len; + struct { + int f_pos; + int f_len; + char ad; - } s_fld [NOFLDS]; - }; -struct bp { - char *rc; -/* @(!) 2.3.00.112 */ - unsigned rbuf; - unsigned rdsk; -/* @(:) 2.3.00.112 */ - }; + } s_fld [NOFLDS]; +}; +struct bp { + char *rc; + /* @(!) 2.3.00.112 */ + unsigned rbuf; + unsigned rdsk; + /* @(:) 2.3.00.112 */ +}; #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ -/*----------------------- FUNZIONI VISIBILI PRIMA PARTE ---------------------*/ + /*----------------------- FUNZIONI VISIBILI PRIMA PARTE ---------------------*/ -int init_sort(struct s_prm *); /* Initialize the sort */ -void sort(char *); /* Pass records to Sort */ -char *sort_op(void); /* Retrieve sorted records */ -void sort_stats(void); /* Display sort statistics */ + int init_sort(struct s_prm *); /* Initialize the sort */ + void sort(char *); /* Pass records to Sort */ + char *sort_op(void); /* Retrieve sorted records */ + void sort_stats(void); /* Display sort statistics */ -/*----------------------- FUNZIONI VISIBILI SECONDA PARTE -------------------*/ + /*----------------------- FUNZIONI VISIBILI SECONDA PARTE -------------------*/ -void initsortfield (void); -int addsortfield (isfdptr, FieldName, int, int, char); -int finesortfield (isfdptr); + void initsortfield (void); + int addsortfield (isfdptr, FieldName, int, int, char); + int finesortfield (isfdptr); - /* 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 non c'e' sufficiente memoria per procedere */ + /* 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 non c'e' sufficiente memoria per procedere */ -/*---------------------------------------------------------------------------*/ + /*---------------------------------------------------------------------------*/ #ifdef __cplusplus }; #endif /* __cplusplus */