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

Diff for /src/usr.bin/make/suff.c between version 1.5 and 1.6

version 1.5, 1996/11/30 21:09:04 version 1.6, 1998/07/02 20:47:28
Line 633 
Line 633 
     gn->type = OP_TRANSFORM;      gn->type = OP_TRANSFORM;
   
     (void)SuffParseTransform(line, &s, &t);      (void)SuffParseTransform(line, &s, &t);
       /*
        * If there is nothing to transform to, *t->name will be NUL.
        * The rest is paranoia.
        */
       if (!s->name || !t->name || !*s->name || !*t->name)
           return(NULL);
   
     /*      /*
      * link the two together in the proper relationship and order       * link the two together in the proper relationship and order
Line 1685 
Line 1691 
      */       */
     eoarch = strchr (gn->name, '(');      eoarch = strchr (gn->name, '(');
     eoname = strchr (eoarch, ')');      eoname = strchr (eoarch, ')');
       if (eoarch == NULL || eoname == NULL)
           return;
   
     *eoname = '\0';       /* Nuke parentheses during suffix search */      *eoname = '\0';       /* Nuke parentheses during suffix search */
     *eoarch = '\0';       /* So a suffix can be found */      *eoarch = '\0';       /* So a suffix can be found */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6