Changeset 4542047
- Timestamp:
- Aug 15, 2009, 7:08:20 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 9e5c9f3
- Parents:
- bd65108
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:38:07)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rc08c70a r4542047 2485 2485 char *owl_command_getfilter(int argc, const char *const *argv, const char *buf) 2486 2486 { 2487 owl_filter *f;2487 const owl_filter *f; 2488 2488 if (argc != 2) { 2489 2489 owl_function_makemsg("Wrong number of arguments for %s", argv[0]); -
filter.c
rc08c70a r4542047 151 151 } 152 152 153 const char *owl_filter_get_name( owl_filter *f)153 const char *owl_filter_get_name(const owl_filter *f) 154 154 { 155 155 return(f->name); … … 161 161 } 162 162 163 int owl_filter_get_fgcolor( owl_filter *f)163 int owl_filter_get_fgcolor(const owl_filter *f) 164 164 { 165 165 return(f->fgcolor); … … 171 171 } 172 172 173 int owl_filter_get_bgcolor( owl_filter *f)173 int owl_filter_get_bgcolor(const owl_filter *f) 174 174 { 175 175 return(f->bgcolor); … … 181 181 } 182 182 183 int owl_filter_get_cachedmsgid( owl_filter *f)183 int owl_filter_get_cachedmsgid(const owl_filter *f) 184 184 { 185 185 return(f->cachedmsgid); … … 189 189 * return 0. 190 190 */ 191 int owl_filter_message_match( owl_filter *f, const owl_message *m)191 int owl_filter_message_match(const owl_filter *f, const owl_message *m) 192 192 { 193 193 int ret; … … 198 198 199 199 200 char* owl_filter_print( owl_filter *f)200 char* owl_filter_print(const owl_filter *f) 201 201 { 202 202 GString *out = g_string_new(""); … … 231 231 232 232 /* Return 1 if the filters 'a' and 'b' are equivalent, 0 otherwise */ 233 int owl_filter_equiv( owl_filter *a,owl_filter *b)233 int owl_filter_equiv(const owl_filter *a, const owl_filter *b) 234 234 { 235 235 char *buffa, *buffb; … … 250 250 251 251 252 int owl_filter_is_toodeep( owl_filter *f)252 int owl_filter_is_toodeep(const owl_filter *f) 253 253 { 254 254 return owl_filterelement_is_toodeep(f, f->root); -
filterelement.c
rbd65108 r4542047 66 66 static int owl_filterelement_match_filter(const owl_filterelement *fe, const owl_message *m) 67 67 { 68 owl_filter *subfilter;68 const owl_filter *subfilter; 69 69 subfilter=owl_global_get_filter(&g, fe->field); 70 70 if (!subfilter) { … … 286 286 static int fe_visited = 1; 287 287 288 int owl_filterelement_is_toodeep( owl_filter *f, const owl_filterelement *fe)288 int owl_filterelement_is_toodeep(const owl_filter *f, const owl_filterelement *fe) 289 289 { 290 290 int rv; … … 303 303 { 304 304 int rv = 0; 305 owl_filter *f;305 const owl_filter *f; 306 306 307 307 if(fe->match_message == owl_filterelement_match_filter) { -
functions.c
r3eb599d r4542047 594 594 int curmsg, i, viewsize, found; 595 595 owl_view *v; 596 owl_filter *f = NULL;596 const owl_filter *f = NULL; 597 597 const owl_message *m; 598 598 … … 647 647 int curmsg, i, viewsize, found; 648 648 owl_view *v; 649 owl_filter *f = NULL;649 const owl_filter *f = NULL; 650 650 const owl_message *m; 651 651 … … 1752 1752 owl_message *m; 1753 1753 owl_view *v; 1754 owl_filter *f;1754 const owl_filter *f; 1755 1755 1756 1756 /* get the trash filter */ … … 1887 1887 char *buff=NULL; 1888 1888 const owl_message *m; 1889 owl_filter *f;1889 const owl_filter *f; 1890 1890 1891 1891 if (owl_view_get_size(owl_global_get_current_view(&g))==0) { … … 2247 2247 { 2248 2248 char *newname; 2249 owl_filter *tmpfilt;2249 const owl_filter *tmpfilt; 2250 2250 const char *argv[5]; 2251 2251 … … 2275 2275 { 2276 2276 const owl_list *l; 2277 owl_filter *f;2277 const owl_filter *f; 2278 2278 int i, j; 2279 2279 owl_fmtext fm; … … 2302 2302 void owl_function_show_filter(const char *name) 2303 2303 { 2304 owl_filter *f;2304 const owl_filter *f; 2305 2305 char *buff, *tmp; 2306 2306 … … 2319 2319 void owl_function_show_zpunts() 2320 2320 { 2321 owl_filter *f;2321 const owl_filter *f; 2322 2322 const owl_list *fl; 2323 2323 char buff[5000]; -
logging.c
rc08c70a r4542047 38 38 /* Return 1 if we should log the given message, otherwise return 0 */ 39 39 int owl_log_shouldlog_message(const owl_message *m) { 40 owl_filter *f;40 const owl_filter *f; 41 41 42 42 /* If there's a logfilter and this message matches it, log */ -
mainwin.c
reaa9053 r4542047 16 16 owl_view *v; 17 17 const owl_list *filtlist; 18 owl_filter *f;18 const owl_filter *f; 19 19 20 20 recwin=owl_global_get_curs_recwin(&g); -
message.c
r89b2daf r4542047 526 526 int owl_message_is_personal(const owl_message *m) 527 527 { 528 owl_filter * f = owl_global_get_filter(&g, "personal");528 const owl_filter * f = owl_global_get_filter(&g, "personal"); 529 529 if(!f) { 530 530 owl_function_error("personal filter is not defined"); -
owl.c
r1fdab04 r4542047 487 487 */ 488 488 int owl_process_message(owl_message *m) { 489 owl_filter *f;489 const owl_filter *f; 490 490 /* if this message it on the puntlist, nuke it and continue */ 491 491 if (owl_global_message_is_puntable(&g, m)) { -
perlconfig.c
rc08c70a r4542047 30 30 int i, j; 31 31 const owl_pair *pair; 32 owl_filter *wrap;32 const owl_filter *wrap; 33 33 34 34 if (!m) return &PL_sv_undef; -
perlglue.xs
r77bced3 r4542047 347 347 AV *filters; 348 348 const owl_list *fl; 349 owl_filter *f;349 const owl_filter *f; 350 350 int i; 351 351 CODE:
Note: See TracChangeset
for help on using the changeset viewer.