IDZEBRA  2.1.2
Data Structures | Macros | Functions | Variables
rsbool.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <idzebra/util.h>
#include <rset.h>

Go to the source code of this file.

Data Structures

struct  rset_private
 
struct  rfd_private
 

Macros

#define RSET_DEBUG   0
 

Functions

static RSFD r_open (RSET ct, int flag)
 
static void r_close (RSFD rfd)
 
static void r_delete (RSET ct)
 
static int r_forward (RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
 
static void r_pos (RSFD rfd, double *current, double *total)
 
static int r_read_not (RSFD rfd, void *buf, TERMID *term)
 
static void r_get_terms (RSET ct, TERMID *terms, int maxterms, int *curterm)
 
static RSET rsbool_create_base (const struct rset_control *ctrl, NMEM nmem, struct rset_key_control *kcontrol, int scope, RSET rset_l, RSET rset_r)
 
RSET rset_create_not (NMEM nmem, struct rset_key_control *kcontrol, int scope, RSET rset_l, RSET rset_r)
 

Variables

static const struct rset_control control_not
 

Macro Definition Documentation

#define RSET_DEBUG   0

Definition at line 32 of file rsbool.c.

Function Documentation

static void r_close ( RSFD  rfd)
static

Definition at line 135 of file rsbool.c.

References rsfd::priv, rfd_private::rfd_l, rfd_private::rfd_r, and rset_close().

static void r_delete ( RSET  ct)
static

Definition at line 99 of file rsbool.c.

static int r_forward ( RSFD  rfd,
void *  buf,
TERMID term,
const void *  untilbuf 
)
static
static void r_get_terms ( RSET  ct,
TERMID terms,
int  maxterms,
int *  curterm 
)
static

Definition at line 260 of file rsbool.c.

References rset::priv, rset_getterms, rset_private::rset_l, and rset_private::rset_r.

static RSFD r_open ( RSET  ct,
int  flag 
)
static
static void r_pos ( RSFD  rfd,
double *  current,
double *  total 
)
static

Definition at line 227 of file rsbool.c.

References rfd_private::hits, rsfd::priv, rfd_private::rfd_l, rfd_private::rfd_r, and rset_pos.

static int r_read_not ( RSFD  rfd,
void *  buf,
TERMID term 
)
static
static RSET rsbool_create_base ( const struct rset_control ctrl,
NMEM  nmem,
struct rset_key_control kcontrol,
int  scope,
RSET  rset_l,
RSET  rset_r 
)
static

Definition at line 74 of file rsbool.c.

References rset::nmem, rset::priv, rset_create_base(), rset_private::rset_l, and rset_private::rset_r.

Referenced by rset_create_not().

RSET rset_create_not ( NMEM  nmem,
struct rset_key_control kcontrol,
int  scope,
RSET  rset_l,
RSET  rset_r 
)

Definition at line 92 of file rsbool.c.

References rsbool_create_base().

Referenced by rpn_search_structure().

Variable Documentation

const struct rset_control control_not
static
Initial value:
=
{
"not",
}
static void r_close(RSFD rfd)
Definition: rsbool.c:135
static void r_get_terms(RSET ct, TERMID *terms, int maxterms, int *curterm)
Definition: rsbool.c:260
int rset_no_write(RSFD rfd, const void *buf)
Definition: rset.c:431
static void r_pos(RSFD rfd, double *current, double *total)
Definition: rsbool.c:227
static void r_delete(RSET ct)
Definition: rsbool.c:99
static int r_forward(RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
Definition: rsbool.c:143
static int r_read_not(RSFD rfd, void *buf, TERMID *term)
Definition: rsbool.c:173
static RSFD r_open(RSET ct, int flag)
Definition: rsbool.c:103

Definition at line 43 of file rsbool.c.