Commit 5ba268d2 authored by David Lawrence's avatar David Lawrence
Browse files

Solaris yacc puts "#line" directives as "# line", so remove the latter as the

former already is on other platforms.
Also reduce Solaris const warnings by fixing the structure definition of
yytoktype and the declaration of yyreds.
parent 450e4820
......@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
# $Id: Makefile.in,v 1.19 2000/08/01 19:12:10 tale Exp $
# $Id: Makefile.in,v 1.20 2000/08/03 14:03:43 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
......@@ -61,7 +61,8 @@ TARGETS = ${OBJS}
confparser.c: confparser.y
${YACC} -d ${srcdir}/confparser.y
rm -f confparser.c confparser_p.h
sed -e '/^\#line/d' -e 's/^\(char \*yy.*\[\]\)/const \1/' \
sed -e '/^\# ?line/d' -e 's/^\(char \* ?yy.*\[\]\)/const \1/' \
-e 's/{ \(char \*t_name; int t_val; } yytoktype;\)/{ const \1/' \
< y.tab.c > confparser.c
rm -f y.tab.c
chmod a-w confparser.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment