VirtualBox

Changeset 153 in kBuild for branches/GNU/src/gmake/read.c


Ignore:
Timestamp:
Sep 8, 2004 2:43:30 AM (20 years ago)
Author:
bird
Message:

GNU Make 3.81beta1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake/read.c

    r54 r153  
    138138                        const struct floc *flocp, int set_default));
    139139static void record_target_var PARAMS ((struct nameseq *filenames, char *defn,
    140                                        int two_colon,
    141140                                       enum variable_origin origin,
    142141                                       int enabled,
     
    510509  while (1)
    511510    {
    512       int linelen;
     511      unsigned int linelen;
    513512      char *line;
    514513      int len;
     
    10581057        exported = 0;
    10591058        if (wtype == w_static)
    1060           if (word1eq ("override"))
    1061             {
    1062               v_origin = o_override;
    1063               wtype = get_next_mword (p+len, NULL, &p, &len);
    1064             }
    1065           else if (word1eq ("export"))
    1066             {
    1067               exported = 1;
    1068               wtype = get_next_mword (p+len, NULL, &p, &len);
    1069             }
     1059          {
     1060            if (word1eq ("override"))
     1061              {
     1062                v_origin = o_override;
     1063                wtype = get_next_mword (p+len, NULL, &p, &len);
     1064              }
     1065            else if (word1eq ("export"))
     1066              {
     1067                exported = 1;
     1068                wtype = get_next_mword (p+len, NULL, &p, &len);
     1069              }
     1070          }
    10701071
    10711072        if (wtype != w_eol)
     
    10841085                p = variable_buffer + l;
    10851086              }
    1086             record_target_var (filenames, p, two_colon, v_origin, exported,
    1087                                fstart);
     1087            record_target_var (filenames, p, v_origin, exported, fstart);
    10881088            filenames = 0;
    10891089            continue;
     
    14641464      char *var;
    14651465      struct variable *v;
    1466       register char *p = end_of_token (line);
    1467       i = p - line;
     1466      register char *p;
     1467
     1468      /* Expand the thing we're looking up, so we can use indirect and
     1469         constructed variable names.  */
     1470      var = allocated_variable_expand (line);
     1471
     1472      /* Make sure there's only one variable name to test.  */
     1473      p = end_of_token (var);
     1474      i = p - var;
    14681475      p = next_token (p);
    14691476      if (*p != '\0')
    14701477        return -1;
    14711478
    1472       /* Expand the thing we're looking up, so we can use indirect and
    1473          constructed variable names.  */
    1474       line[i] = '\0';
    1475       var = allocated_variable_expand (line);
    1476 
     1479      var[i] = '\0';
    14771480      v = lookup_variable (var, strlen (var));
    14781481      conditionals->ignoring[conditionals->if_cmds - 1]
     
    16601663
    16611664static void
    1662 record_target_var (struct nameseq *filenames, char *defn, int two_colon,
     1665record_target_var (struct nameseq *filenames, char *defn,
    16631666                   enum variable_origin origin, int exported,
    16641667                   const struct floc *flocp)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette