PIPS
methods.h File Reference
#include "methods-inc.h"
+ Include dependency graph for methods.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NEWGEN_METHODS
 
#define NEWGENNOCHECK_METHODS
 
#define DONOTHING_METHODS    no_read, no_write, no_free, (CHECKER) gen_true
 
#define STATEMENT_FUNCTION_METHODS
 
#define STATEMENT_MAPPING_METHODS
 
#define STATIC_STATEMENT_MAPPING_METHODS
 
#define GENFREE_METHODS    no_read, no_write, (FREER) gen_free, (CHECKER) gen_true
 
#define STRING_METHODS
 
#define DECLARATIONS_METHODS
 
#define ENTITY_METHODS
 
#define UNEXPECTED_METHODS
 

Macro Definition Documentation

◆ DECLARATIONS_METHODS

#define DECLARATIONS_METHODS
Value:
void declarations_write(FILE *f, hash_table h)
Functions to read and write declarations resource, which is a hash table whose key and value are stri...
Definition: externals.c:335
hash_table declarations_read(FILE *f)
Definition: externals.c:345
bool gen_true(__attribute__((unused)) gen_chunk *unused)
Return true and ignore the argument.
Definition: genClib.c:2780
void hash_table_free(hash_table htp)
this function deletes a hash table that is no longer useful.
Definition: hash.c:327
void(* WRITER)(FILE *, void *)
Definition: lowlevel.c:44
void(* FREER)(void *)
Definition: lowlevel.c:45
char *(* READER)(FILE *)
Definition: lowlevel.c:43
bool(* CHECKER)(void *)
Definition: lowlevel.c:46

Definition at line 74 of file methods.h.

◆ DONOTHING_METHODS

#define DONOTHING_METHODS    no_read, no_write, no_free, (CHECKER) gen_true

Definition at line 44 of file methods.h.

◆ ENTITY_METHODS

#define ENTITY_METHODS
Value:
char * pipsdbm_read_entities(FILE *fd)
externals.c
Definition: externals.c:64
void pipsdbm_free_entities(char *p)
Definition: externals.c:72
int gen_write_tabulated(FILE *fd, int domain)
GEN_WRITE_TABULATED writes the tabulated object TABLE on FD.
Definition: genClib.c:1866

Definition at line 80 of file methods.h.

◆ GENFREE_METHODS

#define GENFREE_METHODS    no_read, no_write, (FREER) gen_free, (CHECKER) gen_true

Definition at line 65 of file methods.h.

◆ NEWGEN_METHODS

#define NEWGEN_METHODS
Value:
void gen_free(gen_chunk *obj)
version without shared_pointers.
Definition: genClib.c:992
int gen_consistent_p(gen_chunk *obj)
GEN_CONSISTENT_P dynamically checks the type correctness of OBJ.
Definition: genClib.c:2398
gen_chunk * gen_read(FILE *file)
GEN_READ reads any object from the FILE stream.
Definition: genClib.c:2323
void gen_write(FILE *fd, gen_chunk *obj)
GEN_WRITE writes the OBJect on the stream FD.
Definition: genClib.c:1745

Definition at line 32 of file methods.h.

◆ NEWGENNOCHECK_METHODS

#define NEWGENNOCHECK_METHODS
Value:

Definition at line 38 of file methods.h.

◆ STATEMENT_FUNCTION_METHODS

#define STATEMENT_FUNCTION_METHODS
Value:
bool pipsdbm_consistent_statement_function(gen_chunkp map)
Definition: externals.c:226
gen_chunkp pipsdbm_read_statement_function(FILE *fd)
Should use a higher level pipsdbm_read_statement_mapping() to survive to XML.
Definition: externals.c:271
void pipsdbm_write_statement_function(FILE *fd, gen_chunkp map)
the stored stuff need be based on the ordering...
Definition: externals.c:245

Definition at line 47 of file methods.h.

◆ STATEMENT_MAPPING_METHODS

#define STATEMENT_MAPPING_METHODS
Value:
void pipsdbm_free_statement_mapping(statement_mapping h)
Definition: externals.c:190
void pipsdbm_write_statement_mapping(FILE *fd, statement_mapping h)
Write a statement mapping.
Definition: externals.c:115
bool pipsdbm_check_statement_mapping(statement_mapping h)
a little bit partial, because domain are not checked.
Definition: externals.c:178
hash_table pipsdbm_read_statement_mapping(FILE *fd)
Read a statement mapping.
Definition: externals.c:147

Definition at line 53 of file methods.h.

◆ STATIC_STATEMENT_MAPPING_METHODS

#define STATIC_STATEMENT_MAPPING_METHODS
Value:
void free_static_control_mapping(statement_mapping map)
Modification Dec 11 1995: ne pas utiliser free_static_control car il libere des champs qui appartienn...
Definition: externals.c:318

Definition at line 59 of file methods.h.

◆ STRING_METHODS

#define STRING_METHODS
Value:
writeln_string, \
(FREER) free, \
char * safe_readline(FILE *file)
returns the allocated line read, whatever its length.
Definition: file.c:497
void free(void *)

Definition at line 68 of file methods.h.

◆ UNEXPECTED_METHODS

#define UNEXPECTED_METHODS
Value:
static void unexpected(void)
Definition: lowlevel.c:61

Definition at line 86 of file methods.h.