- Timestamp:
- Jun 10, 2003, 3:20:48 PM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 8b32593
- Parents:
- bd3f232
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
message.c
rbd3f232 rf14a7ee 107 107 owl_fmtext *owl_message_get_fmtext(owl_message *m) 108 108 { 109 owl_message_format(m); 110 return(&(m->fmtext)); 111 } 112 113 void owl_message_format(owl_message *m) 114 { 109 115 owl_style *s; 110 116 111 /* if the format is invalid, regenerate the text based on the112 * current style113 */114 117 if (m->invalid_format) { 115 118 owl_fmtext_free(&(m->fmtext)); … … 119 122 m->invalid_format=0; 120 123 } 121 return(&(m->fmtext));122 124 } 123 125 … … 390 392 { 391 393 if (m == NULL) return(0); 392 (void) owl_message_get_fmtext(m);394 owl_message_format(m); 393 395 return(owl_fmtext_num_lines(&(m->fmtext))); 394 396 } … … 439 441 440 442 /* this will ensure that our cached copy is up to date */ 441 (void) owl_message_get_fmtext(m);443 owl_message_format(m); 442 444 443 445 owl_fmtext_init_null(&a); … … 568 570 { 569 571 570 (void) owl_message_get_fmtext(m); /* is this necessary? */572 owl_message_format(m); /* is this necessary? */ 571 573 572 574 return (owl_fmtext_search(&(m->fmtext), string));
Note: See TracChangeset
for help on using the changeset viewer.