Commit e8343196 e8343196f108e5a52dbd8c2ff56015fcc6434000 by Sam Roberts

Prototypes for functions to parse rfc822 date-time.

1 parent 5e063591
...@@ -70,7 +70,6 @@ extern int parse822_word __P ((const char** p, const char* e, char** w ...@@ -70,7 +70,6 @@ extern int parse822_word __P ((const char** p, const char* e, char** w
70 extern int parse822_phrase __P ((const char** p, const char* e, char** phrase)); 70 extern int parse822_phrase __P ((const char** p, const char* e, char** phrase));
71 extern int parse822_d_text __P ((const char** p, const char* e, char** dtext)); 71 extern int parse822_d_text __P ((const char** p, const char* e, char** dtext));
72 72
73
74 /* From RFC 822, 6.1 Address Specification Syntax */ 73 /* From RFC 822, 6.1 Address Specification Syntax */
75 74
76 extern int parse822_address_list __P ((address_t* a, const char* s)); 75 extern int parse822_address_list __P ((address_t* a, const char* s));
...@@ -99,6 +98,15 @@ extern int parse822_quote_local_part __P ((char** quoted, const char* raw)); ...@@ -99,6 +98,15 @@ extern int parse822_quote_local_part __P ((char** quoted, const char* raw));
99 98
100 extern int parse822_field_body __P ((const char** p, const char *e, char** fieldbody)); 99 extern int parse822_field_body __P ((const char** p, const char *e, char** fieldbody));
101 extern int parse822_field_name __P ((const char** p, const char *e, char** fieldname)); 100 extern int parse822_field_name __P ((const char** p, const char *e, char** fieldname));
101
102 /***** From RFC 822, 5.1 Date and Time Specification Syntax *****/
103
104 extern int parse822_day __P ((const char** p, const char* e, int* day));
105 extern int parse822_date __P ((const char** p, const char* e, int* day, int* mon, int* year));
106 extern int parse822_time __P ((const char** p, const char* e, int* h, int* m, int* s, int* tz, const char** tzname));
107 extern int parse822_date_time __P ((const char** p, const char* e, struct tm* tm));
108
109
102 #ifdef __cplusplus 110 #ifdef __cplusplus
103 } 111 }
104 #endif 112 #endif
......