recutils
Macros | Functions
rec-int.c File Reference
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <regex.h>
#include <gettext.h>
#include <tempname.h>
#include <rec.h>
#include <rec-utils.h>

Macros

#define _(str)   dgettext (PACKAGE, str)
 
#define FNAME(id)   rec_std_field_name ((id))
 
#define ADD_ERROR(buf, str, ...)
 

Functions

int rec_int_check_db (rec_db_t db, bool check_descriptors_p, bool remote_descriptors_p, rec_buf_t errors)
 
int rec_int_check_rset (rec_db_t db, rec_rset_t rset, bool check_descriptor_p, bool remote_descriptor_p, rec_buf_t errors)
 
int rec_int_check_record (rec_db_t db, rec_rset_t rset, rec_record_t orig_record, rec_record_t record, rec_buf_t errors)
 
bool rec_int_check_field_type (rec_db_t db, rec_rset_t rset, rec_field_t field, rec_buf_t errors)
 

Macro Definition Documentation

◆ _

#define _ (   str)    dgettext (PACKAGE, str)

◆ ADD_ERROR

#define ADD_ERROR (   buf,
  str,
  ... 
)
Value:
do \
{ \
char *tmp = NULL; \
if (asprintf (&tmp, (str), __VA_ARGS__) != -1) \
{ \
rec_buf_puts (tmp, (buf)); \
free (tmp); \
} \
} \
while (0)

◆ FNAME

#define FNAME (   id)    rec_std_field_name ((id))

Function Documentation

◆ rec_int_check_db()

int rec_int_check_db ( rec_db_t  db,
bool  check_descriptors_p,
bool  remote_descriptors_p,
rec_buf_t  errors 
)

◆ rec_int_check_field_type()

bool rec_int_check_field_type ( rec_db_t  db,
rec_rset_t  rset,
rec_field_t  field,
rec_buf_t  errors 
)

◆ rec_int_check_record()

int rec_int_check_record ( rec_db_t  db,
rec_rset_t  rset,
rec_record_t  orig_record,
rec_record_t  record,
rec_buf_t  errors 
)

◆ rec_int_check_rset()

int rec_int_check_rset ( rec_db_t  db,
rec_rset_t  rset,
bool  check_descriptor_p,
bool  remote_descriptor_p,
rec_buf_t  errors 
)