Changeset 153 in kBuild for branches/GNU/src/gmake/read.c
- Timestamp:
- Sep 8, 2004 2:43:30 AM (20 years ago)
- File:
-
- 1 edited
-
branches/GNU/src/gmake/read.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/read.c
r54 r153 138 138 const struct floc *flocp, int set_default)); 139 139 static void record_target_var PARAMS ((struct nameseq *filenames, char *defn, 140 int two_colon,141 140 enum variable_origin origin, 142 141 int enabled, … … 510 509 while (1) 511 510 { 512 int linelen;511 unsigned int linelen; 513 512 char *line; 514 513 int len; … … 1058 1057 exported = 0; 1059 1058 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 } 1070 1071 1071 1072 if (wtype != w_eol) … … 1084 1085 p = variable_buffer + l; 1085 1086 } 1086 record_target_var (filenames, p, two_colon, v_origin, exported, 1087 fstart); 1087 record_target_var (filenames, p, v_origin, exported, fstart); 1088 1088 filenames = 0; 1089 1089 continue; … … 1464 1464 char *var; 1465 1465 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; 1468 1475 p = next_token (p); 1469 1476 if (*p != '\0') 1470 1477 return -1; 1471 1478 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'; 1477 1480 v = lookup_variable (var, strlen (var)); 1478 1481 conditionals->ignoring[conditionals->if_cmds - 1] … … 1660 1663 1661 1664 static void 1662 record_target_var (struct nameseq *filenames, char *defn, int two_colon,1665 record_target_var (struct nameseq *filenames, char *defn, 1663 1666 enum variable_origin origin, int exported, 1664 1667 const struct floc *flocp)
Note:
See TracChangeset
for help on using the changeset viewer.

