Changeset 7ab0020


Ignore:
Timestamp:
Mar 7, 2010, 10:26:00 PM (14 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8c59178
Parents:
0fef6eb
git-author:
Anders Kaseorg <andersk@mit.edu> (02/27/10 20:29:48)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/07/10 22:26:00)
Message:
Rename owl_fmtext_free to owl_fmtext_cleanup.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • fmtext.c

    r1a01720 r7ab0020  
    795795
    796796/* Free all memory allocated by the object */
    797 void owl_fmtext_free(owl_fmtext *f)
     797void owl_fmtext_cleanup(owl_fmtext *f)
    798798{
    799799  if (f->textbuff) owl_free(f->textbuff);
  • functions.c

    r43e8bb2 r7ab0020  
    5757  owl_function_popless_fmtext(&fm);
    5858  owl_cmddict_namelist_free(&l);
    59   owl_fmtext_free(&fm);
     59  owl_fmtext_cleanup(&fm);
    6060}
    6161
     
    7575  owl_view_to_fmtext(v, &fm);
    7676  owl_function_popless_fmtext(&fm);
    77   owl_fmtext_free(&fm);
     77  owl_fmtext_cleanup(&fm);
    7878}
    7979
     
    8989  owl_function_popless_fmtext(&fm);
    9090  owl_list_free_all(&l, owl_free);
    91   owl_fmtext_free(&fm);
     91  owl_fmtext_cleanup(&fm);
    9292}
    9393
     
    13251325
    13261326  owl_function_popless_fmtext(&fm);
    1327   owl_fmtext_free(&fm);
     1327  owl_fmtext_cleanup(&fm);
    13281328  fclose(file);
    13291329}
     
    14821482 
    14831483  owl_function_popless_fmtext(&fm);
    1484   owl_fmtext_free(&fm);
    1485   owl_fmtext_free(&attrfm);
     1484  owl_fmtext_cleanup(&fm);
     1485  owl_fmtext_cleanup(&attrfm);
    14861486}
    14871487
     
    15111511
    15121512  owl_function_popless_fmtext(&fm);
    1513   owl_fmtext_free(&fm);
     1513  owl_fmtext_cleanup(&fm);
    15141514}
    15151515
     
    16561656  owl_variable_dict_namelist_free(&varnames);
    16571657  owl_function_popless_fmtext(&fm);
    1658   owl_fmtext_free(&fm);
     1658  owl_fmtext_cleanup(&fm);
    16591659}
    16601660
     
    16661666  owl_variable_get_help(owl_global_get_vardict(&g), name, &fm);
    16671667  owl_function_popless_fmtext(&fm);
    1668   owl_fmtext_free(&fm); 
     1668  owl_fmtext_cleanup(&fm);
    16691669}
    16701670
     
    18001800
    18011801  owl_function_popless_fmtext(&fm);
    1802   owl_fmtext_free(&fm);
     1802  owl_fmtext_cleanup(&fm);
    18031803}
    18041804
     
    18211821
    18221822  owl_function_popless_fmtext(&fm);
    1823   owl_fmtext_free(&fm);
     1823  owl_fmtext_cleanup(&fm);
    18241824}
    18251825
     
    19031903
    19041904  owl_function_popless_fmtext(&fm);
    1905   owl_fmtext_free(&fm);
     1905  owl_fmtext_cleanup(&fm);
    19061906}
    19071907
     
    22282228  }
    22292229  owl_function_popless_fmtext(&fm);
    2230   owl_fmtext_free(&fm);
     2230  owl_fmtext_cleanup(&fm);
    22312231}
    22322232
     
    22722272  }
    22732273  owl_function_popless_fmtext(&fm);
    2274   owl_fmtext_free(&fm);
     2274  owl_fmtext_cleanup(&fm);
    22752275}
    22762276
     
    27142714 
    27152715  owl_function_popless_fmtext(&fm);
    2716   owl_fmtext_free(&fm);
     2716  owl_fmtext_cleanup(&fm);
    27172717}
    27182718
     
    28392839  owl_function_popless_fmtext(&fm);
    28402840  owl_keyhandler_keymap_namelist_free(&l);
    2841   owl_fmtext_free(&fm);
     2841  owl_fmtext_cleanup(&fm);
    28422842}
    28432843
     
    28642864  } 
    28652865  owl_function_popless_fmtext(&fm);
    2866   owl_fmtext_free(&fm);
     2866  owl_fmtext_cleanup(&fm);
    28672867}
    28682868
     
    28742874  owl_cmd_get_help(owl_global_get_cmddict(&g), cmdname, &fm);
    28752875  owl_function_popless_fmtext(&fm); 
    2876   owl_fmtext_free(&fm);
     2876  owl_fmtext_cleanup(&fm);
    28772877}
    28782878
     
    29812981  owl_fmtext_append_ztext(&fm, zt);
    29822982  plaintext = owl_fmtext_print_plain(&fm);
    2983   owl_fmtext_free(&fm);
     2983  owl_fmtext_cleanup(&fm);
    29842984  return(plaintext);
    29852985}
     
    31003100    owl_function_popless_fmtext(&fm);
    31013101  }
    3102   owl_fmtext_free(&fm);
     3102  owl_fmtext_cleanup(&fm);
    31033103}
    31043104
     
    34813481
    34823482  owl_function_popless_fmtext(&fm);
    3483   owl_fmtext_free(&fm);
     3483  owl_fmtext_cleanup(&fm);
    34843484}
    34853485
  • help.c

    rc79a047 r7ab0020  
    141141  owl_function_popless_fmtext(&fm);
    142142
    143   owl_fmtext_free(&fm);
     143  owl_fmtext_cleanup(&fm);
    144144}
  • message.c

    r91634ec r7ab0020  
    520520  owl_fmtext_curs_waddstr(&b, win);
    521521
    522   owl_fmtext_free(&a);
    523   owl_fmtext_free(&b);
     522  owl_fmtext_cleanup(&a);
     523  owl_fmtext_cleanup(&b);
    524524}
    525525
  • perlglue.xs

    rfde6d80 r7ab0020  
    243243                owl_fmtext_append_ztext(&fm, text);
    244244                owl_function_popless_fmtext(&fm);
    245                 owl_fmtext_free(&fm);
     245                owl_fmtext_cleanup(&fm);
    246246        }
    247247
  • viewwin.c

    r8ae2de9 r7ab0020  
    9595  }
    9696
    97   owl_fmtext_free(&fm1);
    98   owl_fmtext_free(&fm2);
     97  owl_fmtext_cleanup(&fm1);
     98  owl_fmtext_cleanup(&fm2);
    9999}
    100100
     
    156156    v->onclose_hook_data = NULL;
    157157  }
    158   owl_fmtext_free(&(v->fmtext));
     158  owl_fmtext_cleanup(&(v->fmtext));
    159159}
Note: See TracChangeset for help on using the changeset viewer.