var.c (141437) | var.c (141454) |
---|---|
1/*- 2 * Copyright (c) 1988, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1989 by Berkeley Softworks 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. --- 25 unchanged lines hidden (view full) --- 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)var.c 8.3 (Berkeley) 3/19/94 39 */ 40 41#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1988, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1989 by Berkeley Softworks 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Adam de Boor. --- 25 unchanged lines hidden (view full) --- 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)var.c 8.3 (Berkeley) 3/19/94 39 */ 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/usr.bin/make/var.c 141437 2005-02-07 07:54:23Z harti $"); | 42__FBSDID("$FreeBSD: head/usr.bin/make/var.c 141454 2005-02-07 11:27:47Z harti $"); |
43 44/*- 45 * var.c -- 46 * Variable-handling functions 47 * 48 * Interface: 49 * Var_Set Set the value of a variable in the given 50 * context. The variable is created if it doesn't --- 1487 unchanged lines hidden (view full) --- 1538 termc = *cp; 1539 break; 1540 } 1541 /*FALLTHRU*/ 1542#ifdef SUNSHCMD 1543 case 's': 1544 if (tstr[1] == 'h' && (tstr[2] == endc || tstr[2] == ':')) { 1545 const char *error; | 43 44/*- 45 * var.c -- 46 * Variable-handling functions 47 * 48 * Interface: 49 * Var_Set Set the value of a variable in the given 50 * context. The variable is created if it doesn't --- 1487 unchanged lines hidden (view full) --- 1538 termc = *cp; 1539 break; 1540 } 1541 /*FALLTHRU*/ 1542#ifdef SUNSHCMD 1543 case 's': 1544 if (tstr[1] == 'h' && (tstr[2] == endc || tstr[2] == ':')) { 1545 const char *error; |
1546 newStr = Cmd_Exec(str, &error); | 1546 Buffer *buf; 1547 1548 buf = Cmd_Exec(str, &error); 1549 newStr = Buf_GetAll(buf, NULL); 1550 Buf_Destroy(buf, FALSE); 1551 |
1547 if (error) 1548 Error(error, str); 1549 cp = tstr + 2; 1550 termc = *cp; 1551 break; 1552 } 1553 /*FALLTHRU*/ 1554#endif --- 403 unchanged lines hidden --- | 1552 if (error) 1553 Error(error, str); 1554 cp = tstr + 2; 1555 termc = *cp; 1556 break; 1557 } 1558 /*FALLTHRU*/ 1559#endif --- 403 unchanged lines hidden --- |