1/*- 2 * Copyright (c) 2002 Juli Mallett. 3 * Copyright (c) 1988, 1989, 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * Copyright (c) 1989 by Berkeley Softworks 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 26 unchanged lines hidden (view full) --- 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * @(#)var.c 8.3 (Berkeley) 3/19/94 40 */ 41 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/usr.bin/make/var.c 146145 2005-05-12 14:47:22Z harti $"); |
44 45/** 46 * var.c -- 47 * Variable-handling functions 48 * 49 * Interface: 50 * Var_Set Set the value of a variable in the given 51 * context. The variable is created if it doesn't --- 976 unchanged lines hidden (view full) --- 1028 1029 } 1030 1031 DEBUGF(VAR, ("%s:%s = %s\n", ctxt->name, n, val)); 1032 free(n); 1033} 1034 1035/** |
1036 * Set the a global name variable to the value. 1037 */ 1038void 1039Var_SetGlobal(const char name[], const char value[]) 1040{ 1041 1042 Var_Set(name, value, VAR_GLOBAL); 1043} 1044 1045 1046/** |
1047 * Set the VAR_TO_ENV flag on a variable 1048 */ 1049void 1050Var_SetEnv(const char *name, GNode *ctxt) 1051{ 1052 Var *v; 1053 1054 v = VarFindOnly(name, VAR_CMD); --- 1523 unchanged lines hidden --- |