Ignore:
Timestamp:
Jun 20, 2012, 12:44:52 AM (13 years ago)
Author:
bird
Message:

gnumake/current -> 3.82-cvs.

Location:
vendor/gnumake/current
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current

    • Property svn:ignore deleted
  • vendor/gnumake/current/variable.h

    r1989 r2596  
    11/* Definitions for using variables in GNU Make.
    22Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
    3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
    4 Foundation, Inc.
     31998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
     42010 Free Software Foundation, Inc.
    55This file is part of GNU Make.
    66
     
    6060    unsigned int conditional:1; /* Nonzero if set with a ?=. */
    6161    unsigned int per_target:1;  /* Nonzero if a target-specific variable.  */
    62     unsigned int special:1;     /* Nonzero if this is a special variable. */
     62    unsigned int special:1;     /* Nonzero if this is a special variable.  */
    6363    unsigned int exportable:1;  /* Nonzero if the variable _could_ be
    6464                                   exported.  */
    6565    unsigned int expanding:1;   /* Nonzero if currently being expanded.  */
     66    unsigned int private_var:1; /* Nonzero avoids inheritance of this
     67                                   target-specific variable.  */
    6668    unsigned int exp_count:EXP_COUNT_BITS;
    6769                                /* If >1, allow this many self-referential
     
    9395    struct variable_set_list *next;     /* Link in the chain.  */
    9496    struct variable_set *set;           /* Variable set.  */
     97    int next_is_parent;                 /* True if next is a parent target.  */
    9598  };
    9699
     
    108111extern char *variable_buffer;
    109112extern struct variable_set_list *current_variable_set_list;
     113extern struct variable *default_goal_var;
    110114
    111115/* expand.c */
     
    152156                                         enum variable_flavor flavor,
    153157                                         int target_var);
    154 struct variable *parse_variable_definition (struct variable *v, char *line);
     158char *parse_variable_definition (const char *line,
     159                                 enum variable_flavor *flavor);
     160struct variable *assign_variable_definition (struct variable *v, char *line);
    155161struct variable *try_variable_definition (const struct floc *flocp, char *line,
    156162                                          enum variable_origin origin,
     
    175181                                 current_variable_set_list->set,NILF)
    176182
     183/* Define a variable with a constant name in the current variable set.  */
     184
     185#define define_variable_cname(n,v,o,r) \
     186          define_variable_in_set((n),(sizeof (n) - 1),(v),(o),(r),\
     187                                 current_variable_set_list->set,NILF)
     188
    177189/* Define a variable with a location in the current variable set.  */
    178190
     
    190202#define define_variable_for_file(n,l,v,o,r,f) \
    191203          define_variable_in_set((n),(l),(v),(o),(r),(f)->variables->set,NILF)
     204
     205void undefine_variable_in_set (const char *name, unsigned int length,
     206                               enum variable_origin origin,
     207                               struct variable_set *set);
     208
     209/* Remove variable from the current variable set. */
     210
     211#define undefine_variable_global(n,l,o) \
     212          undefine_variable_in_set((n),(l),(o),NULL)
    192213
    193214/* Warn that NAME is an undefined variable.  */
Note: See TracChangeset for help on using the changeset viewer.