Changeset 8dfb59c for editwin.c


Ignore:
Timestamp:
Mar 23, 2010, 5:23:43 PM (14 years ago)
Author:
Nelson Elhage <nelhage@ksplice.com>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
38cc669
Parents:
1b1cd2c
git-author:
Nelson Elhage <nelhage@mit.edu> (03/04/10 09:41:04)
git-committer:
Nelson Elhage <nelhage@ksplice.com> (03/23/10 17:23:43)
Message:
Nuke the editwin buffercommand.

This was really just an alternate name for callback data that was
known to be a string. Now that we can safely pass callback data that
needs to be destroyed, it's redundant.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r1b1cd2c r8dfb59c  
    3535  oe_excursion *excursions;
    3636
    37   char *command;
    3837  void (*callback)(struct _owl_editwin*);
    3938  void (*destroy_cbdata)(void *);
     
    7776  owl_free(e->buff);
    7877  owl_free(e->killbuf);
    79   owl_free(e->command);
    8078  /* just in case someone forgot to clean up */
    8179  while (e->excursions) {
     
    181179{
    182180  e->dotsend=1;
    183 }
    184 
    185 void owl_editwin_set_command(owl_editwin *e, const char *command)
    186 {
    187   if(e->command) owl_free(e->command);
    188   e->command = owl_strdup(command);
    189 }
    190 
    191 const char *owl_editwin_get_command(owl_editwin *e)
    192 {
    193   if(e->command) return e->command;
    194   return "";
    195181}
    196182
Note: See TracChangeset for help on using the changeset viewer.