make MYDDAS into its own module.

This commit is contained in:
Vitor Santos Costa
2014-01-24 19:59:42 +00:00
parent a613099e1f
commit d648375412
47 changed files with 362 additions and 274 deletions

View File

@@ -70,6 +70,8 @@ void write_msg(const char *fun,const char *file, int line,const char *format, ..
extern int BLOCK_SIZE;
#define buffer (buffers[YAP_ThreadSelf()])
// deletes the buffer (all fields) but does not release the memory of the buffer.ptr
#define DEL_BUFFER {buffer.ptr=NULL;buffer.size=0;buffer.len=0;buffer.pos=0;}
// informs the prologterm2c module that the buffer is now used and should not be messed
@@ -92,6 +94,7 @@ struct buffer_ds {
char *ptr; // pointer to the buffer
size_t pos; // position (used while reading)
};
extern struct buffer_ds buffer;
extern struct buffer_ds buffers[1024];
#endif