Changeset f14a7ee for message.c


Ignore:
Timestamp:
Jun 10, 2003, 3:20:48 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8b32593
Parents:
bd3f232
Message:
renamed some message functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    rbd3f232 rf14a7ee  
    107107owl_fmtext *owl_message_get_fmtext(owl_message *m)
    108108{
     109  owl_message_format(m);
     110  return(&(m->fmtext));
     111}
     112
     113void owl_message_format(owl_message *m)
     114{
    109115  owl_style *s;
    110116
    111   /* if the format is invalid, regenerate the text based on the
    112    * current style
    113    */
    114117  if (m->invalid_format) {
    115118    owl_fmtext_free(&(m->fmtext));
     
    119122    m->invalid_format=0;
    120123  }
    121   return(&(m->fmtext));
    122124}
    123125
     
    390392{
    391393  if (m == NULL) return(0);
    392   (void) owl_message_get_fmtext(m);
     394  owl_message_format(m);
    393395  return(owl_fmtext_num_lines(&(m->fmtext)));
    394396}
     
    439441
    440442  /* this will ensure that our cached copy is up to date */
    441   (void) owl_message_get_fmtext(m);
     443  owl_message_format(m);
    442444
    443445  owl_fmtext_init_null(&a);
     
    568570{
    569571
    570   (void) owl_message_get_fmtext(m); /* is this necessary? */
     572  owl_message_format(m); /* is this necessary? */
    571573 
    572574  return (owl_fmtext_search(&(m->fmtext), string));
Note: See TracChangeset for help on using the changeset viewer.