[BACK]Return to cmd-source-file.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-source-file.c between version 1.2 and 1.3

version 1.2, 2009/07/13 23:11:35 version 1.3, 2009/07/26 12:58:44
Line 26 
Line 26 
   
 int     cmd_source_file_parse(struct cmd *, int, char **, char **);  int     cmd_source_file_parse(struct cmd *, int, char **, char **);
 int     cmd_source_file_exec(struct cmd *, struct cmd_ctx *);  int     cmd_source_file_exec(struct cmd *, struct cmd_ctx *);
 void    cmd_source_file_send(struct cmd *, struct buffer *);  
 void    cmd_source_file_recv(struct cmd *, struct buffer *);  
 void    cmd_source_file_free(struct cmd *);  void    cmd_source_file_free(struct cmd *);
 void    cmd_source_file_init(struct cmd *, int);  void    cmd_source_file_init(struct cmd *, int);
 size_t  cmd_source_file_print(struct cmd *, char *, size_t);  size_t  cmd_source_file_print(struct cmd *, char *, size_t);
Line 43 
Line 41 
         cmd_source_file_init,          cmd_source_file_init,
         cmd_source_file_parse,          cmd_source_file_parse,
         cmd_source_file_exec,          cmd_source_file_exec,
         cmd_source_file_send,  
         cmd_source_file_recv,  
         cmd_source_file_free,          cmd_source_file_free,
         cmd_source_file_print          cmd_source_file_print
 };  };
Line 101 
Line 97 
         }          }
   
         return (0);          return (0);
 }  
   
 void  
 cmd_source_file_send(struct cmd *self, struct buffer *b)  
 {  
         struct cmd_source_file_data     *data = self->data;  
   
         buffer_write(b, data, sizeof *data);  
         cmd_send_string(b, data->path);  
 }  
   
 void  
 cmd_source_file_recv(struct cmd *self, struct buffer *b)  
 {  
         struct cmd_source_file_data     *data;  
   
         self->data = data = xmalloc(sizeof *data);  
         buffer_read(b, data, sizeof *data);  
         data->path = cmd_recv_string(b);  
 }  }
   
 void  void

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3