#ifdef MIKER /**@@@***/
-#ifndef NO_COUNTRY
/* initialize the country table if "vista.ctb" exists */
if ( ctb_init() != S_OKAY )
RETURN( db_status );
#endif
-#endif
/* initialize multi-db tables */
}
#ifdef MIKER /**@@@***/
-#ifndef NO_COUNTRY
/* free the country table */
if ( db_global.ctbl_activ )
ctbl_free();
#endif
-#endif
/* termfree();
key_close();
#define TASK_PTR_DECL /**/
#define TASK_DBN_ONLY DBN_ONLY
-#ifndef NO_COUNTRY
+
/* Country code table definition */
typedef struct CNTRY_TBL_S {
unsigned char out_chr;
unsigned char sort_as2;
unsigned char sub_sort;
} CNTRY_TBL;
-#endif
/* names lists structure declaration */
typedef struct OBJNAMES_S {
typedef struct {struct RI_ENTRY_S *ptr; LOCK_DESC} RI_ENTRY_P;
typedef struct {ULONG *ptr; LOCK_DESC} ULONG_P;
typedef struct {LONG *ptr; LOCK_DESC} LONG_P;
-#ifndef NO_COUNTRY
typedef struct {struct CNTRY_TBL_S *ptr; LOCK_DESC} CNTRY_TBL_P;
-#endif
struct sk {
INT sk_fld;
CHAR_P sk_val;
int Lock_lvl;
#define LOCK_STACK_SIZE 10
int Lock_stack[LOCK_STACK_SIZE];
-#ifndef NO_COUNTRY
CNTRY_TBL_P country_tbl;
int ctbl_activ;
char ctbpath[FILENMLEN];
-#endif
llist Sk_list;
} TASK;
int d_csoset(P1(int) Pi(DB_ADDR *) DBN_Dn); /* csoset.c */
int d_csowrite(P1(int) Pi(long) Pi(const char *) DBN_Dn);
/* csowrite.c */
-#ifndef NO_COUNTRY
int d_ctbpath(P1(const char *)); /* pathfcns.c */
-#endif /* NO_COUNTRY */
int d_dbdpath(P1(const char *)); /* dbdpath.c */
int d_dbfpath(P1(const char *)); /* dbfpath.c */
int d_dblog(P1(const char *)); /* dblog.c */
#define d_csoread dt_csoread
#define d_csoset dt_csoset
#define d_csowrite dt_csowrite
-#ifndef NO_COUNTRY
#define d_ctbpath dt_ctbpath
-#endif
#define d_dbdpath dt_dbdpath
#define d_dbfpath dt_dbfpath
#define d_dblog dt_dblog
return ( bytecmp(f1, f2, len) );
else if ( fld_ptr->fd_dim[0] )
{
-#ifdef NO_COUNTRY
- return ( strncmp(f1, f2, len) );
-#else
if ( db_global.ctbl_activ ) return ( ctblcmp(f1, f2, len) );
else return ( strncmp(f1, f2, len) );
-#endif
}
else
return ( (int)(*f1) - (int)(*f2) );
return( db_status );
}
-#ifndef NO_COUNTRY
/* Compare two strings with sorting according to char-table
*/
static int ctblcmp(s, t, n)
}
return(0);
}
-#endif
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin libfcns.c */
*
* OBJECT CODE ONLY SOURCE MATERIALS
*/
-#ifndef NO_COUNTRY
/*-----------------------------------------------------------------------
mapchar.c -- db_VISTA character map module.
db_global.ctbl_activ = FALSE;
}
-#endif /* NO_COUNTRY */
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin mapchar.c */
dboptions |= optflag;
-#ifndef NO_COUNTRY
if ( optflag & IGNORECASE ) {
if ( !db_global.ctbl_activ) {
if (ctbl_alloc() != S_OKAY )
/* map lower to upper */
db_global.country_tbl.ptr[i].sort_as1 = (char)(i-32);
}
-#endif
RETURN( db_status = S_OKAY );
}
dboptions &= ~optflag;
-#ifndef NO_COUNTRY
if ( optflag & IGNORECASE ) {
if ( db_global.ctbl_activ) {
for ( i = 97; i < 123; i++)
db_global.country_tbl.ptr[i].sort_as1 = (char)i;
}
}
-#endif
RETURN( db_status = S_OKAY );
}
return (dirpath);
}
-#ifndef NO_COUNTRY
/* Set Country Table path
*/
int d_ctbpath(ctb TASK_PARM)
RETURN( db_status );
}
-#endif
/* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin pathfcns.c */
/* csoset.c */
int EXTERNAL_DBN dt_csowrite(P1(int) Pi(long) Pi(const char *) TASK_Di
DBN_Dn); /* csowrite.c */
-#ifndef NO_COUNTRY
int EXTERNAL_FIXED dt_ctbpath(P1(const char *) TASK_Di); /* pathfcns.c */
-#endif
int EXTERNAL_FIXED dt_dbdpath(P1(const char *) TASK_Di ); /* dbdpath.c */
int EXTERNAL_FIXED dt_dbfpath(P1(const char *) TASK_Di ); /* dbfpath.c */
int EXTERNAL_FIXED dt_dblog(P1(const char *) TASK_Di ); /* dblog.c */