IDZEBRA  2.1.2
Data Structures | Functions | Variables
rsbetween.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_between_info
 
struct  rset_between_rfd
 

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 int r_read (RSFD rfd, void *buf, TERMID *term)
 
static void r_pos (RSFD rfd, double *current, double *total)
 
static void r_get_terms (RSET ct, TERMID *terms, int maxterms, int *curterm)
 
static void checkterm (RSET rs, char *tag, NMEM nmem)
 
RSET rset_create_between (NMEM nmem, struct rset_key_control *kcontrol, int scope, RSET rset_l, RSET rset_m1, RSET rset_m2, RSET rset_r, RSET rset_attr)
 
static void checkattr (RSFD rfd)
 

Variables

static const struct rset_control control
 
static int log_level = 0
 
static int log_level_initialized = 0
 

Function Documentation

static void checkattr ( RSFD  rfd)
static
static void checkterm ( RSET  rs,
char *  tag,
NMEM  nmem 
)
static

Definition at line 91 of file rsbetween.c.

References rset_term::rset, rset_term_create(), and rset::term.

Referenced by rset_create_between().

static void r_close ( RSFD  rfd)
static

Definition at line 194 of file rsbetween.c.

References rset_between_rfd::andrfd, log_level, rsfd::priv, and rset_close().

static void r_delete ( RSET  ct)
static

Definition at line 159 of file rsbetween.c.

static int r_forward ( RSFD  rfd,
void *  buf,
TERMID term,
const void *  untilbuf 
)
static

Definition at line 201 of file rsbetween.c.

References rset_between_rfd::andrfd, log_level, rsfd::priv, and rset_forward.

static void r_get_terms ( RSET  ct,
TERMID terms,
int  maxterms,
int *  curterm 
)
static

Definition at line 338 of file rsbetween.c.

References rset::children, and rset_getterms.

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

Definition at line 331 of file rsbetween.c.

References rset_between_rfd::andrfd, log_level, rsfd::priv, and rset_pos.

static int r_read ( RSFD  rfd,
void *  buf,
TERMID term 
)
static
RSET rset_create_between ( NMEM  nmem,
struct rset_key_control kcontrol,
int  scope,
RSET  rset_l,
RSET  rset_m1,
RSET  rset_m2,
RSET  rset_r,
RSET  rset_attr 
)

Variable Documentation

const struct rset_control control
static
Initial value:
=
{
"between",
}
static void r_pos(RSFD rfd, double *current, double *total)
Definition: rsbetween.c:331
int rset_no_write(RSFD rfd, const void *buf)
Definition: rset.c:431
static int r_forward(RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
Definition: rsbetween.c:201
static int r_read(RSFD rfd, void *buf, TERMID *term)
Definition: rsbetween.c:237
static RSFD r_open(RSET ct, int flag)
Definition: rsbetween.c:164
static void r_close(RSFD rfd)
Definition: rsbetween.c:194
static void r_delete(RSET ct)
Definition: rsbetween.c:159
static void r_get_terms(RSET ct, TERMID *terms, int maxterms, int *curterm)
Definition: rsbetween.c:338

Definition at line 51 of file rsbetween.c.

int log_level = 0
static

Definition at line 85 of file rsbetween.c.

Referenced by checkattr(), r_close(), r_forward(), r_open(), r_pos(), r_read(), and rset_create_between().

int log_level_initialized = 0
static

Definition at line 86 of file rsbetween.c.

Referenced by rset_create_between().