Ignore:
Timestamp:
Mar 17, 2008, 11:21:36 PM (17 years ago)
Author:
bird
Message:

Implemented local variable definitions - CONFIG_WITH_LOCAL_VARIABLES.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/variable.c

    r1334 r1408  
    15361536#endif
    15371537
     1538#ifdef CONFIG_WITH_LOCAL_VARIABLES
     1539          /* If we have += but we're in a target or local variable context,
     1540             we want to append only with other variables in the context of
     1541             this target.  */
     1542        if (target_var || origin == o_local)
     1543#else
    15381544        /* If we have += but we're in a target variable context, we want to
    15391545           append only with other variables in the context of this target.  */
    15401546        if (target_var)
     1547#endif
    15411548          {
    15421549            append = 1;
     
    17341741#endif
    17351742                              origin, flavor == f_recursive,
     1743#ifdef CONFIG_WITH_LOCAL_VARIABLES
     1744                              (target_var || origin == o_local
     1745#else
    17361746                              (target_var
     1747#endif
    17371748                               ? current_variable_set_list->set : NULL),
    17381749                              flocp);
     
    18681879/* Try to interpret LINE (a null-terminated string) as a variable definition.
    18691880
    1870    ORIGIN may be o_file, o_override, o_env, o_env_override,
     1881   ORIGIN may be o_file, o_override, o_env, o_env_override, o_local,
    18711882   or o_command specifying that the variable definition comes
    18721883   from a makefile, an override directive, the environment with
     
    19351946      origin = _("automatic");
    19361947      break;
     1948#ifdef CONFIG_WITH_LOCAL_VARIABLES
     1949    case o_local:
     1950      origin = _("`local' directive");
     1951      break;
     1952#endif
    19371953    case o_invalid:
    19381954    default:
Note: See TracChangeset for help on using the changeset viewer.