Mercurial > pidgin-twitter
comparison pidgin-twitter.h @ 122:a37dd74c8355
- adapted to identi.ca changes.
- try to get rid of variable 'timezone'.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 18 Jul 2008 18:19:58 +0900 |
parents | 0c4a83f734cd |
children | ec861f8a2268 |
comparison
equal
deleted
inserted
replaced
121:8b58990f5ee9 | 122:a37dd74c8355 |
---|---|
1 #ifndef _PIDGIN_TWITTER_H_ | 1 #ifndef _PIDGIN_TWITTER_H_ |
2 #define _PIDGIN_TWITTER_H_ | 2 #define _PIDGIN_TWITTER_H_ |
3 | 3 |
4 #define _BSD_SOURCE | |
4 #define _XOPEN_SOURCE 600 | 5 #define _XOPEN_SOURCE 600 |
5 #include <stdio.h> | 6 #include <stdio.h> |
6 #include <stdlib.h> | 7 #include <stdlib.h> |
7 #include <string.h> | 8 #include <string.h> |
8 #include <glib.h> | 9 #include <glib.h> |
120 #define OOPS_MESSAGE "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>" | 121 #define OOPS_MESSAGE "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>" |
121 #define EMPTY "" | 122 #define EMPTY "" |
122 | 123 |
123 /* patterns */ | 124 /* patterns */ |
124 #define P_RECIPIENT "@([A-Za-z0-9_]+)" | 125 #define P_RECIPIENT "@([A-Za-z0-9_]+)" |
125 #define P_SENDER "^(\\r?\\n?)([A-Za-z0-9_]+): " | 126 #define P_SENDER "^(\\r?\\n?)\\s*([A-Za-z0-9_]+): " |
126 #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" | 127 #define P_COMMAND "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+)(?:\\s*\\Z)" |
127 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" | 128 #define P_PSEUDO "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)" |
128 #define P_USER "^\\(.+?\\)\\s*([A-Za-z0-9_]+):" | 129 #define P_USER "^\\(.+?\\)\\s*([A-Za-z0-9_]+):" |
129 #define P_USER_FIRST_LINE "^\\(.+?\\)\\s*.+:\\s*([A-Za-z0-9_]+):" | 130 #define P_USER_FIRST_LINE "^\\(.+?\\)\\s*.+:\\s*([A-Za-z0-9_]+):" |
130 #define P_USER_FORMATTED "^.*?<a .+?>([A-Za-z0-9_]+)</a>:" | 131 #define P_USER_FORMATTED "^.*?<a .+?>([A-Za-z0-9_]+)</a>:" |