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

Diff for /src/usr.bin/make/var.c between version 1.17 and 1.18

version 1.17, 1999/12/06 22:27:37 version 1.18, 1999/12/06 22:28:44
Line 591 
Line 591 
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 char *  char *
 Var_Value (name, ctxt, frp)  Var_Value(name, ctxt)
     char           *name;       /* name to find */      char           *name;       /* name to find */
     GNode          *ctxt;       /* context in which to search for it */      GNode          *ctxt;       /* context in which to search for it */
     char           **frp;  
 {  {
     Var            *v;      Var            *v;
   
     v = VarFind (name, ctxt, FIND_ENV | FIND_GLOBAL | FIND_CMD);      v = VarFind (name, ctxt, FIND_ENV | FIND_GLOBAL | FIND_CMD);
     *frp = NULL;  
     if (v != (Var *) NIL) {      if (v != (Var *) NIL) {
         char *p = Buf_GetAll(v->val, NULL);          char *p = Buf_GetAll(v->val, NULL);
         return p;          return p;

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