parse.c (103503) | parse.c (103508) |
---|---|
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 * @(#)parse.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 * @(#)parse.c 8.3 (Berkeley) 3/19/94 39 */ 40 41#include <sys/cdefs.h> |
42__FBSDID("$FreeBSD: head/usr.bin/make/parse.c 103503 2002-09-17 21:29:06Z jmallett $"); | 42__FBSDID("$FreeBSD: head/usr.bin/make/parse.c 103508 2002-09-17 22:31:26Z jmallett $"); |
43 44/*- 45 * parse.c -- 46 * Functions to parse a makefile. 47 * 48 * One function, Parse_Init, must be called before any functions 49 * in this module are used. After that, the function Parse_File is the 50 * main entry point and controls most of the other functions in this --- 1757 unchanged lines hidden (view full) --- 1808 *--------------------------------------------------------------------- 1809 */ 1810void 1811Parse_FromString(str) 1812 char *str; 1813{ 1814 IFile *oldFile; /* state associated with this file */ 1815 | 43 44/*- 45 * parse.c -- 46 * Functions to parse a makefile. 47 * 48 * One function, Parse_Init, must be called before any functions 49 * in this module are used. After that, the function Parse_File is the 50 * main entry point and controls most of the other functions in this --- 1757 unchanged lines hidden (view full) --- 1808 *--------------------------------------------------------------------- 1809 */ 1810void 1811Parse_FromString(str) 1812 char *str; 1813{ 1814 IFile *oldFile; /* state associated with this file */ 1815 |
1816 if (DEBUG(FOR)) 1817 (void) fprintf(stderr, "%s\n----\n", str); | 1816 DEBUGF(FOR, "%s\n----\n", str); |
1818 1819 oldFile = (IFile *) emalloc (sizeof (IFile)); 1820 oldFile->lineno = lineno; 1821 oldFile->fname = fname; 1822 oldFile->F = curFILE; 1823 oldFile->p = curPTR; 1824 1825 (void) Lst_AtFront (includes, (void *)oldFile); --- 834 unchanged lines hidden --- | 1817 1818 oldFile = (IFile *) emalloc (sizeof (IFile)); 1819 oldFile->lineno = lineno; 1820 oldFile->fname = fname; 1821 oldFile->F = curFILE; 1822 oldFile->p = curPTR; 1823 1824 (void) Lst_AtFront (includes, (void *)oldFile); --- 834 unchanged lines hidden --- |