make MYDDAS into its own module.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user