[BACK]Return to tty-term.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tty-term.c between version 1.18 and 1.19

version 1.18, 2010/09/11 16:19:22 version 1.19, 2011/01/01 03:32:28
Line 32 
Line 32 
   
 struct tty_terms tty_terms = SLIST_HEAD_INITIALIZER(tty_terms);  struct tty_terms tty_terms = SLIST_HEAD_INITIALIZER(tty_terms);
   
 struct tty_term_code_entry tty_term_codes[NTTYCODE] = {  const struct tty_term_code_entry tty_term_codes[NTTYCODE] = {
         { TTYC_ACSC, TTYCODE_STRING, "acsc" },          { TTYC_ACSC, TTYCODE_STRING, "acsc" },
         { TTYC_AX, TTYCODE_FLAG, "AX" },          { TTYC_AX, TTYCODE_FLAG, "AX" },
         { TTYC_BEL, TTYCODE_STRING, "bel" },          { TTYC_BEL, TTYCODE_STRING, "bel" },
Line 214 
Line 214 
 void  void
 tty_term_override(struct tty_term *term, const char *overrides)  tty_term_override(struct tty_term *term, const char *overrides)
 {  {
         struct tty_term_code_entry      *ent;          const struct tty_term_code_entry        *ent;
         struct tty_code                 *code;          struct tty_code                         *code;
         char                            *termnext, *termstr, *entnext, *entstr;          char                                    *termnext, *termstr;
         char                            *s, *ptr, *val;          char                                    *entnext, *entstr;
         const char                      *errstr;          char                                    *s, *ptr, *val;
         u_int                            i;          const char                              *errstr;
         int                              n, removeflag;          u_int                                    i;
           int                                      n, removeflag;
   
         s = xstrdup(overrides);          s = xstrdup(overrides);
   
Line 296 
Line 297 
 struct tty_term *  struct tty_term *
 tty_term_find(char *name, int fd, const char *overrides, char **cause)  tty_term_find(char *name, int fd, const char *overrides, char **cause)
 {  {
         struct tty_term                 *term;          struct tty_term                         *term;
         struct tty_term_code_entry      *ent;          const struct tty_term_code_entry        *ent;
         struct tty_code                 *code;          struct tty_code                         *code;
         u_int                            i;          u_int                                    i;
         int                              n, error;          int                                      n, error;
         char                            *s;          char                                    *s;
         const char                      *acs;          const char                              *acs;
   
         SLIST_FOREACH(term, &tty_terms, entry) {          SLIST_FOREACH(term, &tty_terms, entry) {
                 if (strcmp(term->name, name) == 0) {                  if (strcmp(term->name, name) == 0) {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19