[dovecot-cvs] dovecot/src/lib-mail message-tokenize.c,1.1,1.2 message-tokenize.h,1.1,1.2

cras at procontrol.fi cras at procontrol.fi
Wed Jan 8 22:47:21 EET 2003


Update of /home/cvs/dovecot/src/lib-mail
In directory danu:/tmp/cvs-serv29044

Modified Files:
	message-tokenize.c message-tokenize.h 
Log Message:
Added message_tokenize_get_parse_position()



Index: message-tokenize.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/message-tokenize.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- message-tokenize.c	5 Jan 2003 13:09:52 -0000	1.1
+++ message-tokenize.c	8 Jan 2003 20:47:19 -0000	1.2
@@ -275,6 +275,11 @@
 	return tok->token;
 }
 
+size_t message_tokenize_get_parse_position(const struct message_tokenizer *tok)
+{
+	return tok->parse_pos;
+}
+
 const unsigned char *
 message_tokenize_get_value(const struct message_tokenizer *tok, size_t *len)
 {

Index: message-tokenize.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/message-tokenize.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- message-tokenize.h	5 Jan 2003 13:09:52 -0000	1.1
+++ message-tokenize.h	8 Jan 2003 20:47:19 -0000	1.2
@@ -51,6 +51,9 @@
 /* Return the current token. */
 enum message_token message_tokenize_get(const struct message_tokenizer *tok);
 
+/* Return position in string where we're currently parsing. */
+size_t message_tokenize_get_parse_position(const struct message_tokenizer *tok);
+
 /* - not including enclosing "", () or []
    - '\' isn't expanded
    - [CR+]LF+LWSP (continued header) isn't removed */




More information about the dovecot-cvs mailing list