📄 fdcltrn.h
字号:
/* * fdcltrn.h - Transaction Functions declarations * Kernel of GNU SQL-server * * This file is a part of GNU SQL Server * * Copyright (c) 1996, 1997, Free Software Foundation, Inc * Developed at the Institute of System Programming * This file is written by Vera Ponomarenko * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Contacts: gss@ispras.ru * */#ifndef __fdcltrn_h__#define __fdcltrn_h__/* $Id: fdcltrn.h,v 1.249 1997/04/17 11:03:59 vera Exp $ */#include "inpop.h"#include "f1f2decl.h"#include "strml.h"#include <assert.h>/* addflds.c */i4_t addflds __P ((struct id_rel * pidrel, i4_t fn, struct des_field * afn));/* aggravg.c */struct ans_avgavgitab __P ((struct id_ind * pidind, u2_t slsz, char *sc, u2_t diasz, char *diasc));struct ans_avgavgstab __P ((struct id_rel * pidrel));i4_t fndslc __P ((struct d_r_t *desrel, char *asp, u2_t * ai, char *selcon, u2_t slsz, char *cort));i4_t tstcsel __P ((struct des_field * df, u2_t fn, u2_t fdf, u2_t slsz, char *selc, char *c, char **arrpnt, u2_t * arrsz));/* aggrifn.c */void minitab __P ((struct ans_next * ans, struct id_ind * pidind, u2_t slsz, char *sc, u2_t diasz, char *diasc));void maxitab __P ((struct ans_next *ans, struct id_ind *pidind, u2_t slsz, char *sc, u2_t diasz, char *diasc));i4_t cmpval __P ((char *val1, char *val2, u2_t type, u2_t * n));void agrfind __P ((struct ans_next *ans, struct id_ind *pidind, u2_t nf, u2_t *mnf, u2_t slsz, char *sc, u2_t diasz, char *diasc, char *flaglist));void agrcount __P ((char **agrl, char *tuple, struct des_field * df, u2_t fdf, u2_t field_num, u2_t nf, u2_t * mnf, char *flaglist));void agr_frm __P ((char *agrl, i4_t flag, char *val, u2_t type));i4_t write_val __P ((char *mas, char **agrl, struct des_field * df, u2_t nf, u2_t * mnf, char *flaglist));char *write_average __P ((u2_t type, char *pnt_from, char *pnt_to));/* aggrsfn.c */u2_t minstab __P ((struct id_rel * pidrel, char *val));u2_t maxstab __P ((struct id_rel * pidrel, char *val));void agrfrel __P ((struct ans_next *ans, struct id_rel *pidrel, u2_t nf, u2_t *mnf, u2_t slsz, char *sc, char *flaglist));/* bdunion.c */struct ans_ctob bdunion __P ((struct id_ob * pit1, struct id_ob * pit2));struct ans_ctob intersctn __P ((struct id_ob * pit1, struct id_ob * pit2));struct ans_ctob differnc __P ((struct id_ob * pit1, struct id_ob * pit2));void minsfltr __P ((struct A * pg, struct des_tob * dt, struct des_tid * tid));char *getcort __P ((struct A * ppage, u2_t ** ai));i4_t cmpfv __P ((u2_t type, i4_t d, char *val1, char *val2));/* blfltr.c */struct ans_ctob blflrl __P ((struct id_rel * pidrel, u2_t slsz, char *sc, u2_t kn, u2_t * fsrt));struct ans_ctob blflin __P ((struct id_ind * pidind, u2_t slsz, char *sc, u2_t diasz, char *diasc, u2_t kn, u2_t *fsrt));struct ans_ctob blflfl __P ((i4_t idfl, u2_t slsz, char *sc, u2_t kn, u2_t * fsrt));/* cmpkeys.c */i4_t cmpkeys __P ((u2_t kn, u2_t *afn, struct des_field * df, char *pk1, char *pk2));i4_t cmp2keys __P ((u2_t type, char *pk1, char *pk2));/* cntrid.c */CPNM contir __P ((struct id_rel * idrel, struct d_r_t ** desrel));CPNM tabcl __P ((struct id_rel * pidrel, u2_t fln, u2_t * fmn));CPNM cont_id __P ((struct id_ind * pidind, struct d_r_t ** desrel, struct ldesind ** di));CPNM cont_fir __P ((struct id_rel * pidrel, struct d_r_t ** desrel));/* cnttab.c */void cntttab __P ((struct ans_cnt * ans, struct id_rel * pidrel, u2_t condsz, char *cond));void cntitab __P ((struct ans_cnt * ans, struct id_ind * pidind, u2_t condsz, char *cond, u2_t diasz, char *diasc));i4_t cntftab __P ((i4_t idfl, u2_t condsz, char *cond));void sumtmpt __P ((struct ans_next * ans, struct id_rel * pidrel));/* crind.c */struct ans_cind crind __P ((struct id_rel * pidrel, i4_t prun, i4_t type, i4_t afsize, u2_t * arfn));void dipack __P ((struct des_index * di, i4_t disize, char *pnt));/* crrel.c */struct ans_cr crrel __P ((i4_t sn, i4_t fn, i4_t fdf, struct des_field * df));void drbdpack __P ((struct d_r_bd * drbd, char *pnt));void dfpack __P ((struct des_field * df, u2_t fn, char *pnt));struct ans_ctob crview __P ((u2_t sn, u2_t fn, struct des_field * df));/* crtfrm.c */u2_t cortform __P ((struct des_field * df, u2_t fdf, u2_t fields_n, char *fc, char *fval, char *cort, char *buf, u2_t * mfn));/* delcon.c */CPNM delcrl __P ((struct id_rel * pidrl, u2_t slsz, char *sc));i4_t delcin __P ((struct id_ind * pidind, u2_t slsz, char *sc, u2_t diasz, char *diasc));CPNM delcfl __P ((i4_t idfl, u2_t slsz, char *sc));i4_t fnd_slc __P ((struct d_r_t *desrel, char *asp, u2_t * ai, char *selcon, u2_t slsz, char *cort, struct des_tid *ref_tid));/* delind.c */CPNM delind __P ((struct id_ind * pidind));/* delrel.c */CPNM delrel __P ((struct id_rel * pidrel));struct d_r_t *getrd __P ((struct id_rel *pidrel, struct des_tid *ref_tid, char *a, u2_t * corsize));u2_t getrc __P ((struct d_r_bd * drbd, char *cort));/* dltn.c */i4_t dltn __P ((i4_t scnum));/* empty_page.c */void emptypg __P ((u2_t sn, u2_t pn, char type));u2_t getempt __P ((u2_t sn));/* fltrel.c */struct ans_ctob rflrel __P ((struct id_rel * pidrel, u2_t fln, u2_t * fl, u2_t slsz, char *sc));struct ans_ctob rflind __P ((struct id_ind * pidind, u2_t fln, u2_t * fl, u2_t slsz, char *sc, u2_t diasz, char *diasc));struct ans_ctob rflflt __P ((u2_t idfl, u2_t fln, u2_t * fl, u2_t slsz, char *sc));/* ind_ins.c */i4_t icp_insrtn __P ((struct ldesind * desind, char *key, char *key2, char *inf, i4_t infsz));i4_t icp_spusk __P ((struct A * pg, i4_t elsz, char *key, char *key2));i4_t remrep __P ((char *asp, char *key, char *key2, i4_t elsz, char **rbeg, char **rloc, i4_t *offbef));void icp_remrec __P ((char *beg, char *loc, i4_t sz, char *lastb, i4_t elsz, u2_t pn, char *asp, i4_t idm));i4_t mlreddi __P ((char *lkey, char *lkey2, char *lnkey, char *lnkey2, u2_t pn));i4_t modlast __P ((char *key, char *key2, char *nkey, char *nkey2, u2_t pn));void all_unlock __P ((void));void upunlock __P ((void));void downunlock __P ((void));i4_t lenforce __P ((void));/* ind_rem.c */i4_t icp_rem __P ((struct ldesind * desind, char *key, char *key2, i4_t infsz));i4_t kszcal __P ((char *key, u2_t * mfn, struct des_field * ad_f));i4_t killind __P ((struct ldesind * desind));/* ind_scan.c */i4_t fscan_ind __P ((struct ldesscan * desscn, char *key2, char *inf, i4_t infsz, char modescan));i4_t scan_ind __P ((struct ldesscan * desscn, char *key2, char *inf, i4_t infsz, char modescan));char *icp_lookup __P ((struct A * pg, struct ldesind * desind, char *key, char *key2, i4_t infsz, char **agr, char **loc));/* inscon.c */CPNM inscrl __P ((struct id_rel * pidrl_in, struct id_rel * pidrl_out, u2_t fln, u2_t * fl, u2_t slsz, char *sc));i4_t inscin __P ((struct id_ind * pidind, struct id_rel * pidrl_out, u2_t fln, u2_t * fl, u2_t slsz, char *sc, u2_t diasz, char *diasc));i4_t inscfl __P ((i4_t idfl, struct id_rel * pidrl_out, u2_t fln, u2_t * fl, u2_t slsz, char *sc));/* insfltr.c */i4_t insfltr __P ((i4_t scnum, i4_t idfl));/* insrtn.c */i4_t insrtn __P ((struct id_rel * pidrel, char *cort));/* join.c */struct ans_ctob join __P ((struct id_rel * pir1, i4_t mfn1sz, u2_t * mfn1, struct id_rel * pir2, i4_t mfn2sz, u2_t * mfn2));/* keyfrm.c */void keyform __P ((struct ldesind * desind, u2_t fdf, char *mas, char *cort));char *remval __P ((char *aval, char **a, u2_t type));/* makegr.c */struct ans_ctob makegroup __P ((struct id_rel * pidrel, u2_t ng, u2_t * glist, u2_t nf,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -