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

Diff for /src/usr.bin/tmux/options-table.c between version 1.32 and 1.33

version 1.32, 2013/01/17 00:11:22 version 1.33, 2013/03/21 16:15:52
Line 746 
Line 746 
   
 /* Print an option using its type from the table. */  /* Print an option using its type from the table. */
 const char *  const char *
 options_table_print_entry(  options_table_print_entry(const struct options_table_entry *oe,
     const struct options_table_entry *oe, struct options_entry *o)      struct options_entry *o, int no_quotes)
 {  {
         static char      out[BUFSIZ];          static char      out[BUFSIZ];
         const char      *s;          const char      *s;
Line 755 
Line 755 
         *out = '\0';          *out = '\0';
         switch (oe->type) {          switch (oe->type) {
         case OPTIONS_TABLE_STRING:          case OPTIONS_TABLE_STRING:
                 xsnprintf(out, sizeof out, "\"%s\"", o->str);                  if (no_quotes)
                           xsnprintf(out, sizeof out, "%s", o->str);
                   else
                           xsnprintf(out, sizeof out, "\"%s\"", o->str);
                 break;                  break;
         case OPTIONS_TABLE_NUMBER:          case OPTIONS_TABLE_NUMBER:
                 xsnprintf(out, sizeof out, "%lld", o->num);                  xsnprintf(out, sizeof out, "%lld", o->num);
                 break;                  break;
         case OPTIONS_TABLE_KEY:          case OPTIONS_TABLE_KEY:
                 xsnprintf(out, sizeof out, "%s", key_string_lookup_key(o->num));                  xsnprintf(out, sizeof out, "%s",
                       key_string_lookup_key(o->num));
                 break;                  break;
         case OPTIONS_TABLE_COLOUR:          case OPTIONS_TABLE_COLOUR:
                 s = colour_tostring(o->num);                  s = colour_tostring(o->num);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33