static void calculate_idfs (void)
{
int i;
- char *cptr;
double dbl;
for (i = 0; i < saveusr.stemcount; i++) {
static DB_ADDR readbuf [DBAS_PER_BLOCK];
static DB_ADDR *bufptr, *endbuf;
static FILE *fptr;
- static long bal_read, request_read, actual_read;
+ static long bal_read, request_read;
/* First call for new term */
if (wordrec) {
/*------------ OTHER GLOBALS -----------*/
SAVEUSR saveusr = { 0 };
-static DtSrHitword
- next_hitwords [DtSrMAX_STEMCOUNT];
/****************************************/
/************************************************/
void Opera_Engine (void)
{
- int i, len, ws_flag;
+ int i;
char sprintbuf [1024];
- char *ptr, *ptr2;
LLIST *bloblist;
- LLIST *llp;
- FILE *stream;
DBLK *db;
- PARG parg;
DB_ADDR dba;
- static int first_idletime_call = TRUE;
static time_t
start_time = 0L;
int *stemcount) /* put size of stems array */
{
int final_request;
- int i, maxbkt;
+ int i;
char *ptr;
DBLK *db;
LLIST *llp;
long *clearlen, /* length of returned cleartext */
int *fzkeyi) /* ptr to array of FZKEYSZ integers */
{
- int i;
-
if (!valid_dbname (dbname))
return DtSrREINIT;
usrblk.dba = dba;
void print_dbrec (char *dbname, struct or_dbrec * dbrec)
{
int i;
- char *cptr;
int blobs_are_possible = FALSE;
printf (catgets (dtsearch_catd, MS_dbrec, 1,
struct or_blobrec * blobrec)
{
LLIST *new;
- int i;
- char *to;
new = austext_malloc (sizeof (struct or_blobrec) + sizeof (LLIST) + 4,
PROGNAME "36", NULL);
static char formfeed_line[] = "\f\n";
struct or_miscrec
miscrec;
- _Xltimeparams localtime_buf;
struct tm *time_ptr;
/* Test if function is disabled */
store_state = STORE_DONE;
static char *targ = NULL;
static int targlen = 0;
- static int fzkeysz = 0;
static int abstrsz = 0;
int i;
myblobuf;
struct or_miscrec
mymiscrec;
- int i;
int debugging = (usrblk.debug & USRDBG_RETRVL);
- char *src, *targ;
LLIST *new, *lastnode, **lastlink;
int vistano = usrblk.dblk->vistano;
int is_first_misc = TRUE;
} un1;
static char temp1 [MAX_NUM_CHAR+1]; ...repl by blobrec;
************/
- char *ptr, *targ, *src;
+ char *targ, *src;
int i, j;
char temp;
char ret_code = TRUE;
static JPNTREE *node, *last_node;
static UCHAR *substrp, *substrend;
static int direction;
- static int nodelen;
static int jcharlen;
if (is_new_substring) {
{
static int direction;
static WORDTREE *node;
- static char *cptr;
if (debugging_search_wordtree)
fprintf (aa_stderr, PROGNAME"196 search wordtree for '%s':\n",
static size_t outbufsz = 0;
static UCHAR *endmaxword; /* end largest possible output word */
static UCHAR *outp; /* next loc in outbuf */
- static char *begw; /* beginning of a word in the input buffer */
- static char *endw; /* end of a word in the input buffer */
static int *charmap;
static int minwordsz, maxwordsz;
static int wordlen;
int is_duplicate;
long linecount = 0;
char *token;
- char *cptr;
char readbuf [256];
char sprintbuf [_POSIX_PATH_MAX + 1024];
FILE *fileid;
*/
static int load_paice_suffixes (DBLK *dblk, DBLK *dblist)
{
- int i;
FILE *fp;
DBLK *db;
PRULE *prule, **prule_link;
*/
int load_language (DBLK *dblk, DBLK *dblist)
{
- int i;
int oops = FALSE;
- char msgbuf [512];
int language = dblk->dbrec.or_language;
if (debugging_loadlang)
/* sets OE_fileio string pointer */
static void set_fileio (_Xstrtokparams *strtok_buf)
{
- char *ptr;
-
/* if a value is missing, presume -ON */
if ((token = _XStrtok(NULL, DELIMITERS, *strtok_buf)) == NULL) {
OE_fileio = "-ON";
static void read_rest_of_line (char *keyword, char **passed_ptr,
_Xstrtokparams *strtok_buf)
{
- int len;
-
if ((token = _XStrtok(NULL, "\n", *strtok_buf)) == NULL) {
sprintf (sprintbufp, catgets (dtsearch_catd, MS_loadocf, 1007,
"%s%s: Empty %s string ignored."),
static int ocfopen (char *prefix, char *fname, FILE ** stream)
{
char fullname[1024];
- char *cptr;
FILE *fptr;
struct stat statbuf;
int is_prespecified_fname = (prefix == NULL && fname == NULL);
*/
int load_ocf (void)
{
- int i;
- char *ptr, *p, *q;
+ char *p, *q;
char sprintbuf[1024];
char cfgfnamebuf[1024];
char inbuf[1024];
calls would complete before a new task is run. If this assumption is
ever "broken" then lock_reply will need to be placed back within db_global
again */
-
+#ifndef SINGLE_USER
static LR_LOCK lock_reply; /* This used to be in db_global */
+#endif
#ifdef MULTI_TASK
DB_TASK Currtask = {POINTER_ASSIGN((TASK FAR *)&db_global), POINTER_ASSIGN((char FAR *)NULL)};
#ifndef NO_COUNTRY
typedef struct {struct CNTRY_TBL_S FAR *ptr; LOCK_DESC} CNTRY_TBL_P;
#endif
-static struct sk {
+struct sk {
INT sk_fld;
CHAR_P sk_val;
} __SK__;
{
register int ft_lc; /* loop control */
register FILE_ENTRY FAR *file_ptr;
+#ifndef NO_TRANS
int ovfl_save;
+#endif
DB_ENTER(NO_DB_ID TASK_ID LOCK_SET(LOCK_ALL));
PAGE_ENTRY FAR *pg_ptr;
PGZERO FAR *pgzero_ptr;
FILE_ENTRY FAR *file_ptr;
+#ifndef SINGLE_USER
int FAR *appl_ptr, FAR *excl_ptr;
+#endif
#ifndef SINGLE_USER
/*
int dio_flush()
{
register int pgt_lc; /* loop control */
+#ifndef NO_TRANS
int fno;
+#endif
PAGE_ENTRY FAR *pg_ptr;
LOOKUP_ENTRY FAR *lu_ptr;
#include "vista.h"
#include "dbtype.h"
-static DB_ADDR_P Cb = POINTER_INIT();
-#define cb (Cb.ptr)
-
/* Read currency table
*/
void ve_delete (void)
{
DB_ADDR dba;
- DB_ADDR *dbap1, *dbap2;
char charbuf[200 + DtSrMAX_DB_KEYSIZE];
int i, j;
int ret_code;
static int SHM_FLAG = IPC_CREAT | S_IRUSR | S_IWUSR | S_IWGRP |
S_IRGRP | S_IROTH | S_IWOTH;
-static int mem_break;
-
static char *mem_start;
static char *cur_pos;
static long mem_offset;