mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
New pgindent run with fixes suggested by Tom. Patch manually reviewed,
initdb/regression tests pass.
This commit is contained in:
@ -15,20 +15,20 @@ typedef struct intkey
|
||||
{
|
||||
int4 lower;
|
||||
int4 upper;
|
||||
} INT4KEY;
|
||||
} INT4KEY;
|
||||
|
||||
typedef struct tskey
|
||||
{
|
||||
Timestamp lower;
|
||||
Timestamp upper;
|
||||
} TSKEY;
|
||||
} TSKEY;
|
||||
|
||||
/* used for sorting */
|
||||
typedef struct rix
|
||||
{
|
||||
int index;
|
||||
char *r;
|
||||
} RIX;
|
||||
} RIX;
|
||||
|
||||
/*
|
||||
** int4key in/out
|
||||
|
@ -4,7 +4,7 @@
|
||||
* darcy@druid.net
|
||||
* http://www.druid.net/darcy/
|
||||
*
|
||||
* $Id: chkpass.c,v 1.5 2001/10/25 05:49:19 momjian Exp $
|
||||
* $Id: chkpass.c,v 1.6 2001/11/05 17:46:22 momjian Exp $
|
||||
* best viewed with tabs set to 4
|
||||
*/
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
typedef struct chkpass
|
||||
{
|
||||
char password[16];
|
||||
} chkpass;
|
||||
} chkpass;
|
||||
|
||||
/*
|
||||
* Various forward declarations:
|
||||
|
@ -3,4 +3,4 @@ typedef struct NDBOX
|
||||
unsigned int size; /* required to be a Postgres varlena type */
|
||||
unsigned int dim;
|
||||
float x[1];
|
||||
} NDBOX;
|
||||
} NDBOX;
|
||||
|
@ -51,7 +51,7 @@ typedef struct
|
||||
u_char dbh_hlen[2]; /* length of this header */
|
||||
u_char dbh_rlen[2]; /* length of a record */
|
||||
u_char dbh_stub[20]; /* misc stuff we don't need */
|
||||
} dbf_header;
|
||||
} dbf_header;
|
||||
|
||||
/* disk field-description */
|
||||
|
||||
@ -64,7 +64,7 @@ typedef struct
|
||||
u_char dbf_dec; /* number of decimal positions if type is
|
||||
* 'N' */
|
||||
u_char dbf_stub[14]; /* stuff we don't need */
|
||||
} dbf_field;
|
||||
} dbf_field;
|
||||
|
||||
/* memory field-description */
|
||||
|
||||
@ -74,7 +74,7 @@ typedef struct
|
||||
u_char db_type; /* field-type */
|
||||
u_char db_flen; /* field-length */
|
||||
u_char db_dec; /* number of decimal positions */
|
||||
} f_descr;
|
||||
} f_descr;
|
||||
|
||||
/* memory dfb-header */
|
||||
|
||||
@ -95,7 +95,7 @@ typedef struct
|
||||
u_char *db_buff; /* record-buffer to save malloc()'s */
|
||||
f_descr *db_fields; /* pointer to an array of field-
|
||||
* descriptions */
|
||||
} dbhead;
|
||||
} dbhead;
|
||||
|
||||
/* structure that contains everything a user wants from a field, including
|
||||
the contents (in ASCII). Warning! db_flen may be bigger than the actual
|
||||
@ -109,7 +109,7 @@ typedef struct
|
||||
u_char db_flen; /* field-length */
|
||||
u_char db_dec; /* number of decimal positions */
|
||||
u_char *db_contents; /* contents of the field in ASCII */
|
||||
} field;
|
||||
} field;
|
||||
|
||||
/* prototypes for functions */
|
||||
|
||||
@ -136,4 +136,4 @@ extern void put_long(u_char *cp, long lval);
|
||||
extern short get_short(u_char *cp);
|
||||
extern void put_short(u_char *cp, short lval);
|
||||
|
||||
#endif /* _DBF_H */
|
||||
#endif /* _DBF_H */
|
||||
|
@ -54,7 +54,7 @@ typedef struct
|
||||
*/
|
||||
PGresult *res;
|
||||
|
||||
} dblink_results;
|
||||
} dblink_results;
|
||||
|
||||
/*
|
||||
* External declarations
|
||||
@ -67,4 +67,4 @@ extern Datum dblink_tok(PG_FUNCTION_ARGS);
|
||||
*/
|
||||
dblink_results *init_dblink_results(MemoryContext fn_mcxt);
|
||||
|
||||
#endif /* DBLINK_H */
|
||||
#endif /* DBLINK_H */
|
||||
|
@ -103,7 +103,7 @@ char *StopWords[] = { /* list of words to skip in indexing */
|
||||
"the",
|
||||
"yes"
|
||||
};
|
||||
#endif /* USE_STOP_WORDS */
|
||||
#endif /* USE_STOP_WORDS */
|
||||
|
||||
/* stuff for caching query-plans, stolen from contrib/spi/\*.c */
|
||||
typedef struct
|
||||
@ -111,7 +111,7 @@ typedef struct
|
||||
char *ident;
|
||||
int nplans;
|
||||
void **splan;
|
||||
} EPlan;
|
||||
} EPlan;
|
||||
|
||||
static EPlan *InsertPlans = NULL;
|
||||
static EPlan *DeletePlans = NULL;
|
||||
@ -403,7 +403,7 @@ is_stopword(char *text)
|
||||
else
|
||||
StopHigh = StopMiddle;
|
||||
}
|
||||
#endif /* USE_STOP_WORDS */
|
||||
#endif /* USE_STOP_WORDS */
|
||||
|
||||
return (false);
|
||||
}
|
||||
|
@ -169,4 +169,4 @@ char _codes[26] = {
|
||||
/* These prevent GH from becoming F */
|
||||
#define NOGHTOF(c) (ENCODE(c) & 16) /* BDH */
|
||||
|
||||
#endif /* FUZZYSTRMATCH_H */
|
||||
#endif /* FUZZYSTRMATCH_H */
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* PostgreSQL type definitions for ISBNs.
|
||||
*
|
||||
* $Id: isbn_issn.c,v 1.3 2001/02/10 02:31:25 tgl Exp $
|
||||
* $Id: isbn_issn.c,v 1.4 2001/11/05 17:46:23 momjian Exp $
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
@ -16,7 +16,7 @@ typedef struct isbn
|
||||
{
|
||||
char num[13];
|
||||
char pad[3];
|
||||
} isbn;
|
||||
} isbn;
|
||||
|
||||
/*
|
||||
* Various forward declarations:
|
||||
@ -204,7 +204,7 @@ typedef struct issn
|
||||
{
|
||||
char num[9];
|
||||
char pad[7];
|
||||
} issn;
|
||||
} issn;
|
||||
|
||||
/*
|
||||
* Various forward declarations:
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* -------------------------------------------------------------------------
|
||||
* pg_dumplo
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/pg_dumplo.h,v 1.6 2001/10/28 06:25:40 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/pg_dumplo.h,v 1.7 2001/11/05 17:46:23 momjian Exp $
|
||||
*
|
||||
* Karel Zak 1999-2000
|
||||
* -------------------------------------------------------------------------
|
||||
@ -41,7 +41,7 @@ typedef struct
|
||||
char *lo_table,
|
||||
*lo_attr;
|
||||
Oid lo_oid;
|
||||
} LOlist;
|
||||
} LOlist;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -60,7 +60,7 @@ typedef struct
|
||||
quiet;
|
||||
PGresult *res;
|
||||
PGconn *conn;
|
||||
} LODumpMaster;
|
||||
} LODumpMaster;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@ -69,7 +69,7 @@ typedef enum
|
||||
ACTION_EXPORT_ATTR,
|
||||
ACTION_EXPORT_ALL,
|
||||
ACTION_IMPORT
|
||||
} PGLODUMP_ACTIONS;
|
||||
} PGLODUMP_ACTIONS;
|
||||
|
||||
extern char *progname;
|
||||
|
||||
@ -79,4 +79,4 @@ extern void load_lolist(LODumpMaster * pgLO);
|
||||
extern void pglo_export(LODumpMaster * pgLO);
|
||||
extern void pglo_import(LODumpMaster * pgLO);
|
||||
|
||||
#endif /* PG_DUMPLO_H */
|
||||
#endif /* PG_DUMPLO_H */
|
||||
|
@ -18,7 +18,7 @@ struct
|
||||
const char *tag;
|
||||
int size;
|
||||
int priority;
|
||||
} tags[] =
|
||||
} tags[] =
|
||||
|
||||
{
|
||||
{
|
||||
|
@ -23,7 +23,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.9 2001/10/28 06:25:41 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.10 2001/11/05 17:46:23 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -221,7 +221,7 @@ typedef struct crc64V0
|
||||
{
|
||||
uint32 crc1;
|
||||
uint32 crc2;
|
||||
} crc64V0;
|
||||
} crc64V0;
|
||||
|
||||
static uint32 crc_tableV0[] = {
|
||||
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
|
||||
@ -309,7 +309,7 @@ typedef struct ControlFileDataV0
|
||||
char lc_collate[LOCALE_NAME_BUFLEN_V0];
|
||||
char lc_ctype[LOCALE_NAME_BUFLEN_V0];
|
||||
char archdir[MAXPGPATH]; /* where to move offline log files */
|
||||
} ControlFileDataV0;
|
||||
} ControlFileDataV0;
|
||||
|
||||
typedef struct CheckPointV0
|
||||
{
|
||||
@ -323,7 +323,7 @@ typedef struct CheckPointV0
|
||||
TransactionId nextXid;
|
||||
Oid nextOid;
|
||||
bool Shutdown;
|
||||
} CheckPointV0;
|
||||
} CheckPointV0;
|
||||
|
||||
typedef struct XLogRecordV0
|
||||
{
|
||||
@ -334,14 +334,14 @@ typedef struct XLogRecordV0
|
||||
uint16 xl_len; /* total len of record *data* */
|
||||
uint8 xl_info;
|
||||
RmgrId xl_rmid; /* resource manager inserted this record */
|
||||
} XLogRecordV0;
|
||||
} XLogRecordV0;
|
||||
|
||||
#define SizeOfXLogRecordV0 DOUBLEALIGN(sizeof(XLogRecordV0))
|
||||
|
||||
typedef struct XLogContRecordV0
|
||||
{
|
||||
uint16 xl_len; /* len of data left */
|
||||
} XLogContRecordV0;
|
||||
} XLogContRecordV0;
|
||||
|
||||
#define SizeOfXLogContRecordV0 DOUBLEALIGN(sizeof(XLogContRecordV0))
|
||||
|
||||
@ -351,7 +351,7 @@ typedef struct XLogPageHeaderDataV0
|
||||
{
|
||||
uint32 xlp_magic;
|
||||
uint16 xlp_info;
|
||||
} XLogPageHeaderDataV0;
|
||||
} XLogPageHeaderDataV0;
|
||||
|
||||
#define SizeOfXLogPHDV0 DOUBLEALIGN(sizeof(XLogPageHeaderDataV0))
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.12 2001/10/25 05:49:19 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.13 2001/11/05 17:46:23 momjian Exp $
|
||||
*
|
||||
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
|
||||
* written by Tatsuo Ishii
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
/* for getrlimit */
|
||||
#include <sys/resource.h>
|
||||
#endif /* WIN32 */
|
||||
#endif /* WIN32 */
|
||||
|
||||
/********************************************************************
|
||||
* some configurable parameters */
|
||||
@ -90,7 +90,7 @@ typedef struct
|
||||
int tid; /* teller id for this transaction */
|
||||
int delta;
|
||||
int abalance;
|
||||
} CState;
|
||||
} CState;
|
||||
|
||||
static void
|
||||
usage()
|
||||
@ -680,7 +680,7 @@ main(int argc, char **argv)
|
||||
#else /* but BSD doesn't ... */
|
||||
if (getrlimit(RLIMIT_OFILE, &rlim) == -1)
|
||||
{
|
||||
#endif /* HAVE_RLIMIT_NOFILE */
|
||||
#endif /* HAVE_RLIMIT_NOFILE */
|
||||
fprintf(stderr, "getrlimit failed. reason: %s\n", strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
@ -690,7 +690,7 @@ main(int argc, char **argv)
|
||||
fprintf(stderr, "Use limit/ulimt to increase the limit before using pgbench.\n");
|
||||
exit(1);
|
||||
}
|
||||
#endif /* #ifndef __CYGWIN__ */
|
||||
#endif /* #ifndef __CYGWIN__ */
|
||||
break;
|
||||
case 'C':
|
||||
is_connect = 1;
|
||||
|
@ -48,7 +48,7 @@
|
||||
#define inline __inline
|
||||
#else /* !__GNUC__ */
|
||||
#define inline
|
||||
#endif /* !__GNUC__ */
|
||||
#endif /* !__GNUC__ */
|
||||
|
||||
/* Function for Feistel Networks */
|
||||
|
||||
|
@ -50,7 +50,7 @@ typedef struct BlowfishContext
|
||||
{
|
||||
uint32 S[4][256]; /* S-Boxes */
|
||||
uint32 P[BLF_N + 2]; /* Subkeys */
|
||||
} blf_ctx;
|
||||
} blf_ctx;
|
||||
|
||||
/* Raw access to customized Blowfish
|
||||
* blf_key is just:
|
||||
|
@ -61,7 +61,7 @@ typedef struct
|
||||
{
|
||||
BF_word S[4][0x100];
|
||||
BF_key P;
|
||||
} BF_ctx;
|
||||
} BF_ctx;
|
||||
|
||||
/*
|
||||
* Magic IV for 64 Blowfish encryptions that we do at the end.
|
||||
|
@ -713,7 +713,7 @@ px_crypt_des(const char *key, const char *setting)
|
||||
p = output + strlen(output);
|
||||
}
|
||||
else
|
||||
#endif /* !DISABLE_XDES */
|
||||
#endif /* !DISABLE_XDES */
|
||||
{
|
||||
/*
|
||||
* "old"-style: setting - 2 bytes of salt key - up to 8 characters
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: internal.c,v 1.7 2001/10/28 06:25:41 momjian Exp $
|
||||
* $Id: internal.c,v 1.8 2001/11/05 17:46:23 momjian Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ static struct int_digest
|
||||
{
|
||||
char *name;
|
||||
void (*init) (PX_MD * h);
|
||||
} int_digest_list[] =
|
||||
} int_digest_list[] =
|
||||
|
||||
{
|
||||
{
|
||||
@ -520,7 +520,7 @@ static struct
|
||||
{
|
||||
char *name;
|
||||
PX_Cipher *(*load) (void);
|
||||
} int_ciphers[] =
|
||||
} int_ciphers[] =
|
||||
|
||||
{
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: md5.h,v 1.6 2001/10/28 06:25:41 momjian Exp $ */
|
||||
/* $Id: md5.h,v 1.7 2001/11/05 17:46:23 momjian Exp $ */
|
||||
/* $KAME: md5.h,v 1.3 2000/02/22 14:01:18 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -59,7 +59,7 @@ typedef struct
|
||||
|
||||
unsigned int md5_i;
|
||||
uint8 md5_buf[MD5_BUFLEN];
|
||||
} md5_ctxt;
|
||||
} md5_ctxt;
|
||||
|
||||
extern void md5_init(md5_ctxt *);
|
||||
extern void md5_loop(md5_ctxt *, const uint8 *, unsigned int);
|
||||
@ -76,4 +76,4 @@ do { \
|
||||
md5_result((x), (y)); \
|
||||
} while (0)
|
||||
|
||||
#endif /* ! _NETINET6_MD5_H_ */
|
||||
#endif /* ! _NETINET6_MD5_H_ */
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: openssl.c,v 1.7 2001/10/28 06:25:41 momjian Exp $
|
||||
* $Id: openssl.c,v 1.8 2001/11/05 17:46:23 momjian Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
@ -110,7 +110,7 @@ typedef struct
|
||||
uint8 iv[EVP_MAX_IV_LENGTH];
|
||||
uint klen;
|
||||
uint init;
|
||||
} ossldata;
|
||||
} ossldata;
|
||||
|
||||
/* generic EVP */
|
||||
|
||||
@ -324,35 +324,35 @@ struct
|
||||
{
|
||||
char *name;
|
||||
PX_Cipher cf;
|
||||
} spec_types[] =
|
||||
} spec_types[] =
|
||||
|
||||
{
|
||||
{
|
||||
"bf-cbc",
|
||||
{
|
||||
gen_evp_block_size, gen_evp_key_size, gen_evp_iv_size,
|
||||
bf_init, bf_cbc_encrypt, bf_cbc_decrypt, gen_evp_free
|
||||
bf_init, bf_cbc_encrypt, bf_cbc_decrypt, gen_evp_free
|
||||
}
|
||||
},
|
||||
{
|
||||
"bf-ecb",
|
||||
{
|
||||
gen_evp_block_size, gen_evp_key_size, gen_evp_iv_size,
|
||||
bf_init, bf_ecb_encrypt, bf_ecb_decrypt, gen_evp_free
|
||||
bf_init, bf_ecb_encrypt, bf_ecb_decrypt, gen_evp_free
|
||||
}
|
||||
},
|
||||
{
|
||||
"bf-cfb",
|
||||
{
|
||||
gen_evp_block_size, gen_evp_key_size, gen_evp_iv_size,
|
||||
bf_init, bf_cfb64_encrypt, bf_cfb64_decrypt, gen_evp_free
|
||||
bf_init, bf_cfb64_encrypt, bf_cfb64_decrypt, gen_evp_free
|
||||
}
|
||||
},
|
||||
{
|
||||
"bf-ofb",
|
||||
{
|
||||
gen_evp_block_size, gen_evp_key_size, gen_evp_iv_size,
|
||||
bf_init, bf_ofb64_encrypt, bf_ofb64_decrypt, gen_evp_free
|
||||
bf_init, bf_ofb64_encrypt, bf_ofb64_decrypt, gen_evp_free
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: px-crypt.c,v 1.4 2001/10/28 06:25:41 momjian Exp $
|
||||
* $Id: px-crypt.c,v 1.5 2001/11/05 17:46:23 momjian Exp $
|
||||
*/
|
||||
|
||||
#include <postgres.h>
|
||||
@ -75,7 +75,7 @@ static struct
|
||||
unsigned id_len;
|
||||
char *(*crypt) (const char *psw, const char *salt,
|
||||
char *buf, unsigned len);
|
||||
} px_crypt_list[] =
|
||||
} px_crypt_list[] =
|
||||
|
||||
{
|
||||
{
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: px-crypt.h,v 1.4 2001/10/28 06:25:41 momjian Exp $
|
||||
* $Id: px-crypt.h,v 1.5 2001/11/05 17:46:23 momjian Exp $
|
||||
*/
|
||||
|
||||
#ifndef _PX_CRYPT_H
|
||||
@ -88,6 +88,6 @@ char *px_crypt_des(const char *key, const char *setting);
|
||||
/* crypt-md5.c */
|
||||
char *px_crypt_md5(const char *pw, const char *salt,
|
||||
char *dst, unsigned dstlen);
|
||||
#endif /* !PX_SYSTEM_CRYPT */
|
||||
#endif /* !PX_SYSTEM_CRYPT */
|
||||
|
||||
#endif /* _PX_CRYPT_H */
|
||||
#endif /* _PX_CRYPT_H */
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: px.h,v 1.3 2001/10/25 05:49:20 momjian Exp $
|
||||
* $Id: px.h,v 1.4 2001/11/05 17:46:23 momjian Exp $
|
||||
*/
|
||||
|
||||
#ifndef __PX_H
|
||||
@ -180,4 +180,4 @@ const char *px_resolve_alias(const PX_Alias * aliases, const char *name);
|
||||
(c)->decrypt(c, data, dlen, res, rlen)
|
||||
#define px_combo_free(c) (c)->free(c)
|
||||
|
||||
#endif /* __PX_H */
|
||||
#endif /* __PX_H */
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: random.c,v 1.4 2001/10/28 06:25:41 momjian Exp $
|
||||
* $Id: random.c,v 1.5 2001/11/05 17:46:23 momjian Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -77,7 +77,7 @@ px_get_random_bytes(uint8 *dst, unsigned count)
|
||||
close(fd);
|
||||
return res;
|
||||
}
|
||||
#endif /* RAND_DEV */
|
||||
#endif /* RAND_DEV */
|
||||
|
||||
#ifdef RAND_SILLY
|
||||
|
||||
@ -90,7 +90,7 @@ px_get_random_bytes(uint8 *dst, unsigned count)
|
||||
*dst++ = random();
|
||||
return i;
|
||||
}
|
||||
#endif /* RAND_SILLY */
|
||||
#endif /* RAND_SILLY */
|
||||
|
||||
#ifdef RAND_OPENSSL
|
||||
|
||||
@ -125,4 +125,4 @@ px_get_random_bytes(uint8 *dst, unsigned count)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif /* RAND_OPENSSL */
|
||||
#endif /* RAND_OPENSSL */
|
||||
|
@ -97,7 +97,7 @@ static u4byte il_tab[4][256];
|
||||
#endif
|
||||
|
||||
static u4byte tab_gen = 0;
|
||||
#endif /* !PRE_CALC_TABLES */
|
||||
#endif /* !PRE_CALC_TABLES */
|
||||
|
||||
#define ff_mult(a,b) (a && b ? pow_tab[(log_tab[a] + log_tab[b]) % 255] : 0)
|
||||
|
||||
@ -251,7 +251,7 @@ gen_tabs(void)
|
||||
}
|
||||
|
||||
tab_gen = 1;
|
||||
#endif /* !PRE_CALC_TABLES */
|
||||
#endif /* !PRE_CALC_TABLES */
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,7 +33,7 @@ typedef struct _rijndael_ctx
|
||||
int decrypt;
|
||||
u4byte e_key[64];
|
||||
u4byte d_key[64];
|
||||
} rijndael_ctx;
|
||||
} rijndael_ctx;
|
||||
|
||||
|
||||
/* 2. Standard interface for AES cryptographic routines */
|
||||
@ -54,4 +54,4 @@ void aes_ecb_decrypt(rijndael_ctx * ctx, uint8 *data, unsigned len);
|
||||
void aes_cbc_encrypt(rijndael_ctx * ctx, uint8 *iva, uint8 *data, unsigned len);
|
||||
void aes_cbc_decrypt(rijndael_ctx * ctx, uint8 *iva, uint8 *data, unsigned len);
|
||||
|
||||
#endif /* _RIJNDAEL_H_ */
|
||||
#endif /* _RIJNDAEL_H_ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: sha1.c,v 1.9 2001/10/28 06:25:41 momjian Exp $ */
|
||||
/* $Id: sha1.c,v 1.10 2001/11/05 17:46:23 momjian Exp $ */
|
||||
/* $KAME: sha1.c,v 1.3 2000/02/22 14:01:18 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -346,4 +346,4 @@ sha1_result(struct sha1_ctxt * ctxt, uint8 *digest0)
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* unsupported */
|
||||
#endif /* unsupported */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: sha1.h,v 1.7 2001/10/28 06:25:41 momjian Exp $ */
|
||||
/* $Id: sha1.h,v 1.8 2001/11/05 17:46:23 momjian Exp $ */
|
||||
/* $KAME: sha1.h,v 1.4 2000/02/22 14:01:18 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -72,4 +72,4 @@ typedef struct sha1_ctxt SHA1_CTX;
|
||||
|
||||
#define SHA1_RESULTLEN (160/8)
|
||||
|
||||
#endif /* _NETINET6_SHA1_H_ */
|
||||
#endif /* _NETINET6_SHA1_H_ */
|
||||
|
@ -6,4 +6,4 @@ typedef struct SEG
|
||||
char u_sigd;
|
||||
char l_ext;
|
||||
char u_ext;
|
||||
} SEG;
|
||||
} SEG;
|
||||
|
@ -17,7 +17,7 @@ typedef struct
|
||||
char *ident;
|
||||
int nplans;
|
||||
void **splan;
|
||||
} EPlan;
|
||||
} EPlan;
|
||||
|
||||
static EPlan *FPlans = NULL;
|
||||
static int nFPlans = 0;
|
||||
|
@ -17,7 +17,7 @@ typedef struct
|
||||
{
|
||||
char *ident;
|
||||
void *splan;
|
||||
} EPlan;
|
||||
} EPlan;
|
||||
|
||||
static EPlan *Plans = NULL; /* for UPDATE/DELETE */
|
||||
static int nPlans = 0;
|
||||
|
@ -46,7 +46,7 @@ typedef struct
|
||||
int4 len;
|
||||
int4 flag;
|
||||
char data[1];
|
||||
} GISTTYPE;
|
||||
} GISTTYPE;
|
||||
|
||||
#define ARRKEY 0x01
|
||||
#define SIGNKEY 0x02
|
||||
|
@ -34,7 +34,7 @@ typedef struct
|
||||
char *(*lemmatize) (void *, char *, int *);
|
||||
int (*is_stoplemm) (void *, char *, int);
|
||||
int (*is_stemstoplemm) (void *, char *, int);
|
||||
} DICT;
|
||||
} DICT;
|
||||
|
||||
/* insert all dictionaries */
|
||||
#define DICT_BODY
|
||||
|
@ -72,7 +72,7 @@ typedef struct NODE
|
||||
int2 distance;
|
||||
int2 length;
|
||||
struct NODE *next;
|
||||
} NODE;
|
||||
} NODE;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -92,7 +92,7 @@ typedef struct
|
||||
|
||||
/* state for value's parser */
|
||||
TI_IN_STATE valstate;
|
||||
} QPRS_STATE;
|
||||
} QPRS_STATE;
|
||||
|
||||
/*
|
||||
* get token from query string
|
||||
@ -322,7 +322,7 @@ typedef struct
|
||||
WordEntry *arre;
|
||||
char *values;
|
||||
char *operand;
|
||||
} CHKVAL;
|
||||
} CHKVAL;
|
||||
|
||||
/*
|
||||
* compare 2 string values
|
||||
@ -626,7 +626,7 @@ typedef struct
|
||||
char *cur;
|
||||
char *op;
|
||||
int4 buflen;
|
||||
} INFIX;
|
||||
} INFIX;
|
||||
|
||||
#define RESIZEBUF(inf,addsize) \
|
||||
while( ( inf->cur - inf->buf ) + addsize + 1 >= inf->buflen ) \
|
||||
|
@ -17,7 +17,7 @@ typedef struct ITEM
|
||||
/* user-friendly value */
|
||||
uint16 distance;
|
||||
uint16 length;
|
||||
} ITEM;
|
||||
} ITEM;
|
||||
|
||||
/*
|
||||
*Storage:
|
||||
@ -28,7 +28,7 @@ typedef struct
|
||||
int4 len;
|
||||
int4 size;
|
||||
char data[1];
|
||||
} QUERYTYPE;
|
||||
} QUERYTYPE;
|
||||
|
||||
#define HDRSIZEQT ( 2*sizeof(int4) )
|
||||
#define COMPUTESIZE(size,lenofoperand) ( HDRSIZEQT + size * sizeof(ITEM) + lenofoperand )
|
||||
|
@ -24,7 +24,7 @@ typedef struct NODE
|
||||
struct NODE *left;
|
||||
struct NODE *right;
|
||||
ITEM *valnode;
|
||||
} NODE;
|
||||
} NODE;
|
||||
|
||||
/*
|
||||
* make query tree from plain view of query
|
||||
@ -50,7 +50,7 @@ typedef struct
|
||||
ITEM *ptr;
|
||||
int4 len;
|
||||
int4 cur;
|
||||
} PLAINTREE;
|
||||
} PLAINTREE;
|
||||
|
||||
static void
|
||||
plainnode(PLAINTREE * state, NODE * node)
|
||||
|
@ -334,7 +334,7 @@ typedef struct
|
||||
WORD *words;
|
||||
int4 lenwords;
|
||||
int4 curwords;
|
||||
} PRSTEXT;
|
||||
} PRSTEXT;
|
||||
|
||||
/*
|
||||
* Parse text to lexems
|
||||
|
@ -18,14 +18,14 @@ typedef struct
|
||||
{
|
||||
uint16 len;
|
||||
uint16 pos;
|
||||
} WordEntry;
|
||||
} WordEntry;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int4 len;
|
||||
int4 size;
|
||||
char data[1];
|
||||
} txtidx;
|
||||
} txtidx;
|
||||
|
||||
#define DATAHDRSIZE (sizeof(int4)*2)
|
||||
#define CALCDATASIZE(x, lenstr) ( x * sizeof(WordEntry) + DATAHDRSIZE + lenstr )
|
||||
@ -41,7 +41,7 @@ typedef struct
|
||||
int4 len;
|
||||
int4 state;
|
||||
bool oprisdelim;
|
||||
} TI_IN_STATE;
|
||||
} TI_IN_STATE;
|
||||
|
||||
int4 gettoken_txtidx(TI_IN_STATE * state);
|
||||
|
||||
|
@ -24,7 +24,7 @@ typedef struct
|
||||
char *results[MAXRESULTS];
|
||||
int32 reslens[MAXRESULTS];
|
||||
char *resbuf; /* pointer to the result buffer for pfree */
|
||||
} XPath_Results;
|
||||
} XPath_Results;
|
||||
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@ typedef struct
|
||||
char *resptr;
|
||||
int32 reslen;
|
||||
XPath_Results *xpres;
|
||||
} pgxml_udata;
|
||||
} pgxml_udata;
|
||||
|
||||
|
||||
#define UD ((pgxml_udata *) userData)
|
||||
|
Reference in New Issue
Block a user