SRCDIR = @srcdir@
VPATH = @srcdir@
LEXOPT = -Cf #-w -b
-YACCOPT = #-v
EXEEXT = @EXEEXT@
PROGRAMS = wrc$(EXEEXT)
writeres.c
EXTRA_SRCS = parser.y parser.l
-EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
+EXTRA_OBJS = parser.tab.o @LEX_OUTPUT_ROOT@.o
all: $(PROGRAMS)
wrc$(EXEEXT): $(OBJS) $(LIBDIR)/wpp/libwpp.a
$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(LIBDIR) -lwpp -lwine_unicode -lwine_port $(LEXLIB) $(LDFLAGS)
-y.tab.c y.tab.h: parser.y
- $(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
+parser.tab.c parser.tab.h: parser.y
+ $(BISON) -d -t $(SRCDIR)/parser.y -o parser.tab.c
# hack to allow parallel make
-y.tab.h: y.tab.c
-y.tab.o: y.tab.h
+parser.tab.h: parser.tab.c
+parser.tab.o: parser.tab.h
@LEX_OUTPUT_ROOT@.c: parser.l
$(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
-@LEX_OUTPUT_ROOT@.o: y.tab.h
+@LEX_OUTPUT_ROOT@.o: parser.tab.h
install:: $(PROGRAMS)
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
#include "parser.h"
#include "newstruc.h"
-#include "y.tab.h"
+#include "parser.tab.h"
#define YY_USE_PROTOS
#define YY_NO_UNPUT
isprint(rtp->tag[2]) ? rtp->tag[2] : '.',
isprint(rtp->tag[3]) ? rtp->tag[3] : '.');
- /* FIXME: This relies in sizeof(DWORD) == sizeof(pointer_type) */
- if((DWORD)rtp & 1)
+ if((UINT_PTR)rtp & 1)
rtp = SKIP_TAG(rtp,1);
}
}
isprint(rtp->tag[2]) ? rtp->tag[2] : '.',
isprint(rtp->tag[3]) ? rtp->tag[3] : '.');
- /* FIXME: This relies in sizeof(DWORD) == sizeof(pointer_type) */
- if((DWORD)rtp & 1)
+ if((UINT_PTR)rtp & 1)
rtp = SKIP_TAG(rtp,1);
}
#include "parser.h"
#include "newstruc.h"
-#include "y.tab.h"
+#include "parser.tab.h"
#define YY_USE_PROTOS
#define YY_NO_UNPUT
ani_any_t *ani;
} YYSTYPE;
/* Line 191 of yacc.c. */
-#line 531 "y.tab.c"
+#line 531 "parser.tab.c"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
/* Line 214 of yacc.c. */
-#line 543 "y.tab.c"
+#line 543 "parser.tab.c"
#if ! defined (yyoverflow) || YYERROR_VERBOSE
}
/* Line 1000 of yacc.c. */
-#line 4171 "y.tab.c"
+#line 4171 "parser.tab.c"
\f
yyvsp -= yylen;
yyssp -= yylen;
ani_any_t *ani;
} YYSTYPE;
/* Line 1275 of yacc.c. */
-#line 251 "y.tab.h"
+#line 251 "parser.tab.h"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
utils.c \
wrc.c \
writeres.c \
- y.tab.c \
+ parser.tab.c \
lex.yy.c \
port$(SEP)mkstemps.c \
)
$(ECHO_CC)
${host_gcc} $(WRC_HOST_CFLAGS) -c $< -o $@
-$(WRC_INT_)y.tab.o: $(WRC_BASE_)y.tab.c | $(WRC_INT)
+$(WRC_INT_)parser.tab.o: $(WRC_BASE_)parser.tab.c | $(WRC_INT)
$(ECHO_CC)
${host_gcc} $(WRC_HOST_CFLAGS) -c $< -o $@