[dovecot-cvs] 
	dovecot/src/lib data-stack.c, 1.22, 1.23 data-stack.h, 1.4, 1.5
    cras at dovecot.org 
    cras at dovecot.org
       
    Sun Mar 27 16:29:07 EEST 2005
    
        - Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index-private.h, 1.52,
	1.53 mail-index-sync.c, 1.52, 1.53 mail-index-transaction.c,
	1.56, 1.57 mail-index.c, 1.194, 1.195 mail-index.h, 1.144, 1.145
- Next message: [dovecot-cvs] dovecot/src/lib mempool-alloconly.c, 1.29,
	1.30 mempool-datastack.c, 1.10, 1.11 mempool-system.c, 1.16,
	1.17 mempool-unsafe-datastack.c, 1.1, 1.2 mempool.h, 1.15, 1.16
-  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
  
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv17732
Modified Files:
	data-stack.c data-stack.h 
Log Message:
Added t_get_bytes_available().
Index: data-stack.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/data-stack.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- data-stack.c	12 Mar 2005 23:10:33 -0000	1.22
+++ data-stack.c	27 Mar 2005 13:29:04 -0000	1.23
@@ -310,6 +310,11 @@
 	return FALSE;
 }
 
+size_t t_get_bytes_available(void)
+{
+	return current_block->left;
+}
+
 void *t_buffer_get(size_t size)
 {
 	void *ret;
Index: data-stack.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/data-stack.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- data-stack.h	28 Oct 2002 04:50:14 -0000	1.4
+++ data-stack.h	27 Mar 2005 13:29:04 -0000	1.5
@@ -60,6 +60,10 @@
    for last allocated memory in current stack frame. */
 int t_try_realloc(void *mem, size_t size);
 
+/* Returns the number of bytes available in data stack without allocating
+   more memory. */
+size_t t_get_bytes_available(void);
+
 #define t_new(type, count) \
 	((type *) t_malloc0(sizeof(type) * (count)))
 
    
    
        
	- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-index-private.h, 1.52,
	1.53 mail-index-sync.c, 1.52, 1.53 mail-index-transaction.c,
	1.56, 1.57 mail-index.c, 1.194, 1.195 mail-index.h, 1.144, 1.145
- Next message: [dovecot-cvs] dovecot/src/lib mempool-alloconly.c, 1.29,
	1.30 mempool-datastack.c, 1.10, 1.11 mempool-system.c, 1.16,
	1.17 mempool-unsafe-datastack.c, 1.1, 1.2 mempool.h, 1.15, 1.16
-  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
More information about the dovecot-cvs
mailing list