fdclsrt.h
上传用户:dgyhgb
上传日期:2007-01-07
资源大小:676k
文件大小:4k
源码类别:

SQL Server

开发平台:

Unix_Linux

  1. /*  fdclsrt.h - functions declarations of Sorter
  2.  *              Kernel of GNU SQL-server. Sorter   
  3.  *
  4.  * This file is a part of GNU SQL Server
  5.  *
  6.  *  Copyright (c) 1996, 1997, Free Software Foundation, Inc
  7.  *  Developed at the Institute of System Programming
  8.  *  This file is written by  Vera Ponomarenko
  9.  *
  10.  *  This program is free software; you can redistribute it and/or modify
  11.  *  it under the terms of the GNU General Public License as published by
  12.  *  the Free Software Foundation; either version 2 of the License, or
  13.  *  (at your option) any later version.
  14.  *
  15.  *  This program is distributed in the hope that it will be useful,
  16.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  *  GNU General Public License for more details.
  19.  *
  20.  *  You should have received a copy of the GNU General Public License
  21.  *  along with this program; if not, write to the Free Software
  22.  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  23.  *
  24.  *  Contacts:   gss@ispras.ru
  25.  *
  26.  */
  27. /* $Id: fdclsrt.h,v 1.245 1997/03/31 03:46:38 kml Exp $ */
  28. #include "f1f2decl.h"
  29. /* cmpkey.c */
  30. /*      35 */ i4_t cmpkey(u2_t *afn, struct des_field *df, char *drctn, char *pk1, char *pk2);
  31. /*     135 */ u2_t scscal(char *a);
  32. /* extsrt.c */
  33. /*      42 */ struct el_tree *extsort(i4_t M, char prdbl, char *drctn, u2_t *afn, struct des_field *df, struct el_tree *tree);
  34. /* push.c */
  35. /*      41 */ void push(void (*putr1 )(), struct el_tree *tree, struct el_tree *q, char prdbl, char *drctn, u2_t *afn, struct des_field *df, i4_t nbnum);
  36. /*     116 */ i4_t geteltr(i4_t nbnum, struct el_tree *q, i4_t i);
  37. i4_t next_el_tree (i4_t nbnum, struct el_tree *q, i4_t i, char *pkr);
  38. /* puts.c */
  39. /*      41 */ void putkr(char *pkr);
  40. void middleput ( char *pkr, u2_t size);
  41. /*      62 */ void putcrt(char *pkr);
  42. /*     121 */ void puttid(char *pkr);
  43. /*     140 */ void getptob(void);
  44. void middle_put_tid (char *pkr);
  45. /*     158 */ u2_t calsc(u2_t *afi, u2_t *ai);
  46. /*     170 */ void getptmp(void);
  47. /* quicksor.c */
  48. /*      36 */ void quicksort(i4_t M, char prdbl, char *drctn, u2_t *afn, struct des_field *df);
  49. /* rkfrm.c */
  50. /*      46 */ void rkfrm(char *cort, u2_t pn, u2_t ind, char prdbl, char *drctn, i4_t M, struct des_field *df, u2_t *mfn);
  51. /*     139 */ void putkf(void);
  52. /*     181 */ char *remval(char *aval, char **a, u2_t type);
  53. /* sort.c */
  54. /*      35 */ i4_t trsort(u2_t *fpn, struct des_field *adf, u2_t *mfn, char prdbl, char *drctn);
  55. /*      92 */ i4_t flsort(u2_t segn, u2_t *fpn, struct des_field *adf, u2_t *mfn, char prdbl, char *drctn);
  56. /*     149 */ i4_t tidsort(u2_t *fpn);
  57. /*     199 */ void bgnng();
  58. /*     228 */ u2_t getfpn(void);
  59. /*     238 */ void addext(void);
  60. /* srtipc.c */
  61. /*      50 */ void main(i4_t argc, char **argv);
  62. /*     164 */ u2_t getext(void);
  63. /*     185 */ void ADMT_putext(u2_t *mfpn, u2_t exn);
  64. /*     211 */ char *getpage(struct A *ppage, u2_t sn, u2_t pn);
  65. /*     276 */ char *getnew(struct A *ppage, u2_t sn, u2_t pn);
  66. /*     325 */ void putpage(struct A *ppage, char type);
  67. /*     369 */ void crtrn(void);
  68. /*     374 */ void ans_srt(u2_t fpn, u2_t lpn);
  69. /*     395 */ void finit(void);
  70. /* tidsrt.c */
  71. /*      47 */ void quick_sort_tid(i4_t M);
  72. /*     116 */ void puts_tid(void);
  73. /*     154 */ struct el_tree *ext_sort_tid(i4_t M, struct el_tree *tree);
  74. /*     253 */ void push_tid(void (*pnt_puttid )(), struct el_tree *tree, struct el_tree *q, i4_t nbnum);
  75. /*     302 */ i4_t get_el_tr_tid(i4_t nbnum, struct el_tree *q, i4_t i);
  76. /*     355 */ void put_tid(char *pkr);
  77. /*     371 */ i4_t cmp_tid(char *pnt1, char *pnt2);