83d7ed8af3
Use an std::stringstream instead. get_word() and get_quoted_word() both return a buffer that's presumed to not need release, so solve this by returning a new special configword type that holds a string or eof/eol state. This cleans up caller checking for EOF/EOL to make it more explicit what they're doing, at least in the EOL cases which previously checked for NULL. Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D38276
26 lines
478 B
Makefile
26 lines
478 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
|
# $FreeBSD$
|
|
|
|
SRCDIR:=${.PARSEDIR:tA}
|
|
|
|
PROG_CXX= config
|
|
MAN= config.5 config.8
|
|
SRCS= config.y main.cc lang.l mkmakefile.cc mkheaders.c \
|
|
mkoptions.cc y.tab.h kernconf.c
|
|
|
|
FILE2C?=file2c
|
|
|
|
kernconf.c: kernconf.tmpl
|
|
${FILE2C} 'char kernconfstr[] = {' ',0};' < \
|
|
${SRCDIR}/kernconf.tmpl > kernconf.c
|
|
|
|
CFLAGS+= -I. -I${SRCDIR}
|
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
CLEANFILES+= kernconf.c
|
|
|
|
mkmakefile.o: configvers.h
|
|
|
|
.include <bsd.prog.mk>
|