[BACK]Return to value.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tip

Diff for /src/usr.bin/tip/Attic/value.c between version 1.32 and 1.33

version 1.32, 2010/07/11 23:16:42 version 1.33, 2010/08/23 19:05:08
Line 239 
Line 239 
         int              written;          int              written;
         FILE            *fp;          FILE            *fp;
   
           /* Clear the table and set the defaults. */
           for (vp = vtable; vp->v_name != NULL; vp++) {
                   vp->v_string = NULL;
                   vp->v_number = 0;
           }
           vsetnum(BEAUTIFY, 1);
           vsetnum(ESCAPE, '~');
           vsetnum(FORCE, CTRL('p'));
           vsetnum(PROMPT, '\n');
           vsetnum(TAND, 1);
           vsetnum(VERBOSE, 1);
           vsetstr(LOG, _PATH_ACULOG);
   
         /* Read environment variables. */          /* Read environment variables. */
         if ((cp = getenv("HOME")) != NULL)          if ((cp = getenv("HOME")) != NULL)
                 vsetstr(HOME, cp);                  vsetstr(HOME, cp);
Line 253 
Line 266 
                 vsetstr(SHELL, cp);                  vsetstr(SHELL, cp);
         else          else
                 vsetstr(SHELL, _PATH_BSHELL);                  vsetstr(SHELL, _PATH_BSHELL);
   
         /* Clear the table and set the defaults. */  
         for (vp = vtable; vp->v_name != NULL; vp++) {  
                 vp->v_string = NULL;  
                 vp->v_number = 0;  
         }  
         vsetnum(BEAUTIFY, 1);  
         vsetnum(ESCAPE, '~');  
         vsetnum(FORCE, CTRL('p'));  
         vsetnum(PROMPT, '\n');  
         vsetnum(TAND, 1);  
         vsetnum(VERBOSE, 1);  
         vsetstr(LOG, _PATH_ACULOG);  
   
         /* Read the .tiprc file in the HOME directory. */          /* Read the .tiprc file in the HOME directory. */
         written = snprintf(file, sizeof(file), "%s/.tiprc", vgetstr(HOME));          written = snprintf(file, sizeof(file), "%s/.tiprc", vgetstr(HOME));

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