mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-08-08 10:15:14 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f3c97f74f | ||
|
|
a99566be67 | ||
|
|
ca66b45a86 | ||
|
|
55601256c2 | ||
|
|
43cc2463d2 | ||
|
|
25a46077de | ||
|
|
62d3162c4c | ||
|
|
3f2f7848cc | ||
|
|
c4267a3d35 | ||
|
|
ae774286e8 | ||
|
|
43f8a3245a | ||
|
|
a22d7bd8d6 | ||
|
|
f36280e16e | ||
|
|
38612b10a3 | ||
|
|
ffc03584ad | ||
|
|
dd3c3f3006 | ||
|
|
f1d93aa21c | ||
|
|
a4f0747a2a | ||
|
|
ca69f83c53 | ||
|
|
b06c1dfb75 | ||
|
|
7525f95ed5 | ||
|
|
1daed0de8a | ||
|
|
32e175835b | ||
|
|
ea04a14c5c | ||
|
|
d6b12c2d8b | ||
|
|
f4ffa313a2 | ||
|
|
1214dfb03b | ||
|
|
55b4181996 | ||
|
|
12a04365ce | ||
|
|
6929a4a0e8 | ||
|
|
07cccc8bc6 | ||
|
|
36791b5576 | ||
|
|
dba44a1367 | ||
|
|
d4593e87be | ||
|
|
6b1ec1fb33 | ||
|
|
bfb74f79b8 | ||
|
|
c520f816b1 | ||
|
|
cc6ed5f7f1 | ||
|
|
ac28f67c0b | ||
|
|
f30e1ab65c | ||
|
|
52e9776027 | ||
|
|
21292982fe | ||
|
|
9f0938ad32 | ||
|
|
cb948818d0 | ||
|
|
c0760f18e0 | ||
|
|
c884affb0b | ||
|
|
f7e7f57941 | ||
|
|
d1210d1d6e | ||
|
|
d5c2eff246 | ||
|
|
b59b91bb6e | ||
|
|
63e75f2e38 | ||
|
|
69dc1147ba | ||
|
|
3d9d5d34ff | ||
|
|
701d80ffa0 | ||
|
|
88f06d2beb | ||
|
|
daa938e7f0 | ||
|
|
ed45e93ed8 | ||
|
|
74d757ab92 | ||
|
|
4be25f1591 | ||
|
|
b7008317cf |
@@ -1,3 +1,237 @@
|
||||
2002-01-09 Akim Demaille <[email protected]>
|
||||
|
||||
Version 1.30j.
|
||||
|
||||
2002-01-09 Akim Demaille <[email protected]>
|
||||
|
||||
* configure.in (WERROR_CFLAGS): Compute it.
|
||||
* src/Makefile.am (CFLAGS): Pass it.
|
||||
* tests/atlocal.in (CFLAGS): Idem.
|
||||
|
||||
2002-01-08 Akim Demaille <[email protected]>
|
||||
|
||||
* lib/Makefile.am (libbison_a_SOURCES): Add xstrndup.c.
|
||||
* src/getargs.c (AS_FILE_NAME): New.
|
||||
(getargs): Use it to convert DOSish file names.
|
||||
* src/files.c (base_name): Rename as full_base_name to avoid
|
||||
clashes with `base_name ()'.
|
||||
(get_extension_index): Remove.
|
||||
(filename_split): New.
|
||||
(compute_base_names): N-th rewrite, using filename_split.
|
||||
|
||||
2002-01-08 Akim Demaille <[email protected]>
|
||||
|
||||
* lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c,
|
||||
* lib/xstrndup.c, lib/strchr.c:
|
||||
New, stolen from the Fileutils 4.1.
|
||||
* lib/Makefile.am (libbison_a_SOURCES): Adjust.
|
||||
* configure.in: Check for the presence of memrchr, strchr,
|
||||
strnlen, and of their prototypes.
|
||||
Don't check for strndup: we no longer use it.
|
||||
* src/system.h: Adjust the prototypes.
|
||||
|
||||
2002-01-07 Akim Demaille <[email protected]>
|
||||
|
||||
* src/conflicts.c (count_rr_conflicts): The previous RR conflicts
|
||||
patch was improperly applied: fix it.
|
||||
|
||||
2002-01-07 Akim Demaille <[email protected]>
|
||||
|
||||
* tests/torture.at (GNU Cim Grammar): Reintroduce their weird
|
||||
'switch' without a following semicolon.
|
||||
* tests/regression.at (braces parsing): New.
|
||||
|
||||
2002-01-06 Akim Demaille <[email protected]>
|
||||
|
||||
Bison is dead wrong in its RR conflict reports.
|
||||
|
||||
* tests/torture.at (GNU Cim Grammar): New.
|
||||
* src/conflicts.c (count_rr_conflicts): Fix.
|
||||
|
||||
2002-01-06 Akim Demaille <[email protected]>
|
||||
|
||||
Creating package.m4 from configure.ac causes too many problems.
|
||||
|
||||
* tests/Makefile.am (package.m4): Create it by hand,
|
||||
AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
|
||||
|
||||
2002-01-04 Paul Eggert <[email protected]>
|
||||
|
||||
* doc/bison.texinfo (Debugging):
|
||||
Remove YYSTDERR; it's no longer defined or used.
|
||||
Also, s/cstdio.h/cstdio/.
|
||||
|
||||
2002-01-03 Akim Demaille <[email protected]>
|
||||
|
||||
* src/files.h: Add it prototype.
|
||||
|
||||
2002-01-03 Akim Demaille <[email protected]>
|
||||
|
||||
* src/files.c, src/files.h (strsuffix): Not static.
|
||||
* src/conflicts.c (conflicts_print): Don't consider it is an error
|
||||
to have a %expectation violation on a file ending by `plural.y'.
|
||||
Eek.
|
||||
|
||||
2002-01-03 Akim Demaille <[email protected]>
|
||||
|
||||
* tests/bison.in: Adjust to CVS Autoconf.
|
||||
* tests/calc.at (exp): We no longer need to special case GCC as
|
||||
the warning flags are passed by configure.
|
||||
* tests/atlocal.in: Adjust.
|
||||
* configure.in: Bump to 1.30j.
|
||||
|
||||
2002-01-03 Akim Demaille <[email protected]>
|
||||
|
||||
Version 1.30i.
|
||||
|
||||
2002-01-03 Akim Demaille <[email protected]>
|
||||
|
||||
* src/bison.simple (YYSTDERR): Remove, replace `stderr'.
|
||||
The ISO C++ standard is extremely clear about it: stderr is
|
||||
considered a macro, not a regular symbol (see table 94 `Header
|
||||
<cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
|
||||
Therefore std:: does not apply to it. It still does with fprintf.
|
||||
Also, s/cstdio.h/cstdio/.
|
||||
|
||||
2002-01-03 Akim Demaille <[email protected]>
|
||||
|
||||
* lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
|
||||
for non system headers.
|
||||
|
||||
2001-12-27 Paul Eggert <[email protected]>
|
||||
|
||||
* src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
|
||||
cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
|
||||
Sparc, as they were causing more porting problems than the
|
||||
(minor) performance improvement was worth.
|
||||
|
||||
2001-12-22 Akim Demaille <[email protected]>
|
||||
|
||||
* src/output.c (output_short_table, output_short_or_char_table):
|
||||
Change the prototype to use `int' for array ranges: some
|
||||
invocations do pass an int, not a short.
|
||||
Reported by Wayne Green.
|
||||
|
||||
2001-12-22 Akim Demaille <[email protected]>
|
||||
|
||||
Some actions of web2c.y are improperly triggered.
|
||||
Reported by Mike Castle.
|
||||
|
||||
* src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
|
||||
* tests/regression.at (Web2c): Rename as...
|
||||
(Web2c Report): this.
|
||||
(Web2c Actions): New.
|
||||
|
||||
2001-12-22 Akim Demaille <[email protected]>
|
||||
|
||||
Reductions in web2c.y are improperly reported.
|
||||
Reported by Mike Castle.
|
||||
|
||||
* src/conflicts.c (print_reductions): Fix.
|
||||
* tests/regression.at (Web2c): New.
|
||||
|
||||
2001-12-18 Akim Demaille <[email protected]>
|
||||
|
||||
Version 1.30h.
|
||||
|
||||
2001-12-18 Akim Demaille <[email protected]>
|
||||
|
||||
Some host fail on `assert (!"foo")', which expands to
|
||||
((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
|
||||
Reported by Nelson Beebee.
|
||||
|
||||
* src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
|
||||
`#define it_succeeded 0' and `assert (it_succeeded)'.
|
||||
|
||||
2001-12-17 Paul Eggert <[email protected]>
|
||||
|
||||
* src/bison.simple (YYSTD): New macro.
|
||||
(YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE, YYFPRINTF, YYSTDERR): Use
|
||||
it to simplify macros, and fix some C++ porting problems reported
|
||||
by Hans Aberg.
|
||||
|
||||
* src/output.c (output): Define YYDEBUG to 0 if it is not defined
|
||||
and if we are not debugging. POSIX requires this.
|
||||
* NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document this.
|
||||
|
||||
* src/output.c (output_gram, output_rule_data): Do not assume that
|
||||
the user defines YYDEBUG to a properly parenthesized expression.
|
||||
|
||||
2001-12-15 Akim Demaille <[email protected]>
|
||||
|
||||
* src/nullable.c (set_nullable): Useless rules must be skipped,
|
||||
otherwise, since we range over their symbols, we might look at a
|
||||
nonterminal which no longer ``exists'', i.e., it is not counted in
|
||||
`nvars', hence we overflow our arrays.
|
||||
|
||||
2001-12-15 Akim Demaille <[email protected]>
|
||||
|
||||
* src/reader.c (copy_action): When --yacc, don't append a `;'
|
||||
to the user action: let it fail if lacking.
|
||||
Suggested by Arnold Robbins and Tom Tromey.
|
||||
|
||||
2001-12-13 Akim Demaille <[email protected]>
|
||||
|
||||
Version 1.30g.
|
||||
|
||||
2001-12-13 Akim Demaille <[email protected]>
|
||||
|
||||
The computation of nullable is broken: it doesn't handle empty
|
||||
RHS's properly.
|
||||
|
||||
* tests/torture.at (GNU AWK Grammar): New.
|
||||
* tests/sets.at (Nullable): New.
|
||||
* src/nullable.c (set_nullable): Instead of blindly looping over
|
||||
`ritems', loop over the rules, and then over their rhs's.
|
||||
|
||||
Work around Autotest bugs.
|
||||
|
||||
* src/warshall.c (bitmatrix_print): Don't use `+--+' as table
|
||||
frame, because Autotest understand lines starting with a `+' as
|
||||
traces from the shell. Then, they are not processed properly.
|
||||
Admittedly an Autotest bug, but we don't have time to wait for
|
||||
Autotest to catch up.
|
||||
* tests/regression.at (Broken Closure): Adjust to the new table
|
||||
frames.
|
||||
Move to...
|
||||
* tests/sets.at: here.
|
||||
|
||||
2001-12-12 Paul Eggert <[email protected]>
|
||||
|
||||
* src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
|
||||
Do not infringe on the global user namespace when using C++.
|
||||
(YYFPRINTF, YYSTDERR): New macros, needed for the above.
|
||||
All uses of `fprintf' and `stderr' changed.
|
||||
|
||||
* src/output.c (output): Do not output "#include <stdio.h>"; that
|
||||
is bison.simple's job. stdio.h should be included only if
|
||||
necessary, to avoid infringing on the user name space when
|
||||
possible.
|
||||
|
||||
2001-12-12 Akim Demaille <[email protected]>
|
||||
|
||||
* src/complain.h, src/complain.c: Remove error_one_per_line, rely
|
||||
on that of lib/error.c.
|
||||
|
||||
2001-12-12 Akim Demaille <[email protected]>
|
||||
|
||||
Some hosts don't like `/' in includes.
|
||||
|
||||
* src/system.h: Include libgettext.h without qualifying the path.
|
||||
* src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
|
||||
$(top_srcdir).
|
||||
|
||||
2001-12-10 Akim Demaille <[email protected]>
|
||||
|
||||
Bison dumps core on bash.y.
|
||||
Reported by Pascal Bart.
|
||||
|
||||
* src/warshall.c (bitmatrix_print): New.
|
||||
(TC): Use it.
|
||||
When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
|
||||
j must be the outer loop.
|
||||
* tests/regression.at (Broken Closure): New.
|
||||
|
||||
2001-12-05 Akim Demaille <[email protected]>
|
||||
|
||||
Version 1.30f.
|
||||
|
||||
+36
-24
@@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.5a from Makefile.am.
|
||||
# Makefile.in generated by automake 1.5c from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
@@ -13,7 +13,6 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@@ -48,6 +47,7 @@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = @program_transform_name@
|
||||
@@ -97,6 +97,7 @@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
WARNING_CFLAGS = @WARNING_CFLAGS@
|
||||
WERROR_CFLAGS = @WERROR_CFLAGS@
|
||||
am__include = @am__include@
|
||||
am__quote = @am__quote@
|
||||
install_sh = @install_sh@
|
||||
@@ -237,13 +238,13 @@ tags-recursive:
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique $(LISP)
|
||||
mkid -fID $$unique
|
||||
|
||||
TAGS: tags-recursive $(HEADERS) $(SOURCES) config.hin $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
@@ -254,14 +255,14 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) config.hin $(TAGS_DEPENDENCIES) \
|
||||
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
||||
fi; \
|
||||
done; \
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
list='$(SOURCES) $(HEADERS) config.hin $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)config.hin$$unique$(LISP)$$tags" \
|
||||
|| etags $(ETAGS_ARGS) $$tags config.hin $$unique $(LISP)
|
||||
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|
||||
|| etags $(ETAGS_ARGS) $$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
@@ -270,14 +271,18 @@ GTAGS:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
top_distdir = .
|
||||
# Avoid unsightly `./'.
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
|
||||
am__remove_distdir = \
|
||||
{ test ! -d $(distdir) \
|
||||
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr $(distdir); }; }
|
||||
|
||||
GZIP_ENV = --best
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@if sed 15q $(srcdir)/NEWS | fgrep -e "$(VERSION)" >/dev/null; \
|
||||
@@ -285,11 +290,11 @@ distdir: $(DISTFILES)
|
||||
echo "NEWS not updated; not releasing" 1>&2; \
|
||||
exit 1; \
|
||||
fi
|
||||
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
|
||||
$(am__remove_distdir)
|
||||
mkdir $(distdir)
|
||||
$(mkinstalldirs) $(distdir)/intl $(distdir)/po $(distdir)/tests
|
||||
@for file in $(DISTFILES); do \
|
||||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
$(mkinstalldirs) "$(distdir)/$$dir"; \
|
||||
@@ -323,22 +328,22 @@ distdir: $(DISTFILES)
|
||||
|| chmod -R a+r $(distdir)
|
||||
dist-gzip: distdir
|
||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
$(am__remove_distdir)
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/=build
|
||||
@@ -348,6 +353,7 @@ distcheck: dist
|
||||
&& cd $(distdir)/=build \
|
||||
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
||||
--with-included-gettext \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
@@ -359,15 +365,20 @@ distcheck: dist
|
||||
find $$dc_install_base -type f -print ; \
|
||||
exit 1; } >&2 ) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distclean \
|
||||
&& rm -f $(distdir).tar.gz \
|
||||
&& (test `find . -type f -print | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left after distclean:" ; \
|
||||
find . -type f -print ; \
|
||||
exit 1; } >&2 )
|
||||
-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
|
||||
$(am__remove_distdir)
|
||||
@echo "$(distdir).tar.gz is ready for distribution" | \
|
||||
sed 'h;s/./=/g;p;x;p;x'
|
||||
distcleancheck: distclean
|
||||
if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-recursive
|
||||
all-am: Makefile config.h
|
||||
@@ -385,6 +396,7 @@ install-am: all-am
|
||||
installcheck: installcheck-recursive
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
@@ -439,9 +451,9 @@ uninstall-info: uninstall-info-recursive
|
||||
.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
|
||||
clean-generic clean-recursive dist dist-all dist-bzip2 \
|
||||
dist-gzip distcheck distclean distclean-generic distclean-hdr \
|
||||
distclean-recursive distclean-tags distdir dvi dvi-am \
|
||||
dvi-recursive info info-am info-recursive install install-am \
|
||||
install-data install-data-am install-data-recursive \
|
||||
distclean-recursive distclean-tags distcleancheck distdir dvi \
|
||||
dvi-am dvi-recursive info info-am info-recursive install \
|
||||
install-am install-data install-data-am install-data-recursive \
|
||||
install-exec install-exec-am install-exec-recursive \
|
||||
install-info install-info-am install-info-recursive install-man \
|
||||
install-recursive install-strip installcheck installcheck-am \
|
||||
|
||||
@@ -1,6 +1,42 @@
|
||||
Bison News
|
||||
----------
|
||||
|
||||
Changes in version 1.30j:
|
||||
|
||||
* GNU Gettext and %expect
|
||||
GNU Gettext asserts 10 s/r conflicts, but there are 7. Now that
|
||||
Bison dies on incorrect %expectations, we fear there will be
|
||||
too many bug reports for Gettext, so _for the time being_, %expect
|
||||
does not trigger an error when the input file is named `plural.y'.
|
||||
|
||||
Changes in version 1.30i:
|
||||
|
||||
* Use of alloca in parsers
|
||||
If YYSTACK_USE_ALLOCA is defined to 0, then the parsers will use
|
||||
malloc exclusively. Since 1.29, but was not NEWS'ed.
|
||||
|
||||
alloca is used only when compiled with GCC, to avoid portability
|
||||
problems as on AIX.
|
||||
|
||||
* Bug fixes
|
||||
|
||||
Changes in version 1.30h:
|
||||
|
||||
* When the generated parser lacks debugging code, YYDEBUG is now 0
|
||||
(as POSIX requires) instead of being undefined.
|
||||
|
||||
* User Actions
|
||||
Bison has always permitted actions such as { $$ = $1 }: it adds the
|
||||
ending semicolon. Now if in Yacc compatibility mode, the semicolon
|
||||
is no longer output: one has to write { $$ = $1; }.
|
||||
|
||||
Changes in version 1.30g:
|
||||
|
||||
* Bug fixes
|
||||
|
||||
* Better C++ compliance
|
||||
The output parsers try to respect C++ namespaces.
|
||||
|
||||
Changes in version 1.30f:
|
||||
|
||||
* Reduced Grammars
|
||||
|
||||
@@ -5,6 +5,7 @@ Airy Andre [email protected]
|
||||
Akim Demaille [email protected]
|
||||
Albert Chin-A-Young [email protected]
|
||||
Alexander Belopolsky [email protected]
|
||||
Arnold Robbins [email protected]
|
||||
Daniel Hagerty [email protected]
|
||||
David J. MacKenzie [email protected]
|
||||
Dick Streefland [email protected]
|
||||
@@ -17,7 +18,9 @@ Juan Manuel Guerrero [email protected]
|
||||
Keith Browne [email protected]
|
||||
Laurent Mascherpa [email protected]
|
||||
Marc Autret [email protected]
|
||||
Mike Castle [email protected]
|
||||
Neil Booth [email protected]
|
||||
Nelson H. F. Beebe [email protected]
|
||||
Noah Friedman [email protected]
|
||||
Pascal Bart [email protected]
|
||||
Paul Eggert [email protected]
|
||||
@@ -28,6 +31,8 @@ Richard Stallman [email protected]
|
||||
Robert Anisko [email protected]
|
||||
Shura [email protected]
|
||||
Tom Lane [email protected]
|
||||
Tom Tromey [email protected]
|
||||
Wayne Green [email protected]
|
||||
Wolfram Wagner [email protected]
|
||||
Wwp [email protected]
|
||||
|
||||
|
||||
Vendored
+26
-19
@@ -1,4 +1,4 @@
|
||||
# aclocal.m4 generated automatically by aclocal 1.5a -*- Autoconf -*-
|
||||
# aclocal.m4 generated automatically by aclocal 1.5c -*- Autoconf -*-
|
||||
|
||||
# Copyright 1996, 1997, 1998, 1999, 2000, 2001
|
||||
# Free Software Foundation, Inc.
|
||||
@@ -33,7 +33,7 @@
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
# serial 6
|
||||
# serial 7
|
||||
|
||||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||
# written in clear, in which case automake, when reading aclocal.m4,
|
||||
@@ -55,7 +55,7 @@ AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||
# test to see if srcdir already configured
|
||||
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
||||
test -f $srcdir/config.status; then
|
||||
AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first])
|
||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||
fi
|
||||
|
||||
# Define the identity of the package.
|
||||
@@ -177,7 +177,7 @@ AC_MSG_RESULT(yes)])
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
# serial 2
|
||||
# serial 3
|
||||
|
||||
# AM_MISSING_PROG(NAME, PROGRAM)
|
||||
# ------------------------------
|
||||
@@ -199,8 +199,7 @@ if eval "$MISSING --run true"; then
|
||||
am_missing_run="$MISSING --run "
|
||||
else
|
||||
am_missing_run=
|
||||
am_backtick='`'
|
||||
AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
|
||||
AC_MSG_WARN([`missing' script is too old or missing])
|
||||
fi
|
||||
])
|
||||
|
||||
@@ -495,11 +494,13 @@ AC_SUBST([AMDEPBACKSLASH])
|
||||
# ------------------------------
|
||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[for mf in $CONFIG_FILES; do
|
||||
case $mf in
|
||||
Makefile) dirpart=.;;
|
||||
*/Makefile) dirpart=`AS_DIRNAME("$mf")`;;
|
||||
*) continue;;
|
||||
esac
|
||||
# Strip MF so we end up with the name of the file.
|
||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||
if (head -1 $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
|
||||
dirpart=`AS_DIRNAME("$mf")`
|
||||
else
|
||||
dirpart=
|
||||
fi
|
||||
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
|
||||
# Extract the definition of DEP_FILES from the Makefile without
|
||||
# running `make'.
|
||||
@@ -546,11 +547,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||
])
|
||||
|
||||
# AM_MAKE_INCLUDE()
|
||||
# -----------------
|
||||
# Check to see how make treats includes.
|
||||
|
||||
# Copyright 2001 Free Software Foundation, Inc.
|
||||
# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -567,6 +564,11 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
# serial 2
|
||||
|
||||
# AM_MAKE_INCLUDE()
|
||||
# -----------------
|
||||
# Check to see how make treats includes.
|
||||
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||
[am_make=${MAKE-make}
|
||||
cat > confinc << 'END'
|
||||
@@ -575,7 +577,7 @@ doit:
|
||||
END
|
||||
# If we don't find an include directive, just comment out the code.
|
||||
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||
am__include='#'
|
||||
am__include="#"
|
||||
am__quote=
|
||||
_am_result=none
|
||||
# First try GNU make style include.
|
||||
@@ -595,7 +597,7 @@ if test "$am__include" = "#"; then
|
||||
echo '.include "confinc"' > confmf
|
||||
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
||||
am__include=.include
|
||||
am__quote='"'
|
||||
am__quote="\""
|
||||
_am_result=BSD
|
||||
fi
|
||||
fi
|
||||
@@ -642,7 +644,12 @@ if $2; then
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi])
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([conditional \"$1\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.])
|
||||
fi])])
|
||||
|
||||
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
|
||||
|
||||
|
||||
+30
-7
@@ -35,10 +35,18 @@
|
||||
*/
|
||||
#undef HAVE_DECL_MEMCHR
|
||||
|
||||
/* Define to 1 if you have the declaration of `memrchr', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_MEMRCHR
|
||||
|
||||
/* Define to 1 if you have the declaration of `stpcpy', and to 0 if you don't.
|
||||
*/
|
||||
#undef HAVE_DECL_STPCPY
|
||||
|
||||
/* Define to 1 if you have the declaration of `strchr', and to 0 if you don't.
|
||||
*/
|
||||
#undef HAVE_DECL_STRCHR
|
||||
|
||||
/* Define to 1 if you have the declaration of `strerror', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_STRERROR
|
||||
@@ -47,14 +55,14 @@
|
||||
don't. */
|
||||
#undef HAVE_DECL_STRERROR_R
|
||||
|
||||
/* Define to 1 if you have the declaration of `strndup', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_STRNDUP
|
||||
|
||||
/* Define to 1 if you have the declaration of `strnlen', and to 0 if you
|
||||
don't. */
|
||||
#undef HAVE_DECL_STRNLEN
|
||||
|
||||
/* Define to 1 if you have the declaration of `strspn', and to 0 if you don't.
|
||||
*/
|
||||
#undef HAVE_DECL_STRSPN
|
||||
|
||||
/* Define if the malloc check has been performed. */
|
||||
#undef HAVE_DONE_WORKING_MALLOC_CHECK
|
||||
|
||||
@@ -133,6 +141,9 @@
|
||||
/* Define to 1 if you have the `mempcpy' function. */
|
||||
#undef HAVE_MEMPCPY
|
||||
|
||||
/* Define to 1 if you have the `memrchr' function. */
|
||||
#undef HAVE_MEMRCHR
|
||||
|
||||
/* Define to 1 if you have the `mkstemp' function. */
|
||||
#undef HAVE_MKSTEMP
|
||||
|
||||
@@ -190,9 +201,6 @@
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the `strndup' function. */
|
||||
#undef HAVE_STRNDUP
|
||||
|
||||
/* Define to 1 if you have the `strnlen' function. */
|
||||
#undef HAVE_STRNLEN
|
||||
|
||||
@@ -241,6 +249,21 @@
|
||||
/* Name of package */
|
||||
#undef PACKAGE
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define if compiler has function prototypes */
|
||||
#undef PROTOTYPES
|
||||
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.5a from Makefile.am.
|
||||
# Makefile.in generated by automake 1.5c from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
@@ -13,7 +13,6 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@@ -48,6 +47,7 @@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = @program_transform_name@
|
||||
@@ -97,10 +97,10 @@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
WARNING_CFLAGS = @WARNING_CFLAGS@
|
||||
WERROR_CFLAGS = @WERROR_CFLAGS@
|
||||
am__include = @am__include@
|
||||
am__quote = @am__quote@
|
||||
install_sh = @install_sh@
|
||||
|
||||
EXTRA_DIST = move-if-change prev-version.txt
|
||||
subdir = config
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
|
||||
@@ -121,7 +121,6 @@ uninstall-info-am:
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
top_distdir = ..
|
||||
@@ -129,7 +128,7 @@ distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
$(mkinstalldirs) "$(distdir)/$$dir"; \
|
||||
@@ -160,6 +159,7 @@ install-am: all-am
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
Vendored
+57
-46
@@ -1,9 +1,9 @@
|
||||
#! /bin/sh
|
||||
# Attempt to guess a canonical system name.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
# Free Software Foundation, Inc.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
# 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
timestamp='2001-11-26'
|
||||
timestamp='2002-01-02'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@@ -135,23 +135,21 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
# object file format. This provides both forward
|
||||
# compatibility and a consistent mechanism for selecting the
|
||||
# object file format.
|
||||
# Determine the machine/vendor (is the vendor relevant).
|
||||
case "${UNAME_MACHINE}" in
|
||||
amiga) machine=m68k-unknown ;;
|
||||
arm32) machine=arm-unknown ;;
|
||||
atari*) machine=m68k-atari ;;
|
||||
sun3*) machine=m68k-sun ;;
|
||||
mac68k) machine=m68k-apple ;;
|
||||
macppc) machine=powerpc-apple ;;
|
||||
hp3[0-9][05]) machine=m68k-hp ;;
|
||||
ibmrt|romp-ibm) machine=romp-ibm ;;
|
||||
sparc*) machine=`uname -p`-unknown ;;
|
||||
*) machine=${UNAME_MACHINE}-unknown ;;
|
||||
#
|
||||
# Note: NetBSD doesn't particularly care about the vendor
|
||||
# portion of the name. We always set it to "unknown".
|
||||
UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \
|
||||
UNAME_MACHINE_ARCH=unknown
|
||||
case "${UNAME_MACHINE_ARCH}" in
|
||||
arm*) machine=arm-unknown ;;
|
||||
sh3el) machine=shl-unknown ;;
|
||||
sh3eb) machine=sh-unknown ;;
|
||||
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
||||
esac
|
||||
# The Operating System including object format, if it has switched
|
||||
# to ELF recently, or will in the future.
|
||||
case "${UNAME_MACHINE}" in
|
||||
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
|
||||
case "${UNAME_MACHINE_ARCH}" in
|
||||
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
||||
eval $set_cc_for_build
|
||||
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||
| grep __ELF__ >/dev/null
|
||||
@@ -291,6 +289,9 @@ EOF
|
||||
*:[Aa]miga[Oo][Ss]:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-amigaos
|
||||
exit 0 ;;
|
||||
*:[Mm]orph[Oo][Ss]:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-morphos
|
||||
exit 0 ;;
|
||||
*:OS/390:*:*)
|
||||
echo i370-ibm-openedition
|
||||
exit 0 ;;
|
||||
@@ -736,6 +737,9 @@ EOF
|
||||
i*:PW*:*)
|
||||
echo ${UNAME_MACHINE}-pc-pw32
|
||||
exit 0 ;;
|
||||
x86:Interix*:3*)
|
||||
echo i386-pc-interix3
|
||||
exit 0 ;;
|
||||
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
||||
# How do we know it's Interix rather than the generic POSIX subsystem?
|
||||
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
||||
@@ -767,10 +771,24 @@ EOF
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
exit 0 ;;
|
||||
mips:Linux:*:*)
|
||||
case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
|
||||
big) echo mips-unknown-linux-gnu && exit 0 ;;
|
||||
little) echo mipsel-unknown-linux-gnu && exit 0 ;;
|
||||
esac
|
||||
eval $set_cc_for_build
|
||||
sed 's/^ //' << EOF >$dummy.c
|
||||
#undef CPU
|
||||
#undef mips
|
||||
#undef mipsel
|
||||
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
||||
CPU=mipsel
|
||||
#else
|
||||
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
||||
CPU=mips
|
||||
#else
|
||||
CPU=
|
||||
#endif
|
||||
#endif
|
||||
EOF
|
||||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
||||
rm -f $dummy.c
|
||||
test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
|
||||
;;
|
||||
ppc:Linux:*:*)
|
||||
echo powerpc-unknown-linux-gnu
|
||||
@@ -843,32 +861,25 @@ EOF
|
||||
esac
|
||||
# Determine whether the default compiler is a.out or elf
|
||||
eval $set_cc_for_build
|
||||
cat >$dummy.c <<EOF
|
||||
#include <features.h>
|
||||
#ifdef __cplusplus
|
||||
#include <stdio.h> /* for printf() prototype */
|
||||
int main (int argc, char *argv[]) {
|
||||
#else
|
||||
int main (argc, argv) int argc; char *argv[]; {
|
||||
#endif
|
||||
#ifdef __ELF__
|
||||
# ifdef __GLIBC__
|
||||
# if __GLIBC__ >= 2
|
||||
printf ("%s-pc-linux-gnu\n", argv[1]);
|
||||
# else
|
||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
||||
# endif
|
||||
# else
|
||||
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
|
||||
# endif
|
||||
#else
|
||||
printf ("%s-pc-linux-gnuaout\n", argv[1]);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
sed 's/^ //' << EOF >$dummy.c
|
||||
#include <features.h>
|
||||
#ifdef __ELF__
|
||||
# ifdef __GLIBC__
|
||||
# if __GLIBC__ >= 2
|
||||
LIBC=gnu
|
||||
# else
|
||||
LIBC=gnulibc1
|
||||
# endif
|
||||
# else
|
||||
LIBC=gnulibc1
|
||||
# endif
|
||||
#else
|
||||
LIBC=gnuaout
|
||||
#endif
|
||||
EOF
|
||||
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
|
||||
rm -f $dummy.c $dummy
|
||||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
||||
rm -f $dummy.c
|
||||
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
|
||||
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
|
||||
;;
|
||||
i*86:DYNIX/ptx:4*:*)
|
||||
|
||||
Vendored
+24
-5
@@ -1,9 +1,9 @@
|
||||
#! /bin/sh
|
||||
# Configuration validation subroutine script.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
# Free Software Foundation, Inc.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
# 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
timestamp='2001-12-03'
|
||||
timestamp='2002-01-02'
|
||||
|
||||
# This file is (in principle) common to ALL GNU software.
|
||||
# The presence of a machine in this file suggests that SOME GNU software
|
||||
@@ -227,6 +227,7 @@ case $basic_machine in
|
||||
1750a | 580 \
|
||||
| a29k \
|
||||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
||||
| c4x | clipper \
|
||||
| d10v | d30v | dsp16xx \
|
||||
@@ -278,7 +279,8 @@ case $basic_machine in
|
||||
580-* \
|
||||
| a29k-* \
|
||||
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
||||
| alphapca5[67]-* | arc-* \
|
||||
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
||||
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
||||
| arm-* | armbe-* | armle-* | armv*-* \
|
||||
| avr-* \
|
||||
| bs2000-* \
|
||||
@@ -419,6 +421,14 @@ case $basic_machine in
|
||||
decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
|
||||
basic_machine=mips-dec
|
||||
;;
|
||||
decsystem10* | dec10*)
|
||||
basic_machine=pdp10-dec
|
||||
os=-tops10
|
||||
;;
|
||||
decsystem20* | dec20*)
|
||||
basic_machine=pdp10-dec
|
||||
os=-tops20
|
||||
;;
|
||||
delta | 3300 | motorola-3300 | motorola-delta \
|
||||
| 3300-motorola | delta-motorola)
|
||||
basic_machine=m68k-motorola
|
||||
@@ -621,6 +631,10 @@ case $basic_machine in
|
||||
basic_machine=m68k-rom68k
|
||||
os=-coff
|
||||
;;
|
||||
morphos)
|
||||
basic_machine=powerpc-unknown
|
||||
os=-morphos
|
||||
;;
|
||||
msdos)
|
||||
basic_machine=i386-pc
|
||||
os=-msdos
|
||||
@@ -882,6 +896,10 @@ case $basic_machine in
|
||||
tx39el)
|
||||
basic_machine=mipstx39el-unknown
|
||||
;;
|
||||
toad1)
|
||||
basic_machine=pdp10-xkl
|
||||
os=-tops20
|
||||
;;
|
||||
tower | tower-32)
|
||||
basic_machine=m68k-ncr
|
||||
;;
|
||||
@@ -1075,7 +1093,7 @@ case $os in
|
||||
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
|
||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
||||
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus*)
|
||||
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*)
|
||||
# Remember, each alternative MUST END IN *, to match a version number.
|
||||
;;
|
||||
-qnx*)
|
||||
@@ -1210,6 +1228,7 @@ case $basic_machine in
|
||||
arm*-semi)
|
||||
os=-aout
|
||||
;;
|
||||
# This must come before the *-dec entry.
|
||||
pdp10-*)
|
||||
os=-tops20
|
||||
;;
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.30d
|
||||
1.30i
|
||||
|
||||
+51
-34
@@ -3,7 +3,7 @@
|
||||
% Load plain if necessary, i.e., if running under initex.
|
||||
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
|
||||
%
|
||||
\def\texinfoversion{2001-07-25.07}
|
||||
\def\texinfoversion{2002-01-04.07}
|
||||
%
|
||||
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
|
||||
% 2000, 01 Free Software Foundation, Inc.
|
||||
@@ -30,14 +30,17 @@
|
||||
% Please try the latest version of texinfo.tex before submitting bug
|
||||
% reports; you can get the latest version from:
|
||||
% ftp://ftp.gnu.org/gnu/texinfo.tex
|
||||
% (and all GNU mirrors, see http://www.gnu.org/order/ftp.html)
|
||||
% ftp://texinfo.org/tex/texinfo.tex
|
||||
% ftp://us.ctan.org/macros/texinfo/texinfo.tex
|
||||
% (and all CTAN mirrors, finger [email protected] for a list).
|
||||
% /home/gd/gnu/doc/texinfo.tex on the GNU machines.
|
||||
% (and all GNU mirrors, see http://www.gnu.org/order/ftp.html)
|
||||
% ftp://texinfo.org/texinfo/texinfo.tex
|
||||
% ftp://tug.org/tex/texinfo.tex
|
||||
% (and all CTAN mirrors, see http://www.ctan.org),
|
||||
% and /home/gd/gnu/doc/texinfo.tex on the GNU machines.
|
||||
%
|
||||
% The texinfo.tex in any given Texinfo distribution could well be out
|
||||
% of date, so if that's what you're using, please check.
|
||||
% Texinfo has a small home page at http://texinfo.org/.
|
||||
%
|
||||
% Texinfo has a small home page at http://texinfo.org/ and also
|
||||
% http://www.gnu.org/software/texinfo.
|
||||
%
|
||||
% Send bug reports to [email protected]. Please include including a
|
||||
% complete document in each bug report with which we can reproduce the
|
||||
@@ -927,10 +930,12 @@ where each line of input produces a line of output.}
|
||||
\def\dopdfimage#1#2#3{%
|
||||
\def\imagewidth{#2}%
|
||||
\def\imageheight{#3}%
|
||||
% without \immediate, pdftex seg faults when the same image is
|
||||
% included twice. (Version 3.14159-pre-1.0-unofficial-20010704.)
|
||||
\ifnum\pdftexversion < 14
|
||||
\pdfimage
|
||||
\immediate\pdfimage
|
||||
\else
|
||||
\pdfximage
|
||||
\immediate\pdfximage
|
||||
\fi
|
||||
\ifx\empty\imagewidth\else width \imagewidth \fi
|
||||
\ifx\empty\imageheight\else height \imageheight \fi
|
||||
@@ -943,7 +948,7 @@ where each line of input produces a line of output.}
|
||||
\pdfrefximage \pdflastximage
|
||||
\fi}
|
||||
\def\pdfmkdest#1{{\normalturnoffactive \pdfdest name{#1} xyz}}
|
||||
\def\pdfmkpgn#1{#1@}
|
||||
\def\pdfmkpgn#1{#1}
|
||||
\let\linkcolor = \Blue % was Cyan, but that seems light?
|
||||
\def\endlink{\Black\pdfendlink}
|
||||
% Adding outlines to PDF; macros for calculating structure of outlines
|
||||
@@ -5799,8 +5804,15 @@ width0pt\relax} \fi
|
||||
%
|
||||
\smallfonts \rm
|
||||
%
|
||||
% Hang the footnote text off the number.
|
||||
\hang
|
||||
% Because we use hanging indentation in footnotes, a @noindent appears
|
||||
% to exdent this text, so make it be a no-op. makeinfo does not use
|
||||
% hanging indentation so @noindent can still be needed within footnote
|
||||
% text after an @example or the like (not that this is good style).
|
||||
\let\noindent = \relax
|
||||
%
|
||||
% Hang the footnote text off the number. Use \everypar in case the
|
||||
% footnote extends for more than one paragraph.
|
||||
\everypar = {\hang}%
|
||||
\textindent{\thisfootno}%
|
||||
%
|
||||
% Don't crash into the line above the footnote text. Since this
|
||||
@@ -5881,7 +5893,7 @@ width0pt\relax} \fi
|
||||
\global\warnednoepsftrue
|
||||
\fi
|
||||
\else
|
||||
\imagexxx #1,,,\finish
|
||||
\imagexxx #1,,,,,\finish
|
||||
\fi
|
||||
}
|
||||
%
|
||||
@@ -5891,33 +5903,34 @@ width0pt\relax} \fi
|
||||
% #4 is (ignored optional) html alt text.
|
||||
% #5 is (ignored optional) extension.
|
||||
% #6 is just the usual extra ignored arg for parsing this stuff.
|
||||
\def\imagexxx#1,#2,#3,#4,#5,#6\finish{%
|
||||
\newif\ifimagevmode
|
||||
\def\imagexxx#1,#2,#3,#4,#5,#6\finish{\begingroup \loggingall
|
||||
\catcode`\^^M = 5 % in case we're inside an example
|
||||
\normalturnoffactive % allow _ et al. in names
|
||||
% If the image is by itself, center it.
|
||||
\ifvmode
|
||||
\imagevmodetrue
|
||||
\nobreak\bigskip
|
||||
% Usually we'll have text after the image which will insert
|
||||
% \parskip glue, so insert it here too to equalize the space
|
||||
% above and below.
|
||||
\nobreak\vskip\parskip
|
||||
\nobreak
|
||||
\line\bgroup\hss
|
||||
\fi
|
||||
%
|
||||
% Output the image.
|
||||
\ifpdf
|
||||
\centerline{\dopdfimage{#1}{#2}{#3}}%
|
||||
\dopdfimage{#1}{#2}{#3}%
|
||||
\else
|
||||
% \epsfbox itself resets \epsf?size at each figure.
|
||||
\setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi
|
||||
\setbox0 = \hbox{\ignorespaces #3}\ifdim\wd0 > 0pt \epsfysize=#3\relax \fi
|
||||
\begingroup
|
||||
\catcode`\^^M = 5 % in case we're inside an example
|
||||
\normalturnoffactive % allow _ et al. in names
|
||||
% If the image is by itself, center it.
|
||||
\ifvmode
|
||||
\nobreak\bigskip
|
||||
% Usually we'll have text after the image which will insert
|
||||
% \parskip glue, so insert it here too to equalize the space
|
||||
% above and below.
|
||||
\nobreak\vskip\parskip
|
||||
\nobreak
|
||||
\centerline{\epsfbox{#1.eps}}%
|
||||
\bigbreak
|
||||
\else
|
||||
% In the middle of a paragraph, no extra space.
|
||||
\epsfbox{#1.eps}%
|
||||
\fi
|
||||
\endgroup
|
||||
\epsfbox{#1.eps}%
|
||||
\fi
|
||||
}
|
||||
%
|
||||
\ifimagevmode \hss \egroup \bigbreak \fi % space after the image
|
||||
\endgroup}
|
||||
|
||||
|
||||
\message{localization,}
|
||||
@@ -6087,6 +6100,10 @@ should work if nowhere else does.}
|
||||
%
|
||||
\afourpaper
|
||||
\internalpagesizes{237mm}{150mm}{3.6mm}{3.6mm}{3mm}{7mm}%
|
||||
%
|
||||
% Must explicitly reset to 0 because we call \afourpaper, apparently,
|
||||
% although this does not entirely make sense.
|
||||
\globaldefs = 0
|
||||
}}
|
||||
|
||||
% Use @afourwide to print on European A4 paper in wide format.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.52g for GNU Bison 1.30f.
|
||||
# Generated by GNU Autoconf 2.52g for GNU Bison 1.30j.
|
||||
#
|
||||
# Report bugs to <[email protected]>.
|
||||
#
|
||||
@@ -253,6 +253,13 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
||||
# only ac_max_sed_lines should be used.
|
||||
: ${ac_max_here_lines=38}
|
||||
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='GNU Bison'
|
||||
PACKAGE_TARNAME='bison'
|
||||
PACKAGE_VERSION='1.30j'
|
||||
PACKAGE_STRING='GNU Bison 1.30j'
|
||||
PACKAGE_BUGREPORT='[email protected]'
|
||||
|
||||
# Factoring default headers for most tests.
|
||||
ac_includes_default="\
|
||||
#include <stdio.h>
|
||||
@@ -329,13 +336,6 @@ oldincludedir='/usr/include'
|
||||
infodir='${prefix}/info'
|
||||
mandir='${prefix}/man'
|
||||
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='GNU Bison'
|
||||
PACKAGE_TARNAME='bison'
|
||||
PACKAGE_VERSION='1.30f'
|
||||
PACKAGE_STRING='GNU Bison 1.30f'
|
||||
PACKAGE_BUGREPORT='[email protected]'
|
||||
|
||||
ac_prev=
|
||||
for ac_option
|
||||
do
|
||||
@@ -760,7 +760,7 @@ if test "$ac_init_help" = "long"; then
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures GNU Bison 1.30f to adapt to many kinds of systems.
|
||||
\`configure' configures GNU Bison 1.30j to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@@ -826,7 +826,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of GNU Bison 1.30f:";;
|
||||
short | recursive ) echo "Configuration of GNU Bison 1.30j:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@@ -894,10 +894,10 @@ case $srcdir in
|
||||
esac
|
||||
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
||||
# absolute.
|
||||
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
||||
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
|
||||
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
||||
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
||||
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
||||
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
|
||||
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
||||
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
||||
|
||||
cd $ac_dir
|
||||
# Check for guested configure; otherwise get Cygnus style configure.
|
||||
@@ -921,7 +921,7 @@ fi
|
||||
test -n "$ac_init_help" && exit 0
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
GNU Bison configure 1.30f
|
||||
GNU Bison configure 1.30j
|
||||
generated by GNU Autoconf 2.52g
|
||||
|
||||
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
||||
@@ -936,7 +936,7 @@ cat >&5 <<_ACEOF
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by GNU Bison $as_me 1.30f, which was
|
||||
It was created by GNU Bison $as_me 1.30j, which was
|
||||
generated by GNU Autoconf 2.52g. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
@@ -996,15 +996,17 @@ for ac_arg
|
||||
do
|
||||
case $ac_arg in
|
||||
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
||||
| --no-cr | --no-c) ;;
|
||||
| --no-cr | --no-c) continue ;;
|
||||
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
||||
continue ;;
|
||||
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
||||
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
|
||||
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
||||
ac_sep=" " ;;
|
||||
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
|
||||
ac_sep=" " ;;
|
||||
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
||||
esac
|
||||
case " $ac_configure_args " in
|
||||
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
||||
*) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
||||
ac_sep=" " ;;
|
||||
esac
|
||||
# Get rid of the leading space.
|
||||
done
|
||||
@@ -1054,7 +1056,8 @@ _ASBOX
|
||||
echo "$as_me: caught signal $ac_signal"
|
||||
echo "$as_me: exit $exit_status"
|
||||
} >&5
|
||||
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
|
||||
rm -f core core.* *.core &&
|
||||
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
||||
exit $exit_status
|
||||
' 0
|
||||
for ac_signal in 1 2 13 15; do
|
||||
@@ -1067,6 +1070,33 @@ rm -rf conftest* confdefs.h
|
||||
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
||||
echo >confdefs.h
|
||||
|
||||
# Predefined preprocessor variables.
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PACKAGE_NAME "$PACKAGE_NAME"
|
||||
_ACEOF
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
||||
_ACEOF
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PACKAGE_VERSION "$PACKAGE_VERSION"
|
||||
_ACEOF
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PACKAGE_STRING "$PACKAGE_STRING"
|
||||
_ACEOF
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
||||
_ACEOF
|
||||
|
||||
|
||||
# Let the site file select an alternate cache file if it wants to.
|
||||
# Prefer explicitly selected file to automatically selected ones.
|
||||
if test -z "$CONFIG_SITE"; then
|
||||
@@ -1132,16 +1162,16 @@ echo "$as_me: current value: $ac_new_val" >&2;}
|
||||
ac_cache_corrupted=:
|
||||
fi;;
|
||||
esac
|
||||
# Pass precious variables to config.status. It doesn't matter if
|
||||
# we pass some twice (in addition to the command line arguments).
|
||||
# Pass precious variables to config.status.
|
||||
if test "$ac_new_set" = set; then
|
||||
case $ac_new_val in
|
||||
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
||||
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
|
||||
ac_configure_args="$ac_configure_args '$ac_arg'"
|
||||
;;
|
||||
*) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
|
||||
;;
|
||||
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
||||
*) ac_arg=$ac_var=$ac_new_val ;;
|
||||
esac
|
||||
case " $ac_configure_args " in
|
||||
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
||||
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
@@ -1355,9 +1385,8 @@ if eval "$MISSING --run true"; then
|
||||
am_missing_run="$MISSING --run "
|
||||
else
|
||||
am_missing_run=
|
||||
am_backtick='`'
|
||||
{ echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
|
||||
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
||||
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
||||
fi
|
||||
|
||||
for ac_prog in gawk mawk nawk awk
|
||||
@@ -1449,6 +1478,7 @@ else
|
||||
fi
|
||||
|
||||
|
||||
|
||||
rm -f .deps 2>/dev/null
|
||||
mkdir .deps 2>/dev/null
|
||||
if test -d .deps; then
|
||||
@@ -1470,7 +1500,7 @@ fi
|
||||
|
||||
# Define the identity of the package.
|
||||
PACKAGE=bison
|
||||
VERSION=1.30f
|
||||
VERSION=1.30j
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define PACKAGE "$PACKAGE"
|
||||
@@ -1517,9 +1547,6 @@ ac_config_headers="$ac_config_headers config.h:config.hin"
|
||||
|
||||
|
||||
# Initialize the test suite.
|
||||
ac_config_commands="$ac_config_commands tests/package.m4"
|
||||
|
||||
|
||||
ac_config_commands="$ac_config_commands tests/atconfig"
|
||||
|
||||
|
||||
@@ -2295,7 +2322,7 @@ END
|
||||
# If we don't find an include directive, just comment out the code.
|
||||
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
||||
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
|
||||
am__include='#'
|
||||
am__include="#"
|
||||
am__quote=
|
||||
_am_result=none
|
||||
# First try GNU make style include.
|
||||
@@ -2315,7 +2342,7 @@ if test "$am__include" = "#"; then
|
||||
echo '.include "confinc"' > confmf
|
||||
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
||||
am__include=.include
|
||||
am__quote='"'
|
||||
am__quote="\""
|
||||
_am_result=BSD
|
||||
fi
|
||||
fi
|
||||
@@ -3182,6 +3209,55 @@ else
|
||||
enableval=no
|
||||
fi;
|
||||
if test "${enableval}" = yes; then
|
||||
echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
|
||||
echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
|
||||
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Werror"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#ifdef F77_DUMMY_MAIN
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
int F77_DUMMY_MAIN() { return 1; }
|
||||
#endif
|
||||
int
|
||||
main ()
|
||||
{
|
||||
int x;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
WARNING_CFLAGS="$WARNING_CFLAGS -Werror"
|
||||
echo "$as_me:$LINENO: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
WERROR_CFLAGS=$WARNING_CFLAGS
|
||||
|
||||
WARNING_CFLAGS=
|
||||
echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
|
||||
echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
|
||||
|
||||
@@ -3733,52 +3809,6 @@ echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
|
||||
echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
|
||||
|
||||
ac_save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Werror"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#ifdef F77_DUMMY_MAIN
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
int F77_DUMMY_MAIN() { return 1; }
|
||||
#endif
|
||||
int
|
||||
main ()
|
||||
{
|
||||
int x;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
WARNING_CFLAGS="$WARNING_CFLAGS -Werror"
|
||||
echo "$as_me:$LINENO: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
CFLAGS="$ac_save_CFLAGS"
|
||||
fi
|
||||
|
||||
@@ -5128,9 +5158,9 @@ _ACEOF
|
||||
|
||||
|
||||
fi
|
||||
echo "$as_me:$LINENO: checking whether strndup is declared" >&5
|
||||
echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
|
||||
if test "${ac_cv_have_decl_strndup+set}" = set; then
|
||||
echo "$as_me:$LINENO: checking whether strchr is declared" >&5
|
||||
echo $ECHO_N "checking whether strchr is declared... $ECHO_C" >&6
|
||||
if test "${ac_cv_have_decl_strchr+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
@@ -5146,8 +5176,8 @@ $ac_includes_default
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#ifndef strndup
|
||||
char *p = (char *) strndup;
|
||||
#ifndef strchr
|
||||
char *p = (char *) strchr;
|
||||
#endif
|
||||
|
||||
;
|
||||
@@ -5166,26 +5196,88 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_cv_have_decl_strndup=yes
|
||||
ac_cv_have_decl_strchr=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
ac_cv_have_decl_strndup=no
|
||||
ac_cv_have_decl_strchr=no
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
|
||||
echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
|
||||
if test $ac_cv_have_decl_strndup = yes; then
|
||||
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strchr" >&5
|
||||
echo "${ECHO_T}$ac_cv_have_decl_strchr" >&6
|
||||
if test $ac_cv_have_decl_strchr = yes; then
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_DECL_STRNDUP 1
|
||||
#define HAVE_DECL_STRCHR 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_DECL_STRNDUP 0
|
||||
#define HAVE_DECL_STRCHR 0
|
||||
_ACEOF
|
||||
|
||||
|
||||
fi
|
||||
echo "$as_me:$LINENO: checking whether strspn is declared" >&5
|
||||
echo $ECHO_N "checking whether strspn is declared... $ECHO_C" >&6
|
||||
if test "${ac_cv_have_decl_strspn+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
$ac_includes_default
|
||||
#ifdef F77_DUMMY_MAIN
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
int F77_DUMMY_MAIN() { return 1; }
|
||||
#endif
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#ifndef strspn
|
||||
char *p = (char *) strspn;
|
||||
#endif
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_cv_have_decl_strspn=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
ac_cv_have_decl_strspn=no
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strspn" >&5
|
||||
echo "${ECHO_T}$ac_cv_have_decl_strspn" >&6
|
||||
if test $ac_cv_have_decl_strspn = yes; then
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_DECL_STRSPN 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_DECL_STRSPN 0
|
||||
_ACEOF
|
||||
|
||||
|
||||
@@ -5314,6 +5406,68 @@ _ACEOF
|
||||
|
||||
|
||||
fi
|
||||
echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
|
||||
echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
|
||||
if test "${ac_cv_have_decl_memrchr+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
$ac_includes_default
|
||||
#ifdef F77_DUMMY_MAIN
|
||||
# ifdef __cplusplus
|
||||
extern "C"
|
||||
# endif
|
||||
int F77_DUMMY_MAIN() { return 1; }
|
||||
#endif
|
||||
int
|
||||
main ()
|
||||
{
|
||||
#ifndef memrchr
|
||||
char *p = (char *) memrchr;
|
||||
#endif
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_cv_have_decl_memrchr=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
ac_cv_have_decl_memrchr=no
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
|
||||
echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
|
||||
if test $ac_cv_have_decl_memrchr = yes; then
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_DECL_MEMRCHR 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
else
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_DECL_MEMRCHR 0
|
||||
_ACEOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@@ -5321,7 +5475,8 @@ fi
|
||||
|
||||
|
||||
|
||||
for ac_func in stpcpy strndup strnlen strspn memchr
|
||||
|
||||
for ac_func in stpcpy strchr strnlen strspn memchr memrchr
|
||||
do
|
||||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
||||
@@ -7368,7 +7523,7 @@ $ac_includes_default
|
||||
VM page cache was not coherent with the file system buffer cache
|
||||
like early versions of FreeBSD and possibly contemporary NetBSD.)
|
||||
For shared mappings, we should conversely verify that changes get
|
||||
propogated back to all the places they're supposed to be.
|
||||
propagated back to all the places they're supposed to be.
|
||||
|
||||
Grep wants private fixed already mapped.
|
||||
The main things grep needs to know about mmap are:
|
||||
@@ -8900,6 +9055,13 @@ fi
|
||||
|
||||
DEFS=-DHAVE_CONFIG_H
|
||||
|
||||
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
||||
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." >&5
|
||||
echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
|
||||
: ${CONFIG_STATUS=./config.status}
|
||||
ac_clean_files_save=$ac_clean_files
|
||||
@@ -9149,7 +9311,7 @@ _ASBOX
|
||||
} >&5
|
||||
cat >&5 <<_CSEOF
|
||||
|
||||
This file was extended by GNU Bison $as_me 1.30f, which was
|
||||
This file was extended by GNU Bison $as_me 1.30j, which was
|
||||
generated by GNU Autoconf 2.52g. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@@ -9211,7 +9373,7 @@ _ACEOF
|
||||
|
||||
cat >>$CONFIG_STATUS <<_ACEOF
|
||||
ac_cs_version="\\
|
||||
GNU Bison config.status 1.30f
|
||||
GNU Bison config.status 1.30j
|
||||
configured by $0, generated by GNU Autoconf 2.52g,
|
||||
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
||||
|
||||
@@ -9294,12 +9456,6 @@ cat >>$CONFIG_STATUS <<_ACEOF
|
||||
# INIT-COMMANDS section.
|
||||
#
|
||||
|
||||
PACKAGE_NAME='$PACKAGE_NAME'
|
||||
PACKAGE_TARNAME='$PACKAGE_TARNAME'
|
||||
PACKAGE_VERSION='$PACKAGE_VERSION'
|
||||
PACKAGE_STRING='$PACKAGE_STRING'
|
||||
PACKAGE_BUGREPORT='$PACKAGE_BUGREPORT'
|
||||
|
||||
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
||||
|
||||
|
||||
@@ -9323,7 +9479,6 @@ do
|
||||
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
||||
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
||||
"m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
|
||||
"tests/package.m4" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/package.m4" ;;
|
||||
"tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
|
||||
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
||||
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
|
||||
@@ -9382,6 +9537,11 @@ if test -n "\$CONFIG_FILES"; then
|
||||
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
||||
s,@SHELL@,$SHELL,;t t
|
||||
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
||||
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
||||
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
||||
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
||||
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
||||
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
||||
s,@exec_prefix@,$exec_prefix,;t t
|
||||
s,@prefix@,$prefix,;t t
|
||||
s,@program_transform_name@,$program_transform_name,;t t
|
||||
@@ -9397,11 +9557,6 @@ s,@includedir@,$includedir,;t t
|
||||
s,@oldincludedir@,$oldincludedir,;t t
|
||||
s,@infodir@,$infodir,;t t
|
||||
s,@mandir@,$mandir,;t t
|
||||
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
||||
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
||||
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
||||
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
||||
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
||||
s,@build_alias@,$build_alias,;t t
|
||||
s,@host_alias@,$host_alias,;t t
|
||||
s,@target_alias@,$target_alias,;t t
|
||||
@@ -9445,6 +9600,7 @@ s,@RANLIB@,$RANLIB,;t t
|
||||
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
||||
s,@AUTOM4TE@,$AUTOM4TE,;t t
|
||||
s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
|
||||
s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
|
||||
s,@U@,$U,;t t
|
||||
s,@ANSI2KNR@,$ANSI2KNR,;t t
|
||||
s,@ALLOCA@,$ALLOCA,;t t
|
||||
@@ -9595,10 +9751,10 @@ case $srcdir in
|
||||
esac
|
||||
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
||||
# absolute.
|
||||
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
||||
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
|
||||
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
||||
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
||||
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
||||
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
|
||||
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
||||
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
||||
|
||||
|
||||
case $INSTALL in
|
||||
@@ -9659,13 +9815,13 @@ cat >>$CONFIG_STATUS <<\_ACEOF
|
||||
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
||||
s,@configure_input@,$configure_input,;t t
|
||||
s,@srcdir@,$ac_srcdir,;t t
|
||||
s,@srcpath@,$ac_srcpath,;t t
|
||||
s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
||||
s,@top_srcdir@,$ac_top_srcdir,;t t
|
||||
s,@top_srcpath@,$ac_top_srcpath,;t t
|
||||
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
||||
s,@builddir@,$ac_builddir,;t t
|
||||
s,@buildpath@,$ac_buildpath,;t t
|
||||
s,@abs_builddir@,$ac_abs_builddir,;t t
|
||||
s,@top_builddir@,$ac_top_builddir,;t t
|
||||
s,@top_buildpath@,$ac_top_buildpath,;t t
|
||||
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
||||
s,@INSTALL@,$ac_INSTALL,;t t
|
||||
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
||||
rm -f $tmp/stdin
|
||||
@@ -9952,37 +10108,29 @@ case $srcdir in
|
||||
esac
|
||||
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
||||
# absolute.
|
||||
ac_buildpath=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
||||
ac_top_buildpath=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
|
||||
ac_srcpath=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
||||
ac_top_srcpath=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
||||
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
||||
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
|
||||
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
||||
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
||||
|
||||
|
||||
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
||||
echo "$as_me: executing $ac_dest commands" >&6;}
|
||||
case $ac_dest in
|
||||
tests/package.m4 ) cat >tests/package.m4 <<ATEOF
|
||||
# Signature of the current package.
|
||||
m4_define([PACKAGE_NAME], [$PACKAGE_NAME])
|
||||
m4_define([PACKAGE_TARNAME], [$PACKAGE_TARNAME])
|
||||
m4_define([PACKAGE_VERSION], [$PACKAGE_VERSION])
|
||||
m4_define([PACKAGE_STRING], [$PACKAGE_STRING])
|
||||
m4_define([PACKAGE_BUGREPORT], [$PACKAGE_BUGREPORT])
|
||||
ATEOF
|
||||
;;
|
||||
tests/atconfig ) cat >tests/atconfig <<ATEOF
|
||||
# Configurable variable values for building test suites.
|
||||
# Generated by $0.
|
||||
# Copyright 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
|
||||
at_testdir='tests'
|
||||
buildpath='$ac_buildpath'
|
||||
srcdir='$ac_srcdir'
|
||||
srcpath='$ac_srcpath'
|
||||
top_srcdir='$ac_top_srcdir'
|
||||
top_srcpath='$ac_top_srcpath'
|
||||
top_builddir='$ac_top_builddir'
|
||||
top_buildpath='$ac_top_buildpath'
|
||||
abs_builddir='$ac_abs_builddir'
|
||||
at_srcdir='$ac_srcdir'
|
||||
abs_srcdir='$ac_abs_srcdir'
|
||||
at_top_srcdir='$ac_top_srcdir'
|
||||
abs_top_srcdir='$ac_abs_top_srcdir'
|
||||
at_top_builddir='$ac_top_builddir'
|
||||
abs_top_builddir='$ac_abs_top_builddir'
|
||||
|
||||
AUTOTEST_PATH='tests'
|
||||
|
||||
@@ -9990,9 +10138,10 @@ SHELL=\${CONFIG_SHELL-'$SHELL'}
|
||||
ATEOF
|
||||
;;
|
||||
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
||||
case $mf in
|
||||
Makefile) dirpart=.;;
|
||||
*/Makefile) dirpart=`(dirname "$mf") 2>/dev/null ||
|
||||
# Strip MF so we end up with the name of the file.
|
||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||
if (head -1 $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
|
||||
dirpart=`(dirname "$mf") 2>/dev/null ||
|
||||
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
||||
X"$mf" : 'X\(//\)[^/]' \| \
|
||||
X"$mf" : 'X\(//\)$' \| \
|
||||
@@ -10003,9 +10152,10 @@ echo X"$mf" |
|
||||
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
||||
/^X\(\/\/\)$/{ s//\1/; q; }
|
||||
/^X\(\/\).*/{ s//\1/; q; }
|
||||
s/.*/./; q'`;;
|
||||
*) continue;;
|
||||
esac
|
||||
s/.*/./; q'`
|
||||
else
|
||||
dirpart=
|
||||
fi
|
||||
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
|
||||
# Extract the definition of DEP_FILES from the Makefile without
|
||||
# running `make'.
|
||||
|
||||
+8
-6
@@ -1,6 +1,6 @@
|
||||
# Configure template for GNU Bison. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright 2001 Free Software Foundation, Inc.
|
||||
# Copyright 2001, 2002 Free Software Foundation, Inc.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -20,10 +20,10 @@
|
||||
# We need a recent Autoconf to run a recent Autotest.
|
||||
AC_PREREQ(2.52g)
|
||||
|
||||
AC_INIT([GNU Bison], [1.30f], [[email protected]])
|
||||
AC_INIT([GNU Bison], [1.30j], [[email protected]])
|
||||
AC_CONFIG_AUX_DIR(config)
|
||||
|
||||
AM_INIT_AUTOMAKE([bison], [1.30f])
|
||||
AM_INIT_AUTOMAKE([bison], [1.30j])
|
||||
AM_CONFIG_HEADER(config.h:config.hin)
|
||||
|
||||
# Initialize the test suite.
|
||||
@@ -49,6 +49,9 @@ AC_ARG_ENABLE(gcc-warnings,
|
||||
esac],
|
||||
[enableval=no])
|
||||
if test "${enableval}" = yes; then
|
||||
BISON_WARNING(-Werror)
|
||||
AC_SUBST([WERROR_CFLAGS], [$WARNING_CFLAGS])
|
||||
WARNING_CFLAGS=
|
||||
BISON_WARNING(-Wall)
|
||||
BISON_WARNING(-W)
|
||||
BISON_WARNING(-Wbad-function-cast)
|
||||
@@ -61,7 +64,6 @@ if test "${enableval}" = yes; then
|
||||
BISON_WARNING(-Wshadow)
|
||||
BISON_WARNING(-Wstrict-prototypes)
|
||||
BISON_WARNING(-Wwrite-strings)
|
||||
BISON_WARNING(-Werror)
|
||||
fi
|
||||
|
||||
# Checks for libraries.
|
||||
@@ -85,8 +87,8 @@ AC_FUNC_ALLOCA
|
||||
AC_FUNC_OBSTACK
|
||||
AC_FUNC_ERROR_AT_LINE
|
||||
AC_CHECK_FUNCS(mkstemp setlocale)
|
||||
AC_CHECK_DECLS([stpcpy, strndup, strnlen, memchr])
|
||||
AC_REPLACE_FUNCS(stpcpy strndup strnlen strspn memchr)
|
||||
AC_CHECK_DECLS([stpcpy, strchr, strspn, strnlen, memchr, memrchr])
|
||||
AC_REPLACE_FUNCS(stpcpy strchr strnlen strspn memchr memrchr)
|
||||
jm_FUNC_MALLOC
|
||||
jm_FUNC_REALLOC
|
||||
jm_PREREQ_QUOTEARG
|
||||
|
||||
+2
-2
@@ -262,9 +262,9 @@ and so on.
|
||||
.ns
|
||||
.TP
|
||||
.B \-\-debug
|
||||
Output a definition of the macro
|
||||
In the parser file, define the macro
|
||||
.B YYDEBUG
|
||||
into the parser file,
|
||||
to 1 if it is not already defined,
|
||||
so that the debugging facilities are compiled.
|
||||
.TP
|
||||
.B \-v
|
||||
|
||||
+2
-1
@@ -56,7 +56,8 @@ foo_tab.c.
|
||||
.indent -1
|
||||
2 /DEBUG
|
||||
.skip
|
||||
Output a definition of the macro YYDEBUG into the parser file,
|
||||
In the parser file,
|
||||
define the macro YYDEBUG to 1 if it is not already defined,
|
||||
so that the debugging facilities are compiled.
|
||||
.skip
|
||||
.indent -1
|
||||
|
||||
+27
-18
@@ -706,9 +706,10 @@ In some cases the Bison parser file includes system headers, and in
|
||||
those cases your code should respect the identifiers reserved by those
|
||||
headers. On some non-@sc{gnu} hosts, @code{<alloca.h>},
|
||||
@code{<stddef.h>}, and @code{<stdlib.h>} are included as needed to
|
||||
declare memory allocators and related types. On all hosts,
|
||||
@code{<stdio.h>} is included if you define @code{YYDEBUG}
|
||||
(@pxref{Debugging, ,Debugging Your Parser}).
|
||||
declare memory allocators and related types. In the same situation,
|
||||
C++ parsers may include @code{<cstddef>} and @code{<cstdlib>} instead.
|
||||
Other system headers may be included if you define @code{YYDEBUG} to a
|
||||
nonzero value (@pxref{Debugging, ,Debugging Your Parser}).
|
||||
|
||||
@node Stages
|
||||
@section Stages in Using Bison
|
||||
@@ -3234,9 +3235,9 @@ directives:
|
||||
|
||||
@table @code
|
||||
@item %debug
|
||||
Output a definition of the macro @code{YYDEBUG} into the parser file, so
|
||||
that the debugging facilities are compiled. @xref{Debugging, ,Debugging
|
||||
Your Parser}.
|
||||
In the parser file, define the macro @code{YYDEBUG} to 1 if it is not
|
||||
already defined, so that the debugging facilities are compiled.
|
||||
@xref{Debugging, ,Debugging Your Parser}.
|
||||
|
||||
@item %defines
|
||||
Write an extra output file containing macro definitions for the token
|
||||
@@ -4924,15 +4925,23 @@ If a Bison grammar compiles properly but doesn't do what you want when it
|
||||
runs, the @code{yydebug} parser-trace feature can help you figure out why.
|
||||
|
||||
To enable compilation of trace facilities, you must define the macro
|
||||
@code{YYDEBUG} when you compile the parser. You could use
|
||||
@samp{-DYYDEBUG=1} as a compiler option or you could put @samp{#define
|
||||
YYDEBUG 1} in the C declarations section of the grammar file
|
||||
(@pxref{C Declarations, ,The C Declarations Section}). Alternatively, use the @samp{-t} option when
|
||||
you run Bison (@pxref{Invocation, ,Invoking Bison}). We always define @code{YYDEBUG} so that
|
||||
debugging is always possible.
|
||||
@code{YYDEBUG} to a nonzero value when you compile the parser. You
|
||||
could use @samp{-DYYDEBUG=1} as a compiler option or you could put
|
||||
@samp{#define YYDEBUG 1} in the C declarations section of the grammar
|
||||
file (@pxref{C Declarations, ,The C Declarations Section}).
|
||||
Alternatively, use the @samp{-t} option when you run Bison
|
||||
(@pxref{Invocation, ,Invoking Bison}) or the @code{%debug} declaration
|
||||
(@pxref{Decl Summary, ,Bison Declaration Summary}). We suggest that
|
||||
you always define @code{YYDEBUG} so that debugging is always possible.
|
||||
|
||||
The trace facility uses @code{stderr}, so you must add @w{@code{#include
|
||||
<stdio.h>}} to the C declarations section unless it is already there.
|
||||
The trace facility outputs messages with macro calls of the form
|
||||
@code{YYFPRINTF (stderr, @var{format}, @var{args})} where
|
||||
@var{format} and @var{args} are the usual @code{printf} format and
|
||||
arguments. If you define @code{YYDEBUG} to a nonzero value but do not
|
||||
define @code{YYFPRINTF}, @code{<stdio.h>} is automatically included
|
||||
and @code{YYPRINTF} is defined to @code{fprintf}. In the same
|
||||
situation, C++ parsers include @code{<cstdio>} and use
|
||||
@code{std::fprintf} instead.
|
||||
|
||||
Once you have compiled the program with trace facilities, the way to
|
||||
request a trace is to store a nonzero value in the variable @code{yydebug}.
|
||||
@@ -5011,7 +5020,7 @@ Here @var{infile} is the grammar file name, which usually ends in
|
||||
@samp{.y}. The parser file's name is made by replacing the @samp{.y}
|
||||
with @samp{.tab.c}. Thus, the @samp{bison foo.y} filename yields
|
||||
@file{foo.tab.c}, and the @samp{bison hack/foo.y} filename yields
|
||||
@file{hack/foo.tab.c}. It's is also possible, in case you are writting
|
||||
@file{hack/foo.tab.c}. It's is also possible, in case you are writing
|
||||
C++ code instead of C in your grammar file, to name it @file{foo.ypp}
|
||||
or @file{foo.y++}. Then, the output files will take an extention like
|
||||
the given one as input (repectively @file{foo.tab.cpp} and @file{foo.tab.c++}).
|
||||
@@ -5093,9 +5102,9 @@ you are developing Bison.
|
||||
|
||||
@item -t
|
||||
@itemx --debug
|
||||
Output a definition of the macro @code{YYDEBUG} into the parser file, so
|
||||
that the debugging facilities are compiled. @xref{Debugging, ,Debugging
|
||||
Your Parser}.
|
||||
In the parser file, define the macro @code{YYDEBUG} to 1 if it is not
|
||||
already defined, so that the debugging facilities are compiled.
|
||||
@xref{Debugging, ,Debugging Your Parser}.
|
||||
|
||||
@item --locations
|
||||
Pretend that @code{%locations} was specified. @xref{Decl Summary}.
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
@set UPDATED 30 November 2001
|
||||
@set UPDATED-MONTH November 2001
|
||||
@set EDITION 1.30f
|
||||
@set VERSION 1.30f
|
||||
@set UPDATED 5 January 2002
|
||||
@set UPDATED-MONTH January 2002
|
||||
@set EDITION 1.30j
|
||||
@set VERSION 1.30j
|
||||
|
||||
+3
-2
@@ -1,4 +1,4 @@
|
||||
## Copyright 2001 Free Software Foundation, Inc.
|
||||
## Copyright 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License as published by
|
||||
@@ -29,9 +29,10 @@ INCLUDES = -I.. -I$(srcdir) -I../intl
|
||||
EXTRA_DIST = malloc.c realloc.c
|
||||
|
||||
libbison_a_SOURCES = \
|
||||
basename.c dirname.h dirname.c \
|
||||
getopt.h getopt.c getopt1.c \
|
||||
quote.h quote.c quotearg.h quotearg.c \
|
||||
xalloc.h xmalloc.c xstrdup.c
|
||||
xalloc.h xmalloc.c xstrdup.c xstrndup.c
|
||||
|
||||
libbison_a_LIBADD = @LIBOBJS@ @ALLOCA@
|
||||
libbison_a_DEPENDENCIES = $(libbison_a_LIBADD)
|
||||
|
||||
+48
-29
@@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.5a from Makefile.am.
|
||||
# Makefile.in generated by automake 1.5c from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
@@ -13,7 +13,6 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@@ -48,6 +47,7 @@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = @program_transform_name@
|
||||
@@ -97,6 +97,7 @@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
WARNING_CFLAGS = @WARNING_CFLAGS@
|
||||
WERROR_CFLAGS = @WERROR_CFLAGS@
|
||||
am__include = @am__include@
|
||||
am__quote = @am__quote@
|
||||
install_sh = @install_sh@
|
||||
@@ -115,9 +116,10 @@ INCLUDES = -I.. -I$(srcdir) -I../intl
|
||||
EXTRA_DIST = malloc.c realloc.c
|
||||
|
||||
libbison_a_SOURCES = \
|
||||
basename.c dirname.h dirname.c \
|
||||
getopt.h getopt.c getopt1.c \
|
||||
quote.h quote.c quotearg.h quotearg.c \
|
||||
xalloc.h xmalloc.c xstrdup.c
|
||||
xalloc.h xmalloc.c xstrdup.c xstrndup.c
|
||||
|
||||
|
||||
libbison_a_LIBADD = @LIBOBJS@ @ALLOCA@
|
||||
@@ -129,9 +131,10 @@ CONFIG_CLEAN_FILES =
|
||||
LIBRARIES = $(noinst_LIBRARIES)
|
||||
|
||||
libbison_a_AR = $(AR) cru
|
||||
am_libbison_a_OBJECTS = getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT) \
|
||||
quote$U.$(OBJEXT) quotearg$U.$(OBJEXT) xmalloc$U.$(OBJEXT) \
|
||||
xstrdup$U.$(OBJEXT)
|
||||
am_libbison_a_OBJECTS = basename$U.$(OBJEXT) dirname$U.$(OBJEXT) \
|
||||
getopt$U.$(OBJEXT) getopt1$U.$(OBJEXT) quote$U.$(OBJEXT) \
|
||||
quotearg$U.$(OBJEXT) xmalloc$U.$(OBJEXT) xstrdup$U.$(OBJEXT) \
|
||||
xstrndup$U.$(OBJEXT)
|
||||
libbison_a_OBJECTS = $(am_libbison_a_OBJECTS)
|
||||
|
||||
DEFS = @DEFS@
|
||||
@@ -140,22 +143,24 @@ CPPFLAGS = @CPPFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
|
||||
@AMDEP_TRUE@DEP_FILES = $(DEPDIR)/alloca.Po $(DEPDIR)/error.Po \
|
||||
@AMDEP_TRUE@DEP_FILES = $(DEPDIR)/alloca.Po $(DEPDIR)/basename$U.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/dirname$U.Po $(DEPDIR)/error.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/getopt$U.Po $(DEPDIR)/getopt1$U.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/malloc.Po $(DEPDIR)/memchr.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/obstack.Po $(DEPDIR)/quote$U.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/quotearg$U.Po $(DEPDIR)/realloc.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/stpcpy.Po $(DEPDIR)/strndup.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/strnlen.Po $(DEPDIR)/strspn.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/xmalloc$U.Po $(DEPDIR)/xstrdup$U.Po
|
||||
@AMDEP_TRUE@ $(DEPDIR)/memrchr.Po $(DEPDIR)/obstack.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/quote$U.Po $(DEPDIR)/quotearg$U.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/realloc.Po $(DEPDIR)/stpcpy.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/strchr.Po $(DEPDIR)/strnlen.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/strspn.Po $(DEPDIR)/xmalloc$U.Po \
|
||||
@AMDEP_TRUE@ $(DEPDIR)/xstrdup$U.Po $(DEPDIR)/xstrndup$U.Po
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_SOURCES = $(libbison_a_SOURCES)
|
||||
DIST_COMMON = Makefile.am Makefile.in alloca.c ansi2knr.1 ansi2knr.c \
|
||||
error.c error.h malloc.c memchr.c obstack.c obstack.h realloc.c \
|
||||
stpcpy.c strndup.c strnlen.c strspn.c
|
||||
error.c error.h malloc.c memchr.c memrchr.c obstack.c obstack.h \
|
||||
realloc.c stpcpy.c strchr.c strnlen.c strspn.c
|
||||
SOURCES = $(libbison_a_SOURCES)
|
||||
|
||||
all: all-am
|
||||
@@ -195,21 +200,25 @@ mostlyclean-kr:
|
||||
-test "$U" = "" || rm -f *_.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/alloca.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/basename$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/dirname$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/error.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt1$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/malloc.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memchr.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/memrchr.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/obstack.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/quote$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/quotearg$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/realloc.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/stpcpy.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strndup.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strchr.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strnlen.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strspn.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xmalloc$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xstrdup$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/xstrndup$U.Po@am__quote@
|
||||
|
||||
distclean-depend:
|
||||
-rm -rf $(DEPDIR)
|
||||
@@ -228,6 +237,10 @@ distclean-depend:
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
alloca_.c: alloca.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/alloca.c; then echo $(srcdir)/alloca.c; else echo alloca.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > alloca_.c || rm -f alloca_.c
|
||||
basename_.c: basename.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/basename.c; then echo $(srcdir)/basename.c; else echo basename.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > basename_.c || rm -f basename_.c
|
||||
dirname_.c: dirname.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/dirname.c; then echo $(srcdir)/dirname.c; else echo dirname.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > dirname_.c || rm -f dirname_.c
|
||||
error_.c: error.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/error.c; then echo $(srcdir)/error.c; else echo error.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > error_.c || rm -f error_.c
|
||||
getopt_.c: getopt.c $(ANSI2KNR)
|
||||
@@ -238,6 +251,8 @@ malloc_.c: malloc.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/malloc.c; then echo $(srcdir)/malloc.c; else echo malloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > malloc_.c || rm -f malloc_.c
|
||||
memchr_.c: memchr.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/memchr.c; then echo $(srcdir)/memchr.c; else echo memchr.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > memchr_.c || rm -f memchr_.c
|
||||
memrchr_.c: memrchr.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/memrchr.c; then echo $(srcdir)/memrchr.c; else echo memrchr.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > memrchr_.c || rm -f memrchr_.c
|
||||
obstack_.c: obstack.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/obstack.c; then echo $(srcdir)/obstack.c; else echo obstack.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > obstack_.c || rm -f obstack_.c
|
||||
quote_.c: quote.c $(ANSI2KNR)
|
||||
@@ -248,8 +263,8 @@ realloc_.c: realloc.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/realloc.c; then echo $(srcdir)/realloc.c; else echo realloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > realloc_.c || rm -f realloc_.c
|
||||
stpcpy_.c: stpcpy.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/stpcpy.c; then echo $(srcdir)/stpcpy.c; else echo stpcpy.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > stpcpy_.c || rm -f stpcpy_.c
|
||||
strndup_.c: strndup.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strndup.c; then echo $(srcdir)/strndup.c; else echo strndup.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strndup_.c || rm -f strndup_.c
|
||||
strchr_.c: strchr.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strchr.c; then echo $(srcdir)/strchr.c; else echo strchr.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strchr_.c || rm -f strchr_.c
|
||||
strnlen_.c: strnlen.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strnlen.c; then echo $(srcdir)/strnlen.c; else echo strnlen.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strnlen_.c || rm -f strnlen_.c
|
||||
strspn_.c: strspn.c $(ANSI2KNR)
|
||||
@@ -258,36 +273,40 @@ xmalloc_.c: xmalloc.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xmalloc.c; then echo $(srcdir)/xmalloc.c; else echo xmalloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xmalloc_.c || rm -f xmalloc_.c
|
||||
xstrdup_.c: xstrdup.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xstrdup.c; then echo $(srcdir)/xstrdup.c; else echo xstrdup.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xstrdup_.c || rm -f xstrdup_.c
|
||||
alloca_.$(OBJEXT) error_.$(OBJEXT) getopt_.$(OBJEXT) getopt1_.$(OBJEXT) \
|
||||
malloc_.$(OBJEXT) memchr_.$(OBJEXT) obstack_.$(OBJEXT) quote_.$(OBJEXT) \
|
||||
quotearg_.$(OBJEXT) realloc_.$(OBJEXT) stpcpy_.$(OBJEXT) \
|
||||
strndup_.$(OBJEXT) strnlen_.$(OBJEXT) strspn_.$(OBJEXT) \
|
||||
xmalloc_.$(OBJEXT) xstrdup_.$(OBJEXT) : $(ANSI2KNR)
|
||||
xstrndup_.c: xstrndup.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/xstrndup.c; then echo $(srcdir)/xstrndup.c; else echo xstrndup.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > xstrndup_.c || rm -f xstrndup_.c
|
||||
alloca_.$(OBJEXT) basename_.$(OBJEXT) dirname_.$(OBJEXT) \
|
||||
error_.$(OBJEXT) getopt_.$(OBJEXT) getopt1_.$(OBJEXT) malloc_.$(OBJEXT) \
|
||||
memchr_.$(OBJEXT) memrchr_.$(OBJEXT) obstack_.$(OBJEXT) \
|
||||
quote_.$(OBJEXT) quotearg_.$(OBJEXT) realloc_.$(OBJEXT) \
|
||||
stpcpy_.$(OBJEXT) strchr_.$(OBJEXT) strnlen_.$(OBJEXT) \
|
||||
strspn_.$(OBJEXT) xmalloc_.$(OBJEXT) xstrdup_.$(OBJEXT) \
|
||||
xstrndup_.$(OBJEXT) : $(ANSI2KNR)
|
||||
uninstall-info-am:
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique $(LISP)
|
||||
mkid -fID $$unique
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| etags $(ETAGS_ARGS) $$tags $$unique $(LISP)
|
||||
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|
||||
|| etags $(ETAGS_ARGS) $$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
@@ -296,7 +315,6 @@ GTAGS:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
top_distdir = ..
|
||||
@@ -304,7 +322,7 @@ distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
$(mkinstalldirs) "$(distdir)/$$dir"; \
|
||||
@@ -335,6 +353,7 @@ install-am: all-am
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/* basename.c -- return the last element in a path
|
||||
Copyright (C) 1990, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
#ifndef FILESYSTEM_PREFIX_LEN
|
||||
# define FILESYSTEM_PREFIX_LEN(Filename) 0
|
||||
#endif
|
||||
|
||||
#ifndef PARAMS
|
||||
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
|
||||
# define PARAMS(Args) Args
|
||||
# else
|
||||
# define PARAMS(Args) ()
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef ISSLASH
|
||||
# define ISSLASH(C) ((C) == '/')
|
||||
#endif
|
||||
|
||||
char *base_name PARAMS ((char const *name));
|
||||
|
||||
/* In general, we can't use the builtin `basename' function if available,
|
||||
since it has different meanings in different environments.
|
||||
In some environments the builtin `basename' modifies its argument.
|
||||
If NAME is all slashes, be sure to return `/'. */
|
||||
|
||||
char *
|
||||
base_name (char const *name)
|
||||
{
|
||||
char const *base = name += FILESYSTEM_PREFIX_LEN (name);
|
||||
int all_slashes = 1;
|
||||
char const *p;
|
||||
|
||||
for (p = name; *p; p++)
|
||||
{
|
||||
if (ISSLASH (*p))
|
||||
base = p + 1;
|
||||
else
|
||||
all_slashes = 0;
|
||||
}
|
||||
|
||||
/* If NAME is all slashes, arrange to return `/'. */
|
||||
if (*base == '\0' && ISSLASH (*name) && all_slashes)
|
||||
--base;
|
||||
|
||||
/* Make sure the last byte is not a slash. */
|
||||
assert (all_slashes || !ISSLASH (*(p - 1)));
|
||||
|
||||
return (char *) base;
|
||||
}
|
||||
+189
@@ -0,0 +1,189 @@
|
||||
/* dirname.c -- return all but the last element in a path
|
||||
Copyright (C) 1990, 1998, 2000 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef STDC_HEADERS
|
||||
# include <stdlib.h>
|
||||
#else
|
||||
char *malloc ();
|
||||
#endif
|
||||
#if defined STDC_HEADERS || defined HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#else
|
||||
# include <strings.h>
|
||||
# ifndef strrchr
|
||||
# define strrchr rindex
|
||||
# endif
|
||||
#endif
|
||||
#include <assert.h>
|
||||
|
||||
#ifndef HAVE_DECL_MEMRCHR
|
||||
"this configure-time declaration test was not run"
|
||||
#endif
|
||||
#if !HAVE_DECL_MEMRCHR
|
||||
void *memrchr ();
|
||||
#endif
|
||||
|
||||
#include "dirname.h"
|
||||
|
||||
#ifndef FILESYSTEM_PREFIX_LEN
|
||||
# define FILESYSTEM_PREFIX_LEN(Filename) 0
|
||||
#endif
|
||||
|
||||
#ifndef ISSLASH
|
||||
# define ISSLASH(C) ((C) == '/')
|
||||
#endif
|
||||
|
||||
#define BACKSLASH_IS_PATH_SEPARATOR ISSLASH ('\\')
|
||||
|
||||
/* Return the length of `dirname (PATH)' and set *RESULT to point
|
||||
to PATH or to `"."', as appropriate. Works properly even if
|
||||
there are trailing slashes (by effectively ignoring them).
|
||||
WARNING: This function doesn't work for cwd-relative names like
|
||||
`a:foo' that are specified with a drive-letter prefix. That case
|
||||
is handled in the caller. */
|
||||
static size_t
|
||||
dir_name_r (char const *path, char const **result)
|
||||
{
|
||||
char const *slash;
|
||||
size_t length; /* Length of result, not including NUL. */
|
||||
|
||||
slash = strrchr (path, '/');
|
||||
if (BACKSLASH_IS_PATH_SEPARATOR)
|
||||
{
|
||||
char const *b = strrchr (path, '\\');
|
||||
if (b && slash < b)
|
||||
slash = b;
|
||||
}
|
||||
|
||||
/* If the last byte of PATH is a slash, decrement SLASH until it's
|
||||
pointing at the leftmost in a sequence of trailing slashes. */
|
||||
if (slash && slash[1] == 0)
|
||||
{
|
||||
while (path < slash && ISSLASH (slash[-1]))
|
||||
{
|
||||
--slash;
|
||||
}
|
||||
|
||||
if (path < slash)
|
||||
{
|
||||
size_t len = slash - path;
|
||||
slash = memrchr (path, '/', len);
|
||||
if (BACKSLASH_IS_PATH_SEPARATOR)
|
||||
{
|
||||
char const *b = memrchr (path, '\\', len);
|
||||
if (b && slash < b)
|
||||
slash = b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (slash == 0)
|
||||
{
|
||||
/* File is in the current directory. */
|
||||
|
||||
length = FILESYSTEM_PREFIX_LEN (path);
|
||||
|
||||
if (length == 0)
|
||||
{
|
||||
path = ".";
|
||||
length = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Remove any trailing slashes from the result. If we have a
|
||||
canonicalized "d:/path", leave alone the root case "d:/". */
|
||||
char const *lim = path + FILESYSTEM_PREFIX_LEN (path);
|
||||
|
||||
while (lim < slash && ISSLASH (*slash))
|
||||
--slash;
|
||||
|
||||
length = slash - path + 1;
|
||||
}
|
||||
|
||||
*result = path;
|
||||
return length;
|
||||
}
|
||||
|
||||
/* Return the leading directories part of PATH,
|
||||
allocated with malloc. If out of memory, return 0.
|
||||
Works properly even if there are trailing slashes
|
||||
(by effectively ignoring them). */
|
||||
|
||||
char *
|
||||
dir_name (char const *path)
|
||||
{
|
||||
char const *result;
|
||||
size_t length = dir_name_r (path, &result);
|
||||
int append_dot = (length && length == FILESYSTEM_PREFIX_LEN (newpath));
|
||||
char *newpath = (char *) malloc (length + append_dot + 1);
|
||||
if (newpath == 0)
|
||||
return 0;
|
||||
strncpy (newpath, result, length);
|
||||
/* If PATH is "d:foo", return "d:.", the CWD on drive d: */
|
||||
if (append_dot)
|
||||
newpath[length++] = '.';
|
||||
newpath[length] = 0;
|
||||
return newpath;
|
||||
}
|
||||
|
||||
#ifdef TEST_DIRNAME
|
||||
/*
|
||||
|
||||
Run the test like this (expect no output):
|
||||
gcc -DHAVE_CONFIG_H -DTEST_DIRNAME -I.. -O -Wall memrchr.c dirname.c
|
||||
sed -n '/^BEGIN-DATA$/,/^END-DATA$/p' dirname.c|grep -v DATA|./a.out
|
||||
|
||||
BEGIN-DATA
|
||||
foo//// .
|
||||
bar/foo//// bar
|
||||
foo/ .
|
||||
/ /
|
||||
. .
|
||||
a .
|
||||
END-DATA
|
||||
|
||||
*/
|
||||
|
||||
# define MAX_BUFF_LEN 1024
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
char buff[MAX_BUFF_LEN + 1];
|
||||
|
||||
buff[MAX_BUFF_LEN] = 0;
|
||||
while (fgets (buff, MAX_BUFF_LEN, stdin) && buff[0])
|
||||
{
|
||||
char path[MAX_BUFF_LEN];
|
||||
char expected_result[MAX_BUFF_LEN];
|
||||
char const *result;
|
||||
sscanf (buff, "%s %s", path, expected_result);
|
||||
result = dir_name (path);
|
||||
if (strcmp (result, expected_result))
|
||||
printf ("%s: got %s, expected %s\n", path, result, expected_result);
|
||||
}
|
||||
exit (0);
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#ifndef DIRNAME_H_
|
||||
# define DIRNAME_H_ 1
|
||||
|
||||
# ifndef PARAMS
|
||||
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
|
||||
# define PARAMS(Args) Args
|
||||
# else
|
||||
# define PARAMS(Args) ()
|
||||
# endif
|
||||
# endif
|
||||
|
||||
char *
|
||||
dir_name PARAMS ((const char *path));
|
||||
|
||||
#endif /* not DIRNAME_H_ */
|
||||
+209
@@ -0,0 +1,209 @@
|
||||
/* memrchr -- find the last occurrence of a byte in a memory block
|
||||
Copyright (C) 1991, 93, 96, 97, 99, 2000 Free Software Foundation, Inc.
|
||||
Based on strlen implementation by Torbjorn Granlund ([email protected]),
|
||||
with help from Dan Sahlin ([email protected]) and
|
||||
commentary by Jim Blandy ([email protected]);
|
||||
adaptation to memchr suggested by Dick Karpinski ([email protected]),
|
||||
and implemented by Roland McGrath ([email protected]).
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#undef __ptr_t
|
||||
#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
|
||||
# define __ptr_t void *
|
||||
#else /* Not C++ or ANSI C. */
|
||||
# define __ptr_t char *
|
||||
#endif /* C++ or ANSI C. */
|
||||
|
||||
#if defined (_LIBC)
|
||||
# include <string.h>
|
||||
# include <memcopy.h>
|
||||
#else
|
||||
# define reg_char char
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_LIMITS_H) || defined (_LIBC)
|
||||
# include <limits.h>
|
||||
#endif
|
||||
|
||||
#define LONG_MAX_32_BITS 2147483647
|
||||
|
||||
#ifndef LONG_MAX
|
||||
# define LONG_MAX LONG_MAX_32_BITS
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#undef __memrchr
|
||||
#undef memrchr
|
||||
|
||||
#ifndef weak_alias
|
||||
# define __memrchr memrchr
|
||||
#endif
|
||||
|
||||
/* Search no more than N bytes of S for C. */
|
||||
__ptr_t
|
||||
__memrchr (s, c_in, n)
|
||||
const __ptr_t s;
|
||||
int c_in;
|
||||
size_t n;
|
||||
{
|
||||
const unsigned char *char_ptr;
|
||||
const unsigned long int *longword_ptr;
|
||||
unsigned long int longword, magic_bits, charmask;
|
||||
unsigned reg_char c;
|
||||
|
||||
c = (unsigned char) c_in;
|
||||
|
||||
/* Handle the last few characters by reading one character at a time.
|
||||
Do this until CHAR_PTR is aligned on a longword boundary. */
|
||||
for (char_ptr = (const unsigned char *) s + n;
|
||||
n > 0 && ((unsigned long int) char_ptr
|
||||
& (sizeof (longword) - 1)) != 0;
|
||||
--n)
|
||||
if (*--char_ptr == c)
|
||||
return (__ptr_t) char_ptr;
|
||||
|
||||
/* All these elucidatory comments refer to 4-byte longwords,
|
||||
but the theory applies equally well to 8-byte longwords. */
|
||||
|
||||
longword_ptr = (unsigned long int *) char_ptr;
|
||||
|
||||
/* Bits 31, 24, 16, and 8 of this number are zero. Call these bits
|
||||
the "holes." Note that there is a hole just to the left of
|
||||
each byte, with an extra at the end:
|
||||
|
||||
bits: 01111110 11111110 11111110 11111111
|
||||
bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD
|
||||
|
||||
The 1-bits make sure that carries propagate to the next 0-bit.
|
||||
The 0-bits provide holes for carries to fall into. */
|
||||
|
||||
if (sizeof (longword) != 4 && sizeof (longword) != 8)
|
||||
abort ();
|
||||
|
||||
#if LONG_MAX <= LONG_MAX_32_BITS
|
||||
magic_bits = 0x7efefeff;
|
||||
#else
|
||||
magic_bits = ((unsigned long int) 0x7efefefe << 32) | 0xfefefeff;
|
||||
#endif
|
||||
|
||||
/* Set up a longword, each of whose bytes is C. */
|
||||
charmask = c | (c << 8);
|
||||
charmask |= charmask << 16;
|
||||
#if LONG_MAX > LONG_MAX_32_BITS
|
||||
charmask |= charmask << 32;
|
||||
#endif
|
||||
|
||||
/* Instead of the traditional loop which tests each character,
|
||||
we will test a longword at a time. The tricky part is testing
|
||||
if *any of the four* bytes in the longword in question are zero. */
|
||||
while (n >= sizeof (longword))
|
||||
{
|
||||
/* We tentatively exit the loop if adding MAGIC_BITS to
|
||||
LONGWORD fails to change any of the hole bits of LONGWORD.
|
||||
|
||||
1) Is this safe? Will it catch all the zero bytes?
|
||||
Suppose there is a byte with all zeros. Any carry bits
|
||||
propagating from its left will fall into the hole at its
|
||||
least significant bit and stop. Since there will be no
|
||||
carry from its most significant bit, the LSB of the
|
||||
byte to the left will be unchanged, and the zero will be
|
||||
detected.
|
||||
|
||||
2) Is this worthwhile? Will it ignore everything except
|
||||
zero bytes? Suppose every byte of LONGWORD has a bit set
|
||||
somewhere. There will be a carry into bit 8. If bit 8
|
||||
is set, this will carry into bit 16. If bit 8 is clear,
|
||||
one of bits 9-15 must be set, so there will be a carry
|
||||
into bit 16. Similarly, there will be a carry into bit
|
||||
24. If one of bits 24-30 is set, there will be a carry
|
||||
into bit 31, so all of the hole bits will be changed.
|
||||
|
||||
The one misfire occurs when bits 24-30 are clear and bit
|
||||
31 is set; in this case, the hole at bit 31 is not
|
||||
changed. If we had access to the processor carry flag,
|
||||
we could close this loophole by putting the fourth hole
|
||||
at bit 32!
|
||||
|
||||
So it ignores everything except 128's, when they're aligned
|
||||
properly.
|
||||
|
||||
3) But wait! Aren't we looking for C, not zero?
|
||||
Good point. So what we do is XOR LONGWORD with a longword,
|
||||
each of whose bytes is C. This turns each byte that is C
|
||||
into a zero. */
|
||||
|
||||
longword = *--longword_ptr ^ charmask;
|
||||
|
||||
/* Add MAGIC_BITS to LONGWORD. */
|
||||
if ((((longword + magic_bits)
|
||||
|
||||
/* Set those bits that were unchanged by the addition. */
|
||||
^ ~longword)
|
||||
|
||||
/* Look at only the hole bits. If any of the hole bits
|
||||
are unchanged, most likely one of the bytes was a
|
||||
zero. */
|
||||
& ~magic_bits) != 0)
|
||||
{
|
||||
/* Which of the bytes was C? If none of them were, it was
|
||||
a misfire; continue the search. */
|
||||
|
||||
const unsigned char *cp = (const unsigned char *) longword_ptr;
|
||||
|
||||
#if LONG_MAX > 2147483647
|
||||
if (cp[7] == c)
|
||||
return (__ptr_t) &cp[7];
|
||||
if (cp[6] == c)
|
||||
return (__ptr_t) &cp[6];
|
||||
if (cp[5] == c)
|
||||
return (__ptr_t) &cp[5];
|
||||
if (cp[4] == c)
|
||||
return (__ptr_t) &cp[4];
|
||||
#endif
|
||||
if (cp[3] == c)
|
||||
return (__ptr_t) &cp[3];
|
||||
if (cp[2] == c)
|
||||
return (__ptr_t) &cp[2];
|
||||
if (cp[1] == c)
|
||||
return (__ptr_t) &cp[1];
|
||||
if (cp[0] == c)
|
||||
return (__ptr_t) cp;
|
||||
}
|
||||
|
||||
n -= sizeof (longword);
|
||||
}
|
||||
|
||||
char_ptr = (const unsigned char *) longword_ptr;
|
||||
|
||||
while (n-- > 0)
|
||||
{
|
||||
if (*--char_ptr == c)
|
||||
return (__ptr_t) char_ptr;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
#ifdef weak_alias
|
||||
weak_alias (__memrchr, memrchr)
|
||||
#endif
|
||||
+19
-2
@@ -1,3 +1,20 @@
|
||||
/* quote.c - quote arguments for output
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* Written by Paul Eggert <[email protected]> */
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
@@ -8,8 +25,8 @@
|
||||
# include <stddef.h> /* For the definition of size_t on windows w/MSVC. */
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <quotearg.h>
|
||||
#include <quote.h>
|
||||
#include "quotearg.h"
|
||||
#include "quote.h"
|
||||
|
||||
/* Return an unambiguous printable representated, allocated in slot N,
|
||||
for NAME, suitable for diagnostics. */
|
||||
|
||||
+17
-1
@@ -1,4 +1,20 @@
|
||||
/* prototypes for quote.c */
|
||||
/* quote.h - prototypes for quote.c
|
||||
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
|
||||
#ifndef PARAMS
|
||||
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
|
||||
|
||||
+2
-2
@@ -25,8 +25,8 @@
|
||||
# include <stddef.h> /* For the definition of size_t on windows w/MSVC. */
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#include <quotearg.h>
|
||||
#include <xalloc.h>
|
||||
#include "quotearg.h"
|
||||
#include "xalloc.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License
|
||||
as published by the Free Software Foundation; either version 2 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this program; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place -
|
||||
Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#else
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
char *
|
||||
strchr (const char *s, int c)
|
||||
{
|
||||
return index (s, c);
|
||||
}
|
||||
@@ -1,7 +1,4 @@
|
||||
/* Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||
|
||||
NOTE: The canonical source of this file is maintained with the GNU C Library.
|
||||
Bugs can be reported to bug-glibc@prep.ai.mit.edu.
|
||||
/* Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by the
|
||||
@@ -17,20 +14,20 @@
|
||||
along with this program; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#if HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#if defined _LIBC || defined STDC_HEADERS
|
||||
# include <stdlib.h>
|
||||
#if STDC_HEADERS || HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#else
|
||||
char *malloc ();
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "xalloc.h"
|
||||
|
||||
#ifndef HAVE_DECL_STRNLEN
|
||||
"this configure-time declaration test was not run"
|
||||
#endif
|
||||
@@ -38,18 +35,13 @@ char *malloc ();
|
||||
size_t strnlen ();
|
||||
#endif
|
||||
|
||||
#undef __strndup
|
||||
#undef strndup
|
||||
|
||||
#ifndef weak_alias
|
||||
# define __strndup strndup
|
||||
#endif
|
||||
char *xstrndup (const char *s, size_t n);
|
||||
|
||||
char *
|
||||
__strndup (const char *s, size_t n)
|
||||
xstrndup (const char *s, size_t n)
|
||||
{
|
||||
size_t len = strnlen (s, n);
|
||||
char *new = malloc (len + 1);
|
||||
char *new = xmalloc (len + 1);
|
||||
|
||||
if (new == NULL)
|
||||
return NULL;
|
||||
@@ -57,6 +49,3 @@ __strndup (const char *s, size_t n)
|
||||
new[len] = '\0';
|
||||
return (char *) memcpy (new, s, len);
|
||||
}
|
||||
#ifdef weak_alias
|
||||
weak_alias (__strndup, strndup)
|
||||
#endif
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.5a from Makefile.am.
|
||||
# Makefile.in generated by automake 1.5c from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
@@ -13,7 +13,6 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@@ -48,6 +47,7 @@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = @program_transform_name@
|
||||
@@ -97,10 +97,10 @@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
WARNING_CFLAGS = @WARNING_CFLAGS@
|
||||
WERROR_CFLAGS = @WERROR_CFLAGS@
|
||||
am__include = @am__include@
|
||||
am__quote = @am__quote@
|
||||
install_sh = @install_sh@
|
||||
|
||||
EXTRA_DIST = \
|
||||
c-bs-a.m4 \
|
||||
codeset.m4 \
|
||||
@@ -138,7 +138,6 @@ uninstall-info-am:
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
top_distdir = ..
|
||||
@@ -146,7 +145,7 @@ distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
$(mkinstalldirs) "$(distdir)/$$dir"; \
|
||||
@@ -177,6 +176,7 @@ install-am: all-am
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bison 1.25\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 1996-10-10 17:54 MET DST\n"
|
||||
"Last-Translator: Ulrich Drepper <[email protected]>\n"
|
||||
"Language-Team: German <[email protected]>\n"
|
||||
@@ -18,7 +18,7 @@ msgstr ""
|
||||
msgid "too many states (max %d)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr ""
|
||||
|
||||
@@ -91,18 +91,18 @@ msgstr " %d Reduziere/Reduziere"
|
||||
msgid "%s contains "
|
||||
msgstr "%s enthält "
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#: src/conflicts.c:412
|
||||
#, fuzzy, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] " %d Schiebe/Reduziere Konflikte"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[reduziere mit Regel %d (%s)]\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -111,22 +111,22 @@ msgstr ""
|
||||
" $default\treduziere mit Regel %d (%s)\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr " %-4s\treduziere mit Tegel %d (%s)\n"
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr " $default\treduziere mit Regel %d (%s)\n"
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr ""
|
||||
|
||||
@@ -200,27 +200,27 @@ msgid ""
|
||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr ""
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: keine Grammatik-Datei angegeben\n"
|
||||
|
||||
#: src/getargs.c:250
|
||||
#: src/getargs.c:258
|
||||
#, fuzzy, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: zusätzliche Argumente nach »%s« werden ignoriert\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr ""
|
||||
@@ -280,7 +280,7 @@ msgstr ""
|
||||
msgid "`%s' requires an argument"
|
||||
msgstr "%s: die Option »%s« erfordert ein Argument\n"
|
||||
|
||||
#: src/output.c:949
|
||||
#: src/output.c:951
|
||||
#, fuzzy, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "maximale Tabellengröße (%s) überschritten"
|
||||
@@ -457,7 +457,7 @@ msgstr ""
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "Symbol %s noch einmal definiert"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "erneute Deklaration des Typs für %s"
|
||||
@@ -472,7 +472,7 @@ msgstr "
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "mehr als eine %start Deklaration"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, fuzzy, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "ungültige %start Deklaration"
|
||||
@@ -501,7 +501,7 @@ msgstr "unzul
|
||||
msgid "unexpected item: %s"
|
||||
msgstr "unerwartetes Symbol: %s"
|
||||
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, fuzzy, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "»{« hat kein Gegenstück"
|
||||
@@ -535,91 +535,91 @@ msgstr "keine Eingabe-Grammatik"
|
||||
msgid "unknown character: %s"
|
||||
msgstr "unbekanntes Zeichen: %s"
|
||||
|
||||
#: src/reader.c:1204
|
||||
#: src/reader.c:1210
|
||||
#, fuzzy, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "unbeendeter %%guard Fall"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr ""
|
||||
"falsch geformte Regel: führendes Symbol wird nicht von einem Semikolon "
|
||||
"gefolgt"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "Grammatik fängt mit einem vertikalen Strich (»|«) an"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "Regel für %s vorhanden, welches aber ein Token ist"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "zwei @prec Anweisungen nacheinander"
|
||||
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr ""
|
||||
"%%guard Anweisung vorhanden, jedoch wird %%semantic_parser nicht angegeben"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "Zwei Aktionen am Ende einer Regel"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "Typkonflikt (»%s« »%s«) bei Default Aktion"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr "leere Regel für Nicht-Terminal vmit Typ und keine Aktion"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "ungültige Eingabe: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#: src/reader.c:1587
|
||||
#, fuzzy, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "zu viele Symbols (Token plus Nicht-Terminal); Maximum %s"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "Eingabegrammatik enthält keine Regeln"
|
||||
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr ""
|
||||
"Symbol %s wird benutzt, ist aber nicht als Token definiert und hat keine "
|
||||
"Regel"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#: src/reader.c:1749
|
||||
#, fuzzy, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr "Token %s und %s haben die selbe nummer %s"
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "Vorrangwertigkeiten für %s und %s widersprechen sich"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "assoc Werte für %s nd %s widersprechen sich"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr "das Startsymbol %s ist undefiniert"
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "das Startsymbol %s ist ein Token"
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: GNU bison 1.25\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 1998-09-21 10:19+0200\n"
|
||||
"Last-Translator: Nicolás García-Pedrajas <[email protected]>\n"
|
||||
"Language-Team: Spanish <[email protected]>\n"
|
||||
@@ -43,7 +43,7 @@ msgstr ""
|
||||
msgid "too many states (max %d)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr ""
|
||||
|
||||
@@ -149,18 +149,18 @@ msgstr " %d reducci
|
||||
msgid "%s contains "
|
||||
msgstr "%s contiene "
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#: src/conflicts.c:412
|
||||
#, fuzzy, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] " %d conflictos desplazamiento/reducción"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[reduce usando la regla %d (%s)]\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -169,22 +169,22 @@ msgstr ""
|
||||
" $default\treduce usando la regla %d (%s)\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr " %-4s\treduce usando la regla %d (%s)\n"
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr " $default\treduce usando la regla %d (%s)\n"
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr ""
|
||||
|
||||
@@ -258,30 +258,30 @@ msgid ""
|
||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr ""
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr ""
|
||||
|
||||
# Me parece menos "computadora" decir "ningún fichero de gramática" - cll
|
||||
#
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: no se ha especificado ningún fichero de gramática\n"
|
||||
|
||||
# Ignorar es no saber, to ignore es no hacer caso, que no es lo mismo. sv
|
||||
#: src/getargs.c:250
|
||||
#: src/getargs.c:258
|
||||
#, fuzzy, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: los argumentos extra después de '%s' no se tendrán en cuenta\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr ""
|
||||
@@ -348,7 +348,7 @@ msgstr "%s: la opci
|
||||
# en inglés era así, pero quizás en español sea mejor como dices
|
||||
# ngp
|
||||
#
|
||||
#: src/output.c:949
|
||||
#: src/output.c:951
|
||||
#, fuzzy, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "excedido el tamaño máximo de la tabla (%s)"
|
||||
@@ -524,7 +524,7 @@ msgstr ""
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "redefinido el símbolo %s"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "redeclaración del tipo de %s"
|
||||
@@ -539,7 +539,7 @@ msgstr "`%s' no es v
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "múltiples declaraciones de %start"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, fuzzy, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "declaración de %start no válida"
|
||||
@@ -578,7 +578,7 @@ msgid "unexpected item: %s"
|
||||
msgstr "ítem inesperado: %s"
|
||||
|
||||
# Cambio el orden y el sexo. Ahora está "en español". sv
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, fuzzy, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "`{' desemparejada"
|
||||
@@ -622,93 +622,93 @@ msgstr "car
|
||||
# mejor que `sin terminar' que me parece más "computerizado" - cll
|
||||
# quizás un poco cacofónico lo de claúsula inconclusa - ngp
|
||||
#
|
||||
#: src/reader.c:1204
|
||||
#: src/reader.c:1210
|
||||
#, fuzzy, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "cláusula %%guard sin terminar"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr "regla mal formada: el símbolo inicial no está seguido por :"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "la gramática comienza con una barra vertical"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "se ha dado una regla para %s, que es un terminal"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "dos @prec en una línea"
|
||||
|
||||
# Insisto, el empleo de participios a secas me parece como hablar en
|
||||
# indio. Por favor, permíteme que añada un "está" :) - cll
|
||||
# ok - ngp
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr "%%guard presente pero %%semantic_parser está sin especificar"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "dos acciones al final de una regla"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "los tipos (`%s' `%s') no concuerdan en la acción por defecto"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr "regla vacía para un no terminal con tipo y no hay ninguna acción"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "entrada no válida: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#: src/reader.c:1587
|
||||
#, fuzzy, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "demasiados símbolos (terminales y no terminales); máximo %s"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "no hay reglas en la gramática de entrada"
|
||||
|
||||
# `token' se debe traducir como `literal' - cll
|
||||
# en terminología de compiladores token es más un terminal - ngp
|
||||
#
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr ""
|
||||
"se usa el símbolo %s, pero no está definido como terminal y no tiene reglas"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#: src/reader.c:1749
|
||||
#, fuzzy, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr "los terminales %s y %s tienen asignados ambos el número %s"
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "precedencias en conflicto entre %s y %s"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "conflicto de valores assoc para %s y %s"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr "el símbolo de inicio (axioma) %s no está definido"
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "el símbolo de inicio (axioma) %s es un terminal"
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bison 1.30e\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"PO-Revision-Date: 2001-11-26 22:45+0200\n"
|
||||
"Project-Id-Version: bison 1.30f\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 2001-12-05 20:35+0200\n"
|
||||
"Last-Translator: Toomas Soome <[email protected]>\n"
|
||||
"Language-Team: Estonian <[email protected]>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -18,7 +18,7 @@ msgstr ""
|
||||
msgid "too many states (max %d)"
|
||||
msgstr "liiga palju olekuid (maks %d)"
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr "Tundmatu süsteemi viga"
|
||||
|
||||
@@ -91,19 +91,19 @@ msgstr " %d redutseerimine/redutseerimine"
|
||||
msgid "%s contains "
|
||||
msgstr "%s sisaldab "
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#: src/conflicts.c:412
|
||||
#, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] "eeldasime %d nihutamine/redutseerimine konflikti\n"
|
||||
msgstr[1] "eeldasime %d nihutamine/redutseerimine konflikti\n"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[redutseerin, kasutades reeglit %d (%s)]\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -112,22 +112,22 @@ msgstr ""
|
||||
" $default\tredutseerin kasutades reeglit %d (%s)\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr " %-4s\tredutseerin kasutades reeglit %d (%s)\n"
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr " $default\tredutseerin kasutades reeglit %d (%s)\n"
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr "faili `%s' ei saa avada"
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr "faili ei õnnestu sulgeda"
|
||||
|
||||
@@ -225,27 +225,27 @@ msgstr ""
|
||||
"See on vaba tarkvara; kopeerimistingimused leiate lähtetekstidest. Garantii\n"
|
||||
"PUUDUB; ka müügiks või mingil eesmärgil kasutamiseks.\n"
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr "`%s' ei ole enam toetatud"
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr "Lisainfo saamiseks proovige `%s --help'.\n"
|
||||
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: puudub grammatikafail\n"
|
||||
|
||||
#: src/getargs.c:250
|
||||
#: src/getargs.c:258
|
||||
#, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: ignoreerin lisaargumente peale `%s'\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr "liiga palju gotosid (maks %d)"
|
||||
@@ -303,7 +303,7 @@ msgstr "`%s' ei toeta argumente: %s"
|
||||
msgid "`%s' requires an argument"
|
||||
msgstr "võti `%s' nõuab argumenti"
|
||||
|
||||
#: src/output.c:949
|
||||
#: src/output.c:951
|
||||
#, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "ületati maksimaalset tabelisuurust (%d)"
|
||||
@@ -465,7 +465,7 @@ msgstr "s
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "sümbol %s on uuesti defineeritud"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "%s tüübi uuesti deklareerimine"
|
||||
@@ -480,7 +480,7 @@ msgstr "`%s' ei ole %s sees lubatud"
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "korduvad %s deklaratsioonid"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "vigane %s deklaratsioon"
|
||||
@@ -509,7 +509,7 @@ msgstr "vigane tekst (%s) - number peab olema peale identifikaatorit"
|
||||
msgid "unexpected item: %s"
|
||||
msgstr "ootamatu element: %s"
|
||||
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "puudub %s"
|
||||
@@ -543,88 +543,88 @@ msgstr "sisendgrammatikat pole"
|
||||
msgid "unknown character: %s"
|
||||
msgstr "tundmatu sümbol: %s"
|
||||
|
||||
#: src/reader.c:1204
|
||||
#: src/reader.c:1210
|
||||
#, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "lõpetamata %guard klausel"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr "vigaselt formeeritud reegel: algsümbolile ei järgne koolonit"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "grammatika algab püstkriipsuga"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "%s jaoks on antud reegel, aga see on märk"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "kaks @prec ühel real"
|
||||
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr "%%guard on määratud, aga %%semantic_parser ei ole"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "kaks tegevust ühe reegli lõpus"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "vaikimisi tegevuse tüübikonflikt (`%s' `%s')"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr "tüübiga mitteterminalil on tühi reegel ja puudub tegevus"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "vigane sisend: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#: src/reader.c:1587
|
||||
#, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "liiga palju sümboleid (märgid ja mitteterminalid); maksimaalne on %d"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "sisendgrammatikas pole reegleid"
|
||||
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr ""
|
||||
"kasutatakse sümbolit %s, mis ei ole defineeritud märgina ja millel puuduvad "
|
||||
"reeglid"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#: src/reader.c:1749
|
||||
#, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr "märkidele %s ja %s on mõlemale omistatud number %d"
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "%s ja %s omavad konfliktseid prioriteete"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "%s ja %s omavad konfliktseid assotsiatiivseid väärtuseid"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr "stardisümbol %s ei ole defineeritud"
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "stardisümbol %s on märk"
|
||||
@@ -642,26 +642,29 @@ msgid "Useless rules:"
|
||||
msgstr "Kasutamata reeglid:"
|
||||
|
||||
#: src/reduce.c:503
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d rule never reduced\n"
|
||||
msgid_plural "%d rules never reduced\n"
|
||||
msgstr[0] "%d reeglit ei redutseeritud\n"
|
||||
msgstr[0] "%d reegel ei redutseeru\n"
|
||||
msgstr[1] "%d reeglit ei redutseeru\n"
|
||||
|
||||
#: src/reduce.c:511
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless nonterminal"
|
||||
msgid_plural "%d useless nonterminals"
|
||||
msgstr[0] "%d kasutamata mitteterminali%s"
|
||||
msgstr[0] "%d kasutamata mitteterminal"
|
||||
msgstr[1] "%d kasutamata mitteterminali"
|
||||
|
||||
#: src/reduce.c:517
|
||||
msgid " and "
|
||||
msgstr " ja "
|
||||
|
||||
#: src/reduce.c:520
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless rule"
|
||||
msgid_plural "%d useless rules"
|
||||
msgstr[0] "%d kasutamata reeglit%s"
|
||||
msgstr[0] "%d kasutamata reegel"
|
||||
msgstr[1] "%d kasutamata reeglit"
|
||||
|
||||
#: src/reduce.c:551
|
||||
#, c-format
|
||||
@@ -754,36 +757,3 @@ msgstr "`"
|
||||
#: lib/quotearg.c:275
|
||||
msgid "'"
|
||||
msgstr "'"
|
||||
|
||||
#~ msgid "%s: internal error: %s\n"
|
||||
#~ msgstr "%s: sisemine viga: %s\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Variables\n"
|
||||
#~ "---------\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Muutujad\n"
|
||||
#~ "--------\n"
|
||||
#~ "\n"
|
||||
|
||||
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||
#~ msgstr "Value Sprec Sassoc Tag\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Rules\n"
|
||||
#~ "-----\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Reeglid\n"
|
||||
#~ "-------\n"
|
||||
#~ "\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Rules interpreted\n"
|
||||
#~ "-----------------\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Interpreteeritud reeglid\n"
|
||||
#~ "------------------------\n"
|
||||
#~ "\n"
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: GNU bison 1.30e\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"PO-Revision-Date: 2001-11-27 08:00-0500\n"
|
||||
"Project-Id-Version: GNU bison 1.30f\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 2001-12-05 13:00-0500\n"
|
||||
"Last-Translator: Michel Robitaille <[email protected]>\n"
|
||||
"Language-Team: French <[email protected]>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -19,7 +19,7 @@ msgstr ""
|
||||
msgid "too many states (max %d)"
|
||||
msgstr "nombre trop grand d'états (max %d)"
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr "Erreur système inconnue"
|
||||
|
||||
@@ -91,18 +91,18 @@ msgstr " %d r
|
||||
msgid "%s contains "
|
||||
msgstr "%s contient "
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#: src/conflicts.c:412
|
||||
#, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] "attendu %d conflits décalage/réduction\n"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[réduction par la règle %d (%s)\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -111,22 +111,22 @@ msgstr ""
|
||||
" $défaut\tréduction par la règle %d (%s)\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr " %-4s\tréduction par la règle %d (%s)\n"
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr " $défaut\tréduction par la règle %d (%s)\n"
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr "ne peut ouvrir le fichier `%s'"
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr "ne peut fermer le fichier"
|
||||
|
||||
@@ -228,27 +228,27 @@ msgstr ""
|
||||
"reproduction. AUCUNE garantie n'est donnée; tant pour des raisons\n"
|
||||
"COMMERCIALES que pour RÉPONDRE À UN BESOIN PARTICULIER.\n"
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr "`%s' n'est plus supporté"
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr "Pour en savoir davantage, faites: `%s --help'.\n"
|
||||
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: grammaire manquante\n"
|
||||
|
||||
#: src/getargs.c:250
|
||||
#: src/getargs.c:258
|
||||
#, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: arguments supplémentaires ignorés après `%s'\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr "nombre trop grand de \"goto\" (Max %d)"
|
||||
@@ -306,7 +306,7 @@ msgstr "`%s' ne supporte aucun argument: %s"
|
||||
msgid "`%s' requires an argument"
|
||||
msgstr "`%s': requiert un argument"
|
||||
|
||||
#: src/output.c:949
|
||||
#: src/output.c:951
|
||||
#, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "taille maximale de la table (%d) dépassée"
|
||||
@@ -468,7 +468,7 @@ msgstr "symbole `%s' pr
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "symbole %s redéfini"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "redéclaration du type de %s"
|
||||
@@ -483,7 +483,7 @@ msgstr "`%s' n'est pas valide dans %s"
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "multiples déclarations %s"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "la déclaration %s n'est pas valide"
|
||||
@@ -513,7 +513,7 @@ msgstr ""
|
||||
msgid "unexpected item: %s"
|
||||
msgstr "item inattendu: %s"
|
||||
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "non appariement de %s"
|
||||
@@ -547,88 +547,88 @@ msgstr "aucune grammaire en entr
|
||||
msgid "unknown character: %s"
|
||||
msgstr "caractère inconnu: %s"
|
||||
|
||||
#: src/reader.c:1204
|
||||
#: src/reader.c:1210
|
||||
#, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "clause %guard non terminée"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr "règle mal formée: le symbole initial n'est pas suivi de `:'"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "la grammaire débute par une barre verticale"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "la règle pour %s, qui est un terminal"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "deux @prec de suite"
|
||||
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr "%%guard est présent mais %%semantic_parser n'est pas spécifié"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "deux actions à la fin d'une même règle"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "conflit de type (`%s' `%s') pour l'action par défaut"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr "règle vide pour une catégorie typée et aucune action"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "entrée non valide: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#: src/reader.c:1587
|
||||
#, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "trop de symboles (jeton plus non terminaux); maximum %d"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "la grammaire n'a pas de règles"
|
||||
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr ""
|
||||
"le symbole %s est utilisé mais ce n'est pas un terminal et il ne possède pas "
|
||||
"de règle"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#: src/reader.c:1749
|
||||
#, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr "les jetons %s et %s se sont vus assigner le nombre %d"
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "les priorités pour %s et %s entrent en conflit"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "les valeurs d'association de %s et %s entrent en conflit"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr "le symbole de départ %s n'est pas défini"
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "le symbole de départ %s est un terminal"
|
||||
@@ -646,26 +646,29 @@ msgid "Useless rules:"
|
||||
msgstr "Règles inutiles:"
|
||||
|
||||
#: src/reduce.c:503
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d rule never reduced\n"
|
||||
msgid_plural "%d rules never reduced\n"
|
||||
msgstr[0] "%d règles jamais réduites\n"
|
||||
msgstr[0] "%d règle qui n'a jamais été réduite\n"
|
||||
msgstr[1] "%d règles qui n'ont jamais été réduites\n"
|
||||
|
||||
#: src/reduce.c:511
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless nonterminal"
|
||||
msgid_plural "%d useless nonterminals"
|
||||
msgstr[0] "%d catégories non productives%s"
|
||||
msgstr[0] "%d nonterminal inutilisable"
|
||||
msgstr[1] "%d nonterminals inutilisables"
|
||||
|
||||
#: src/reduce.c:517
|
||||
msgid " and "
|
||||
msgstr " et "
|
||||
|
||||
#: src/reduce.c:520
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless rule"
|
||||
msgid_plural "%d useless rules"
|
||||
msgstr[0] "%d règle(s) non productive(s)%s"
|
||||
msgstr[0] "%d règle inutilisable"
|
||||
msgstr[1] "%d règles inutilisables"
|
||||
|
||||
#: src/reduce.c:551
|
||||
#, c-format
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# Japanese message for GNU bison 1.28
|
||||
# Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
# Daisuke Yamashita <[email protected]>, 1999.
|
||||
# Japanese message for GNU bison 1.30f
|
||||
# Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
# Daisuke Yamashita <[email protected]>, 2001.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: GNU bison 1.28\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"PO-Revision-Date: 1999-09-28 21:10+0900\n"
|
||||
"Project-Id-Version: GNU bison 1.30f\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 2001-12-10 15:59+0900\n"
|
||||
"Last-Translator: Daisuke Yamashita <[email protected]>\n"
|
||||
"Language-Team: Japanese <[email protected]>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -14,22 +14,21 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: src/LR0.c:189
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "too many states (max %d)"
|
||||
msgstr "%s の数が多すぎます (最大 %d)"
|
||||
msgstr "状態が多すぎます (最大 %d)"
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr ""
|
||||
msgstr "不明なシステムエラー"
|
||||
|
||||
#: src/complain.c:150
|
||||
msgid "warning: "
|
||||
msgstr ""
|
||||
msgstr "警告: "
|
||||
|
||||
#: src/complain.c:238
|
||||
#, fuzzy
|
||||
msgid "fatal error: "
|
||||
msgstr "%s: 致命的エラー: "
|
||||
msgstr "致命的エラー: "
|
||||
|
||||
#: src/conflicts.c:44
|
||||
#, c-format
|
||||
@@ -49,26 +48,25 @@ msgid "an error"
|
||||
msgstr "エラー"
|
||||
|
||||
#: src/conflicts.c:302
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d shift/reduce conflict"
|
||||
msgid_plural "%d shift/reduce conflicts"
|
||||
msgstr[0] " %d シフト/還元衝突"
|
||||
msgstr[0] "%d シフト/還元衝突"
|
||||
|
||||
#: src/conflicts.c:309
|
||||
#, fuzzy
|
||||
msgid "and"
|
||||
msgstr " および"
|
||||
msgstr "および"
|
||||
|
||||
#: src/conflicts.c:315
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d reduce/reduce conflict"
|
||||
msgid_plural "%d reduce/reduce conflicts"
|
||||
msgstr[0] " %d 還元/還元衝突"
|
||||
msgstr[0] "%d 還元/還元衝突"
|
||||
|
||||
#: src/conflicts.c:340
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "State %d contains "
|
||||
msgstr "状態 %d が含むのは"
|
||||
msgstr "状態 %d が含むのは "
|
||||
|
||||
#. If invoked with `--yacc', use the output format specified by
|
||||
#. POSIX.
|
||||
@@ -89,20 +87,20 @@ msgstr " %d
|
||||
#: src/conflicts.c:398 src/reduce.c:508
|
||||
#, c-format
|
||||
msgid "%s contains "
|
||||
msgstr "%s には"
|
||||
msgstr "%s の中身は"
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#, fuzzy, c-format
|
||||
#: src/conflicts.c:412
|
||||
#, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] " %d シフト/還元衝突"
|
||||
msgstr[0] "本来 %d 個のシフト/還元衝突であるはずです\n"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[規則 %d を利用して還元 (%s)]\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -111,41 +109,43 @@ msgstr ""
|
||||
" $default\t規則 %d を利用して還元 (%s)\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr " %-4s\t規則 %d を利用して還元 (%s)\n"
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr " $default\t規則 %d を利用して還元 (%s)\n"
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr ""
|
||||
msgstr "ファイル `%s' を開けません"
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr ""
|
||||
msgstr "ファイルを閉じることができません"
|
||||
|
||||
#. Some efforts were made to ease the translators' task, please
|
||||
#. continue.
|
||||
#: src/getargs.c:84
|
||||
msgid "GNU bison generates parsers for LALR(1) grammars.\n"
|
||||
msgstr ""
|
||||
msgstr "GNU bison は LALR(1) 文法の構文解析器を生成します。\n"
|
||||
|
||||
#: src/getargs.c:88
|
||||
#, c-format
|
||||
msgid "Usage: %s [OPTION]... FILE\n"
|
||||
msgstr ""
|
||||
msgstr "使い方: %s [オプション]... ファイル\n"
|
||||
|
||||
#: src/getargs.c:92
|
||||
msgid ""
|
||||
"If a long option shows an argument as mandatory, then it is mandatory\n"
|
||||
"for the equivalent short option also. Similarly for optional arguments.\n"
|
||||
msgstr ""
|
||||
"ロングオプションで必須の引数が示されていれば、同じ意味のショートオプション\n"
|
||||
"でも同様に必須の引数となります。必須でない選択的引数でも同様です。\n"
|
||||
|
||||
#: src/getargs.c:98
|
||||
msgid ""
|
||||
@@ -154,6 +154,10 @@ msgid ""
|
||||
" -V, --version output version information and exit\n"
|
||||
" -y, --yacc emulate POSIX yacc\n"
|
||||
msgstr ""
|
||||
"操作モード:\n"
|
||||
" -h, --help この使い方を表示して終了する\n"
|
||||
" -V, --version バージョン情報を表示して終了する\n"
|
||||
" -y, --yacc POSIX yacc をエミュレイトする\n"
|
||||
|
||||
#: src/getargs.c:105
|
||||
msgid ""
|
||||
@@ -166,6 +170,14 @@ msgid ""
|
||||
" -n, --no-parser generate the tables only\n"
|
||||
" -k, --token-table include a table of token names\n"
|
||||
msgstr ""
|
||||
"構文解析器:\n"
|
||||
" -S, --skeleton=FILE 利用するスケルトンを指定する\n"
|
||||
" -t, --debug 構文解析のデバッグ用の手段\n"
|
||||
" --locations 計算結果位置を有効にする\n"
|
||||
" -p, --name-prefix=PREFIX PREFIX を外部シンボルとして先頭に挿入する\n"
|
||||
" -l, --no-lines `#line' ディレクティブを生成しない\n"
|
||||
" -n, --no-parser テーブルのみを生成する\n"
|
||||
" -k, --token-table トークン名のテーブルを含める\n"
|
||||
|
||||
#: src/getargs.c:117
|
||||
msgid ""
|
||||
@@ -177,53 +189,65 @@ msgid ""
|
||||
" -g, --graph also produce a VCG description of the "
|
||||
"automaton\n"
|
||||
msgstr ""
|
||||
"出力:\n"
|
||||
" -d, --defines ヘッダファイルも作成する\n"
|
||||
" -v, --verbose オートマトンの解説も作成する\n"
|
||||
" -b, --file-prefix=PREFIX 出力ファイルの PREFIX(接頭辞) を指定する\n"
|
||||
" -o, --output=FILE 出力先を FILE とする\n"
|
||||
" -g, --graph オートマトンの VCG 記述子も作成する\n"
|
||||
|
||||
#: src/getargs.c:127
|
||||
msgid "Report bugs to <[email protected]>.\n"
|
||||
msgstr ""
|
||||
msgstr "バグレポートは <[email protected]> まで。\n"
|
||||
|
||||
#. Some efforts were made to ease the translators' task, please
|
||||
#. continue.
|
||||
#: src/getargs.c:141
|
||||
#, c-format
|
||||
msgid "bison (GNU Bison) %s"
|
||||
msgstr ""
|
||||
msgstr "bison (GNU Bison) %s"
|
||||
|
||||
#: src/getargs.c:146
|
||||
msgid ""
|
||||
"Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.\n"
|
||||
msgstr ""
|
||||
"Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.\n"
|
||||
|
||||
#: src/getargs.c:150
|
||||
msgid ""
|
||||
"This is free software; see the source for copying conditions. There is NO\n"
|
||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||
msgstr ""
|
||||
"This is free software; see the source for copying conditions. There is NO\n"
|
||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||
"[参考訳 -- 法的効力は英文が適用されます]\n"
|
||||
"これはフリーソフトウェアです -- 複製についての条件はソースを見ましょう。\n"
|
||||
"一切の保証はありません -- 商業性や目的適合性についての保証すらありません。\n"
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr ""
|
||||
msgstr "`%s' は最早サポートされません"
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr ""
|
||||
msgstr "`%s --help' で詳細情報を参照してください\n"
|
||||
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: 文法ファイルが指定されていません\n"
|
||||
|
||||
#: src/getargs.c:250
|
||||
#, fuzzy, c-format
|
||||
#: src/getargs.c:258
|
||||
#, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: '%s' より後ろの余分な引数は無視されました\n"
|
||||
msgstr "%s: `%s' の後ろの余分な引数は無視されました\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#, fuzzy, c-format
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr "%s の数が多すぎます (最大 %d)"
|
||||
msgstr "goto の数が多すぎます (最大 %d)"
|
||||
|
||||
#: src/lex.c:76
|
||||
msgid "unexpected `/' found and ignored"
|
||||
@@ -234,7 +258,6 @@ msgid "unterminated comment"
|
||||
msgstr "閉じていないコメントです"
|
||||
|
||||
#: src/lex.c:137
|
||||
#, fuzzy
|
||||
msgid "unexpected end of file"
|
||||
msgstr "予期しないファイルの終端です"
|
||||
|
||||
@@ -272,17 +295,17 @@ msgstr "ʣ
|
||||
#: src/lex.c:667
|
||||
#, c-format
|
||||
msgid "`%s' supports no argument: %s"
|
||||
msgstr ""
|
||||
msgstr "`%s' は引数を受け付けません: %s"
|
||||
|
||||
#: src/lex.c:683
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "`%s' requires an argument"
|
||||
msgstr "%s: オプション `%s' は引数を要求します\n"
|
||||
msgstr "`%s' オプションは引数を要求します"
|
||||
|
||||
#: src/output.c:949
|
||||
#, fuzzy, c-format
|
||||
#: src/output.c:951
|
||||
#, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "最大テーブルサイズ (%s) を超えました"
|
||||
msgstr "最大テーブルサイズ (%d) を超えました"
|
||||
|
||||
#: src/print.c:39
|
||||
#, c-format
|
||||
@@ -323,51 +346,36 @@ msgid " %-4s\tgo to state %d\n"
|
||||
msgstr " %-4s\t状態 %d へ\n"
|
||||
|
||||
#: src/print.c:180
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "state %d"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"\n"
|
||||
"状態 %d\n"
|
||||
"\n"
|
||||
msgstr "状態 %d"
|
||||
|
||||
#. rule # : LHS -> RHS
|
||||
#: src/print.c:211
|
||||
#, fuzzy
|
||||
msgid "Grammar"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"文法\n"
|
||||
msgstr "文法"
|
||||
|
||||
#: src/print.c:212
|
||||
msgid "Number, Line, Rule"
|
||||
msgstr ""
|
||||
msgstr "番号, 行, 規則"
|
||||
|
||||
#: src/print.c:217
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid " %3d %3d %s ->"
|
||||
msgstr "規則 %-4d %s ->"
|
||||
msgstr " %3d %3d %s ->"
|
||||
|
||||
#: src/print.c:224
|
||||
msgid "empty"
|
||||
msgstr ""
|
||||
msgstr "空"
|
||||
|
||||
#. TERMINAL (type #) : rule #s terminal is on RHS
|
||||
#: src/print.c:231
|
||||
#, fuzzy
|
||||
msgid "Terminals, with rules where they appear"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"終端トークン、およびそこに現れた規則\n"
|
||||
"\n"
|
||||
msgstr "出現位置の規則による終端"
|
||||
|
||||
#: src/print.c:256
|
||||
#, fuzzy
|
||||
msgid "Nonterminals, with rules where they appear"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"非終端トークン、およびそこに現れた規則\n"
|
||||
"\n"
|
||||
msgstr "出現位置の規則による非終端"
|
||||
|
||||
#: src/print.c:282
|
||||
msgid " on left:"
|
||||
@@ -383,18 +391,18 @@ msgstr "
|
||||
#. obstack_sgrow (node_obstack, "\n");
|
||||
#.
|
||||
#: src/print_graph.c:146
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%-4s\terror (nonassociative)"
|
||||
msgstr " %-4s\tエラー (非結合)\n"
|
||||
msgstr "%-4s\tエラー (非結合)"
|
||||
|
||||
#.
|
||||
#. if (obstack_object_size (node_obstack) > node_output_size)
|
||||
#. obstack_sgrow (node_obstack, "\n");
|
||||
#.
|
||||
#: src/print_graph.c:161
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "$default\treduce using rule %d (%s)"
|
||||
msgstr " $default\t規則 %d を利用して還元 (%s)\n"
|
||||
msgstr "$default\t規則 %d を利用して還元 (%s)"
|
||||
|
||||
#: src/reader.c:89
|
||||
msgid " Skipping to next \\n"
|
||||
@@ -407,7 +415,7 @@ msgstr "
|
||||
|
||||
#: src/reader.c:142 src/reader.c:154
|
||||
msgid "invalid $ value"
|
||||
msgstr "無効な $ の値"
|
||||
msgstr "不適切な $ の値"
|
||||
|
||||
#: src/reader.c:180 src/reader.c:195
|
||||
msgid "unterminated string at end of file"
|
||||
@@ -418,9 +426,9 @@ msgid "unterminated string"
|
||||
msgstr "閉じられていない文字列"
|
||||
|
||||
#: src/reader.c:336 src/reader.c:400
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%s is invalid"
|
||||
msgstr "@%s は無効です"
|
||||
msgstr "%s は不適切です"
|
||||
|
||||
#: src/reader.c:376
|
||||
#, c-format
|
||||
@@ -428,9 +436,9 @@ msgid "$$ of `%s' has no declared type"
|
||||
msgstr "`%s' の $$ に宣言のない型があります"
|
||||
|
||||
#: src/reader.c:393
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "$%d of `%s' has no declared type"
|
||||
msgstr "`%s' の $%s に宣言のない型があります"
|
||||
msgstr "$%d 個の `%s' が宣言された型を持っていません"
|
||||
|
||||
#: src/reader.c:447
|
||||
msgid "unterminated `%{' definition"
|
||||
@@ -439,24 +447,24 @@ msgstr "`%{'
|
||||
#: src/reader.c:492 src/reader.c:607 src/reader.c:657
|
||||
#, c-format
|
||||
msgid "Premature EOF after %s"
|
||||
msgstr ""
|
||||
msgstr "%s の後ろに早くも EOF があります"
|
||||
|
||||
#: src/reader.c:509
|
||||
#, c-format
|
||||
msgid "symbol `%s' used more than once as a literal string"
|
||||
msgstr ""
|
||||
msgstr "シンボル `%s' はリテラル文字列として複数回使われました"
|
||||
|
||||
#: src/reader.c:512
|
||||
#, c-format
|
||||
msgid "symbol `%s' given more than one literal string"
|
||||
msgstr ""
|
||||
msgstr "シンボル `%s' は複数のリテラル文字列が与えられました"
|
||||
|
||||
#: src/reader.c:533 src/reader.c:676
|
||||
#, c-format
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "シンボル %s が再定義されました"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "%s の型が再定義されました"
|
||||
@@ -464,26 +472,26 @@ msgstr "%s
|
||||
#: src/reader.c:552
|
||||
#, c-format
|
||||
msgid "`%s' is invalid in %s"
|
||||
msgstr "%2$s 内の `%1$s' は無効です"
|
||||
msgstr "`%s' は %s 内では不適切です"
|
||||
|
||||
#: src/reader.c:570 src/reader.c:735
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "複数の %start が宣言されました"
|
||||
msgstr "%s が複数個宣言されました"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#, fuzzy, c-format
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "無効な %start が宣言されました"
|
||||
msgstr "%s の宣言が不適切です"
|
||||
|
||||
#: src/reader.c:592
|
||||
msgid "%type declaration has no <typename>"
|
||||
msgstr "%type 宣言に <タイプ名> がありません"
|
||||
|
||||
#: src/reader.c:627
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "invalid %%type declaration due to item: %s"
|
||||
msgstr "アイテムに与えられるべき %%type 宣言が無効です: `%s'"
|
||||
msgstr "アイテムの為の %%type 宣言が不適切です: %s"
|
||||
|
||||
#: src/reader.c:672
|
||||
#, c-format
|
||||
@@ -493,22 +501,22 @@ msgstr "%s
|
||||
#: src/reader.c:695
|
||||
#, c-format
|
||||
msgid "invalid text (%s) - number should be after identifier"
|
||||
msgstr "無効なテキスト (%s) - 数値は識別子の後ろにあるべきです"
|
||||
msgstr "不適切なテキスト (%s) - 数値は識別子の後ろにあるべきです"
|
||||
|
||||
#: src/reader.c:705
|
||||
#, c-format
|
||||
msgid "unexpected item: %s"
|
||||
msgstr "予期せぬアイテム: %s"
|
||||
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#, fuzzy, c-format
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "対応のない `{' です"
|
||||
msgstr "対応のない %s です"
|
||||
|
||||
#: src/reader.c:810
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "argument of %%expect is not an integer"
|
||||
msgstr "%expect の引数が整数値ではありません"
|
||||
msgstr "%%expect の引数が整数値ではありません"
|
||||
|
||||
#: src/reader.c:856
|
||||
#, c-format
|
||||
@@ -534,138 +542,125 @@ msgstr "ʸˡ
|
||||
msgid "unknown character: %s"
|
||||
msgstr "未知の文字: %s"
|
||||
|
||||
#: src/reader.c:1204
|
||||
#, fuzzy, c-format
|
||||
#: src/reader.c:1210
|
||||
#, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "閉じられていない %%guard 節です"
|
||||
msgstr "%guard 節が閉じられていません"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr "邪悪な規則: 初期化シンボルにコロン (:) が続いていません"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "文法は縦棒 (|) で始めます"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "%s に規則が与えられ、それはトークンとなります"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "@prec のもの二つが同列になっています"
|
||||
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr "%%guard がありますが %%semantic_parser が指定されていません"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "一つの規則の終りに二つの動作を指定しています"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "初期状態の動作では型 (`%s' `%s') が衝突します"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr "空の型付き非終端アイテム用規則であり、動作が起りません"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "無効な入力: %s"
|
||||
msgstr "不適切な入力: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#, fuzzy, c-format
|
||||
#: src/reader.c:1587
|
||||
#, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "シンボルが多すぎます (トークンと非終端アイテム) -- 最大 %s"
|
||||
msgstr "シンボルが多すぎます (トークン + 非終端アイテム) -- 最大 %d"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "入力した文法に規則が定義されていません"
|
||||
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr ""
|
||||
"シンボル %s が使われていますが、トークンとして定義されておらず、規則を持ちま"
|
||||
"せん"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#, fuzzy, c-format
|
||||
#: src/reader.c:1749
|
||||
#, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr "トークン %s と %s の双方が番号 %s に割り当てられました"
|
||||
msgstr "トークン %s と %s の双方が番号 %d に割り当てられました"
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "先行している %s と %s で競合が生じています"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "非結合値 %s と %s で競合が生じています"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr "開始シンボル %s は定義されていません"
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "開始シンボル %s はトークンです"
|
||||
|
||||
#: src/reduce.c:409
|
||||
#, fuzzy
|
||||
msgid "Useless nonterminals:"
|
||||
msgstr ""
|
||||
"不使用非終端子:\n"
|
||||
"\n"
|
||||
msgstr "無意味な非終端子:"
|
||||
|
||||
#: src/reduce.c:422
|
||||
#, fuzzy
|
||||
msgid "Terminals which are not used:"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"\n"
|
||||
"利用されない終端子:\n"
|
||||
"\n"
|
||||
msgstr "利用されない終端子:"
|
||||
|
||||
#: src/reduce.c:433
|
||||
#, fuzzy
|
||||
msgid "Useless rules:"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"\n"
|
||||
"不使用規則:\n"
|
||||
"\n"
|
||||
msgstr "無意味な規則:"
|
||||
|
||||
#: src/reduce.c:503
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d rule never reduced\n"
|
||||
msgid_plural "%d rules never reduced\n"
|
||||
msgstr[0] "%d 個の規則は決して還元されません\n"
|
||||
|
||||
#: src/reduce.c:511
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless nonterminal"
|
||||
msgid_plural "%d useless nonterminals"
|
||||
msgstr[0] "%d 個の不使用非終端子%.0s"
|
||||
msgstr[0] "%d 個の無意味な非終端子"
|
||||
|
||||
#: src/reduce.c:517
|
||||
msgid " and "
|
||||
msgstr "および"
|
||||
|
||||
#: src/reduce.c:520
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless rule"
|
||||
msgid_plural "%d useless rules"
|
||||
msgstr[0] "%d 個の不使用規則%.0s"
|
||||
msgstr[0] "%d 個の無意味な規則"
|
||||
|
||||
#: src/reduce.c:551
|
||||
#, c-format
|
||||
@@ -713,7 +708,7 @@ msgstr "%s:
|
||||
#: lib/getopt.c:804
|
||||
#, c-format
|
||||
msgid "%s: invalid option -- %c\n"
|
||||
msgstr "%s: 無効なオプション -- %c\n"
|
||||
msgstr "%s: 不適切なオプション -- %c\n"
|
||||
|
||||
#. 1003.2 specifies the format of this message.
|
||||
#: lib/getopt.c:834 lib/getopt.c:964
|
||||
@@ -734,9 +729,8 @@ msgstr "%s:
|
||||
#. If XALLOC_FAIL_FUNC is NULL, or does return, display this message
|
||||
#. before exiting when memory is exhausted. Goes through gettext.
|
||||
#: lib/obstack.c:494 lib/obstack.c:497 lib/xmalloc.c:66
|
||||
#, fuzzy
|
||||
msgid "memory exhausted"
|
||||
msgstr "%s: メモリを使い果たしました\n"
|
||||
msgstr "メモリを使い果たしました"
|
||||
|
||||
#. Get translations for open and closing quotation marks.
|
||||
#.
|
||||
@@ -754,11 +748,11 @@ msgstr "%s:
|
||||
#. U+2019 (RIGHT SINGLE QUOTATION MARK), respectively.
|
||||
#: lib/quotearg.c:274
|
||||
msgid "`"
|
||||
msgstr ""
|
||||
msgstr "`"
|
||||
|
||||
#: lib/quotearg.c:275
|
||||
msgid "'"
|
||||
msgstr ""
|
||||
msgstr "'"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
@@ -887,10 +881,10 @@ msgstr ""
|
||||
#~ msgstr "対応のない右ブレース (`}') です"
|
||||
|
||||
#~ msgid "$%s is invalid"
|
||||
#~ msgstr "$%s は無効です"
|
||||
#~ msgstr "$%s は不適切です"
|
||||
|
||||
#~ msgid "invalid @-construct"
|
||||
#~ msgstr "無効な @-コンストラクトです"
|
||||
#~ msgstr "不適切な @-コンストラクトです"
|
||||
|
||||
#~ msgid "ill-formed %type declaration"
|
||||
#~ msgstr "邪悪な %type 宣言です"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bison 1.25\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 1996-08-27 15:34 MET DST\n"
|
||||
"Last-Translator: Erick Branderhorst <[email protected]>\n"
|
||||
"Language-Team: Dutch <[email protected]>\n"
|
||||
@@ -18,7 +18,7 @@ msgstr ""
|
||||
msgid "too many states (max %d)"
|
||||
msgstr ""
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr ""
|
||||
|
||||
@@ -91,18 +91,18 @@ msgstr " %d reduceer/reduceer"
|
||||
msgid "%s contains "
|
||||
msgstr "%s bevat"
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#: src/conflicts.c:412
|
||||
#, fuzzy, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] " %d verschuif/reduceer conflicten"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[reduceer gebruikt regel %d (%s)]\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -111,22 +111,22 @@ msgstr ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr ""
|
||||
|
||||
@@ -200,27 +200,27 @@ msgid ""
|
||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr ""
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: geen grammatica bestand gegeven\n"
|
||||
|
||||
#: src/getargs.c:250
|
||||
#: src/getargs.c:258
|
||||
#, fuzzy, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: extra argumenten genegeerd na '%s'\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr ""
|
||||
@@ -279,7 +279,7 @@ msgstr ""
|
||||
msgid "`%s' requires an argument"
|
||||
msgstr "%s: optie `%s' vereist een argument\n"
|
||||
|
||||
#: src/output.c:949
|
||||
#: src/output.c:951
|
||||
#, fuzzy, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "maximale tabel grootte (%s) overschreden"
|
||||
@@ -458,7 +458,7 @@ msgstr ""
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "symbool %s opnieuw gedefinieerd"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "type herdeclaratie voor %s"
|
||||
@@ -473,7 +473,7 @@ msgstr "`%s' is onjuist in %s"
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "meerdere %start declaraties"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, fuzzy, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "onjuiste %start declaratie"
|
||||
@@ -502,7 +502,7 @@ msgstr "onjuiste tekst (%s) - nummer hoort na de identifier"
|
||||
msgid "unexpected item: %s"
|
||||
msgstr "onbekend item: %s"
|
||||
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, fuzzy, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "niet overeenkomstige `{'"
|
||||
@@ -536,89 +536,89 @@ msgstr "geen invoer grammatica"
|
||||
msgid "unknown character: %s"
|
||||
msgstr "onbekend karakter: %s"
|
||||
|
||||
#: src/reader.c:1204
|
||||
#: src/reader.c:1210
|
||||
#, fuzzy, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "niet getermineerde %%guard voorwaarde"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr ""
|
||||
"slecht geformuleerde regel: initieel symbool niet gevolgd door dubbele punt"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "grammatica start met een verticale bar"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "regel geven voor %s, welke een teken is"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "twee @prec's in een regel"
|
||||
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr "%%guard aanwezig maar %%semantic_parser niet gespecificeerd"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "twee akties aan het einde van een regel"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "type clash (`%s' `%s') bij standaard aktie"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr "lege regel voor getypte niet terminal, en geen aktie"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "ongeldige invoer: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#: src/reader.c:1587
|
||||
#, fuzzy, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "te veel symbolen (tekens plus nietterminals); maximum %s"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "geen regels voor invoer grammatica"
|
||||
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr ""
|
||||
"symbool %s is gebruikt, maar is niet gedefinieerd als een teken en\n"
|
||||
"heeft geen regels"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#: src/reader.c:1749
|
||||
#, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr ""
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "conflictuerende precedentein voor %s en %s"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "conflictuerende associatieve waarden voor %s en %s"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr ""
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "het start symbool %s is een token"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bison 1.29\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 2001-09-09 13:49+04:00\n"
|
||||
"Last-Translator: Dmitry S. Sivachenko <[email protected]>\n"
|
||||
"Language-Team: Russian <[email protected]>\n"
|
||||
@@ -18,7 +18,7 @@ msgstr ""
|
||||
msgid "too many states (max %d)"
|
||||
msgstr "ÓÌÉÛËÏÍ ÍÎÏÇÏ ÓÏÓÔÏÑÎÉÊ (ÍÁËÓÉÍÁÌØÎÏ %d)"
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr "îÅÉÚ×ÅÓÔÎÁÑ ÓÉÓÔÅÍÎÁÑ ÏÛÉÂËÁ"
|
||||
|
||||
@@ -91,18 +91,18 @@ msgstr " %d
|
||||
msgid "%s contains "
|
||||
msgstr "%s ÓÏÄÅÒÖÉÔ "
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#: src/conflicts.c:412
|
||||
#, fuzzy, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] " %d ËÏÎÆÌÉËÔÏ× ÓÄ×ÉÇÁ/×Ù×ÏÄÁ"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)]\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -111,22 +111,22 @@ msgstr ""
|
||||
" $default\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr " %-4s\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr " $default\t×Ù×ÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÁ×ÉÌÁ %d (%s)\n"
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr "ÎÅ ÕÄÁÅÔÓÑ ÏÔËÒÙÔØ ÆÁÊÌ `%s'"
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr "ÎÅ ÕÄÁÅÔÓÑ ÚÁËÒÙÔØ ÆÁÊÌ"
|
||||
|
||||
@@ -229,27 +229,27 @@ msgstr ""
|
||||
"ðòéçïäîïóôé\n"
|
||||
"äìñ ïðòåäåìåîîïê ãåìé.\n"
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr "`%s' ÂÏÌØÛÅ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ"
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr "éÓÐÏÌØÚÕÊÔÅ `%s --help' ÄÌÑ ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÉÎÆÏÒÍÁÃÉÉ.\n"
|
||||
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: ÎÅ ÚÁÄÁÎ ÆÁÊÌ Ó ÇÒÁÍÍÁÔÉËÏÊ\n"
|
||||
|
||||
#: src/getargs.c:250
|
||||
#: src/getargs.c:258
|
||||
#, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: ÌÉÛÎÉÅ ÁÒÇÕÍÅÎÔÙ ÐÏÓÌÅ `%s' ÉÇÎÏÒÉÒÏ×ÁÎÙ\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr "ÓÌÉÛËÏÍ ÍÎÏÇÏ goto (ÍÁËÓÉÍÁÌØÎÏ %d)"
|
||||
@@ -307,7 +307,7 @@ msgstr ""
|
||||
msgid "`%s' requires an argument"
|
||||
msgstr "%s: ËÌÀÞ `%s' ÄÏÌÖÅÎ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ Ó ÁÒÇÕÍÅÎÔÏÍ\n"
|
||||
|
||||
#: src/output.c:949
|
||||
#: src/output.c:951
|
||||
#, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "ÐÒÅ×ÙÛÅÎ ÍÁËÓÉÍÁÌØÎÙÊ ÒÁÚÍÅÒ ÔÁÂÌÉÃÙ (%d)"
|
||||
@@ -469,7 +469,7 @@ msgstr ""
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "ÐÏ×ÔÏÒÎÏÅ ÏÐÒÅÄÅÌÅÎÉÅ ÓÉÍ×ÏÌÁ %s"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "ÐÏ×ÔÏÒÎÏÅ ÏÐÉÓÁÎÉÅ ÔÉÐÁ ÄÌÑ %s"
|
||||
@@ -484,7 +484,7 @@ msgstr "`%s'
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "ÍÎÏÖÅÓÔ×ÅÎÎÏÅ ÏÐÉÓÁÎÉÅ %s"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "ÎÅ×ÅÒÎÏÅ ÏÐÉÓÁÎÉÅ %s"
|
||||
@@ -513,7 +513,7 @@ msgstr "
|
||||
msgid "unexpected item: %s"
|
||||
msgstr "ÎÅÏÖÉÄÁÎÎÙÊ ÜÌÅÍÅÎÔ: %s"
|
||||
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "ÎÅÐÁÒÎÁÑ %s"
|
||||
@@ -547,87 +547,87 @@ msgstr "
|
||||
msgid "unknown character: %s"
|
||||
msgstr "ÎÅÉÚ×ÅÓÔÎÙÊ ÓÉÍ×ÏÌ: %s"
|
||||
|
||||
#: src/reader.c:1204
|
||||
#: src/reader.c:1210
|
||||
#, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "ÎÅÚÁËÏÎÞÅÎÎÙÊ ÏÐÅÒÁÔÏÒ %guard"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr "ÎÅ×ÅÒÎÏÅ ÐÒÁ×ÉÌÏ: Ä×ÏÅÔÏÞÉÅ ÎÅ ÓÌÅÄÕÅÔ ÚÁ ÎÁÞÁÌØÎÙÍ ÓÉÍ×ÏÌÏÍ"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "ÇÒÁÍÍÁÔÉËÁ ÎÁÞÉÎÁÅÔÓÑ Ó ×ÅÒÔÉËÁÌØÎÏÊ ÞÅÒÔÙ"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "ÐÒÁ×ÉÌÏ ÚÁÄÁÎÏ ÄÌÑ %s, ËÏÔÏÒÙÊ Ñ×ÌÑÅÔÓÑ ÌÅËÓÅÍÏÊ"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "Ä×Á @prec ÐÏÄÒÑÄ"
|
||||
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr "%%guard ÐÒÉÓÕÔÓÔ×ÕÅÔ, Á %%semantic_parser ÎÅ ÚÁÄÁÎ"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "Ä×Á ÄÅÊÓÔ×ÉÑ × ËÏÎÃÅ ÏÄÎÏÇÏ ÐÒÁ×ÉÌÁ"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "ËÏÎÆÌÉËÔ ÔÉÐÏ× (`%s' `%s') ÎÁ ÄÅÊÓÔ×ÉÉ ÐÏ ÕÍÏÌÞÁÎÉÀ"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr ""
|
||||
"ÐÕÓÔÏÅ ÐÒÁ×ÉÌÏ ÄÌÑ ÔÉÐÉÚÉÒÏ×ÁÎÎÏÇÏ ÎÅÔÅÒÍÉÎÁÌØÎÏÇÏ ÓÉÍ×ÏÌÁ, É ÎÅÔ ÄÅÊÓÔ×ÉÑ"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "ÎÅ×ÅÒÎÙÅ ×ÈÏÄÎÙÅ ÄÁÎÎÙÅ: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#: src/reader.c:1587
|
||||
#, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "ÓÌÉÛËÏÍ ÍÎÏÇÏ ÓÉÍ×ÏÌÏ× (ÌÅËÓÅÍÙ ÐÌÀÓ ÎÅÔÅÒÍÉÎÁÌÙ); ÍÁËÓÉÍÁÌØÎÏ %d"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "ÏÔÓÕÔÓÔ×ÕÀÔ ÐÒÁ×ÉÌÁ ×Ï ×ÈÏÄÎÏÊ ÇÒÁÍÍÁÔÉËÅ"
|
||||
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr "ÓÉÍ×ÏÌ %s ÉÓÐÏÌØÚÕÅÔÓÑ, ÎÏ ÎÅ ÏÐÒÅÄÅÌÅÎ ËÁË ÌÅËÓÅÍÁ É ÎÅ ÉÍÅÅÔ ÐÒÁ×ÉÌ"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#: src/reader.c:1749
|
||||
#, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr "ÏÂÅÉÍ ÌÅËÓÅÍÁÍ %s É %s ÐÒÉÓ×ÏÅÎ ÎÏÍÅÒ %d"
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "ÐÒÏÔÉ×ÏÒÅÞÉ×ÙÅ ÐÒÉÏÒÉÔÅÔÙ ÄÌÑ %s É %s"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "ÐÒÏÔÉ×ÏÒÅÞÉ×ÙÅ ÚÎÁÞÅÎÉÑ ÁÓÓÏÃÉÁÔÉ×ÎÏÓÔÉ ÄÌÑ %s É %s"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr "ÎÁÞÁÌØÎÙÊ ÓÉÍ×ÏÌ %s ÎÅÏÐÒÅÄÅÌÅÎ"
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "ÎÁÞÁÌØÎÙÊ ÓÉÍ×ÏÌ %s Ñ×ÌÑÅÔÓÑ ÌÅËÓÅÍÏÊ"
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bison 1.30e\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"PO-Revision-Date: 2001-11-27 11:16+0100\n"
|
||||
"Project-Id-Version: bison 1.30f\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 2001-12-06 22:33+0100\n"
|
||||
"Last-Translator: Göran Uddeborg <[email protected]>\n"
|
||||
"Language-Team: Swedish <[email protected]>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -20,7 +20,7 @@ msgstr ""
|
||||
msgid "too many states (max %d)"
|
||||
msgstr "för många tillstånd (max %d)"
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr "Okänt systemfel"
|
||||
|
||||
@@ -94,19 +94,19 @@ msgstr " %d reducera/reducera"
|
||||
msgid "%s contains "
|
||||
msgstr "%s innehåller "
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#: src/conflicts.c:412
|
||||
#, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] "förväntade %d skifta/reducerakonflikt\n"
|
||||
msgstr[1] "förväntade %d skifta/reducerakonflikter\n"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[reducera med regel %d (%s)]\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -115,22 +115,22 @@ msgstr ""
|
||||
" $standard\treducera med regel %d (%s)\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr " %-4s\treducera med regel %d (%s)\n"
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr " $standard\treducera med regel %d (%s)\n"
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr "kan inte öppna filen \"%s\""
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr "kan inte stänga fil"
|
||||
|
||||
@@ -231,27 +231,27 @@ msgstr ""
|
||||
"finns INGEN garanti, inte ens för SÄLJBARHET eller LÄMPLIGHET FÖR ETT\n"
|
||||
"SPECIELLT ÄNDAMÅL.\n"
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr "\"%s\" stöds inte längre"
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr "Försök med \"%s --help\" för mer information.\n"
|
||||
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: ingen grammatikfil angiven\n"
|
||||
|
||||
#: src/getargs.c:250
|
||||
#: src/getargs.c:258
|
||||
#, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: extra argument ignorerade efter \"%s\"\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr "för många goto (max %d)"
|
||||
@@ -309,7 +309,7 @@ msgstr "\"%s\" st
|
||||
msgid "`%s' requires an argument"
|
||||
msgstr "\"%s\" behöver ett argument"
|
||||
|
||||
#: src/output.c:949
|
||||
#: src/output.c:951
|
||||
#, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "maximal tabellstorlek (%d) överskriden"
|
||||
@@ -471,7 +471,7 @@ msgstr "symbolen \"%s\" har f
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "symbolen %s omdefinierad"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "typen omdeklarerad för %s"
|
||||
@@ -486,7 +486,7 @@ msgstr "\"%s\"
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "flera %s-deklarationer"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "felaktig %s-deklaration"
|
||||
@@ -515,7 +515,7 @@ msgstr "felaktig text (%s) - tal skulle f
|
||||
msgid "unexpected item: %s"
|
||||
msgstr "oväntat objekt: %s"
|
||||
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "ensam %s"
|
||||
@@ -549,88 +549,88 @@ msgstr "ingen ingrammatik"
|
||||
msgid "unknown character: %s"
|
||||
msgstr "okänt tecken: %s"
|
||||
|
||||
#: src/reader.c:1204
|
||||
#: src/reader.c:1210
|
||||
#, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "oavlutad %guard-sats"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr "felskriven regel: första symbolen följs inte av ett kolon"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "grammatiken startar med ett vertikalt streck"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "regel given för %s, som är ett element"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "två @prec i rad"
|
||||
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr "%%guard finns men %%semantic_parser är inte angiven"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "två åtgärder vid slutet av en regel"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "typkonflikt (\"%s\" \"%s\") för standardåtgärd"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr "tom regel för typad icketerminal, och ingen åtgärd"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "felaktig indata: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#: src/reader.c:1587
|
||||
#, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "för många symboler (element plus icketerminaler); max %d"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "inga regler i ingrammatiken"
|
||||
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr ""
|
||||
"symbolen %s används, men är inte definierad som ett element och har inga "
|
||||
"regler"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#: src/reader.c:1749
|
||||
#, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr "elementen %s och %s har båda fått nummer %d"
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "motstridiga precedenser mellan %s och %s"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "motstridiga assoc-värden mellan %s och %s"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr "startsymbolen %s är odefinierad"
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "startsymbolen %s är ett element"
|
||||
@@ -648,29 +648,29 @@ msgid "Useless rules:"
|
||||
msgstr "Oanvändbara regler:"
|
||||
|
||||
#: src/reduce.c:503
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d rule never reduced\n"
|
||||
msgid_plural "%d rules never reduced\n"
|
||||
msgstr[0] "%d regler reduceras aldrig\n"
|
||||
msgstr[0] "%d regel reduceras aldrig\n"
|
||||
msgstr[1] "%d regler reduceras aldrig\n"
|
||||
|
||||
# Jag har anmält att det är fel att anta att "s" är en universell pluraländelse.
|
||||
# Jag föreslog också att de använder ngettext istället.
|
||||
# "Vad göras skall är redan gjort."
|
||||
#: src/reduce.c:511
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless nonterminal"
|
||||
msgid_plural "%d useless nonterminals"
|
||||
msgstr[0] "%d oanvändbara icketerminaler%.0s"
|
||||
msgstr[0] "%d oanvändbar icketerminal"
|
||||
msgstr[1] "%d oanvändbara icketerminaler"
|
||||
|
||||
#: src/reduce.c:517
|
||||
msgid " and "
|
||||
msgstr " och "
|
||||
|
||||
#: src/reduce.c:520
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless rule"
|
||||
msgid_plural "%d useless rules"
|
||||
msgstr[0] "%d oanvändbara regler%.0s"
|
||||
msgstr[0] "%d oanvändbar regel"
|
||||
msgstr[1] "%d oanvändbara regler"
|
||||
|
||||
#: src/reduce.c:551
|
||||
#, c-format
|
||||
@@ -766,36 +766,3 @@ msgstr "\""
|
||||
#: lib/quotearg.c:275
|
||||
msgid "'"
|
||||
msgstr "\""
|
||||
|
||||
#~ msgid "%s: internal error: %s\n"
|
||||
#~ msgstr "%s: internt fel: %s\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Variables\n"
|
||||
#~ "---------\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Variabler\n"
|
||||
#~ "---------\n"
|
||||
#~ "\n"
|
||||
|
||||
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||
#~ msgstr "Värde Sprec Sassoc Tagg\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Rules\n"
|
||||
#~ "-----\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Regler\n"
|
||||
#~ "------\n"
|
||||
#~ "\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Rules interpreted\n"
|
||||
#~ "-----------------\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Tolkade regler\n"
|
||||
#~ "--------------\n"
|
||||
#~ "\n"
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: bison 1.30e\n"
|
||||
"POT-Creation-Date: 2001-12-05 12:47+0100\n"
|
||||
"PO-Revision-Date: 2001-11-27 11:37GMT+2\n"
|
||||
"Last-Translator: Altuð Bayram <[email protected]>\n"
|
||||
"Project-Id-Version: bison 1.30f\n"
|
||||
"POT-Creation-Date: 2002-01-08 18:44+0100\n"
|
||||
"PO-Revision-Date: 2001-12-06 12:09+300\n"
|
||||
"Last-Translator: Altug Bayram <[email protected]>\n"
|
||||
"Language-Team: Turkish <[email protected]>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=ISO-8859-9\n"
|
||||
@@ -19,7 +19,7 @@ msgstr ""
|
||||
msgid "too many states (max %d)"
|
||||
msgstr "çok fazla durum (en fazla %d)"
|
||||
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:96
|
||||
#: lib/error.c:128 lib/error.c:156 src/complain.c:99
|
||||
msgid "Unknown system error"
|
||||
msgstr "Bilinmeyen sistem hatasý"
|
||||
|
||||
@@ -82,7 +82,7 @@ msgstr "
|
||||
#: src/conflicts.c:389
|
||||
#, c-format
|
||||
msgid " %d shift/reduce"
|
||||
msgstr " %d öteleme/indirgeme"
|
||||
msgstr " %d shift/reduce"
|
||||
|
||||
#: src/conflicts.c:393
|
||||
#, c-format
|
||||
@@ -94,19 +94,19 @@ msgstr " %d indirgeme/indirgeme"
|
||||
msgid "%s contains "
|
||||
msgstr "%s içerir"
|
||||
|
||||
#: src/conflicts.c:405
|
||||
#: src/conflicts.c:412
|
||||
#, c-format
|
||||
msgid "expected %d shift/reduce conflict\n"
|
||||
msgid_plural "expected %d shift/reduce conflicts\n"
|
||||
msgstr[0] "beklenen %d öteleme/indirgeme çeliþkisi\n"
|
||||
msgstr[1] "beklenen %d öteleme/indirgeme çeliþkisi\n"
|
||||
|
||||
#: src/conflicts.c:457 src/conflicts.c:534
|
||||
#: src/conflicts.c:463 src/conflicts.c:540
|
||||
#, c-format
|
||||
msgid " %-4s\t[reduce using rule %d (%s)]\n"
|
||||
msgstr " %-4s\t[indirgeme kural %d (%s)'i kullanýyor]\n"
|
||||
|
||||
#: src/conflicts.c:461 src/print.c:154
|
||||
#: src/conflicts.c:467 src/print.c:154
|
||||
#, c-format
|
||||
msgid ""
|
||||
" $default\treduce using rule %d (%s)\n"
|
||||
@@ -115,22 +115,22 @@ msgstr ""
|
||||
" $default\tindirgeme kural %d (%s)'i kullanýyor\n"
|
||||
"\n"
|
||||
|
||||
#: src/conflicts.c:515 src/conflicts.c:528
|
||||
#: src/conflicts.c:521 src/conflicts.c:534
|
||||
#, c-format
|
||||
msgid " %-4s\treduce using rule %d (%s)\n"
|
||||
msgstr " %-4s\tindirgeme kural %d (%s)'i kullanýyor\n"
|
||||
|
||||
#: src/conflicts.c:544
|
||||
#: src/conflicts.c:550
|
||||
#, c-format
|
||||
msgid " $default\treduce using rule %d (%s)\n"
|
||||
msgstr " $default\tindirgeme kural %d (%s)'i kullanýyor\n"
|
||||
|
||||
#: src/files.c:144
|
||||
#: src/files.c:150
|
||||
#, c-format
|
||||
msgid "cannot open file `%s'"
|
||||
msgstr "`%s' dosyasý açýlamadý"
|
||||
|
||||
#: src/files.c:163
|
||||
#: src/files.c:169
|
||||
msgid "cannot close file"
|
||||
msgstr "dosya kapatýlamýyor"
|
||||
|
||||
@@ -197,7 +197,7 @@ msgid ""
|
||||
" -g, --graph also produce a VCG description of the "
|
||||
"automaton\n"
|
||||
msgstr ""
|
||||
"Output:\n"
|
||||
"Çýktý:\n"
|
||||
" -d, --defines bir baþlýk dosyasý da üretir\n"
|
||||
" -v, --verbose otomatýn bir açýklamasýný da üretir\n"
|
||||
" -b, --file-prefix=PREFIX çýktý dosyalarý için bir ÖNEK belirtir\n"
|
||||
@@ -233,27 +233,27 @@ msgstr ""
|
||||
"Hiçbir garantisi yoktur; hatta SATILABÝLÝRLÝÐÝ veya ÞAHSÝ KULLANIMINIZA\n"
|
||||
"UYGUNLUÐU için bile garanti verilmez.\n"
|
||||
|
||||
#: src/getargs.c:215 src/lex.c:694
|
||||
#: src/getargs.c:223 src/lex.c:694
|
||||
#, c-format
|
||||
msgid "`%s' is no longer supported"
|
||||
msgstr "`%s' artýk desteklenmeyecek"
|
||||
|
||||
#: src/getargs.c:239
|
||||
#: src/getargs.c:247
|
||||
#, c-format
|
||||
msgid "Try `%s --help' for more information.\n"
|
||||
msgstr "Daha fazla bilgi için `%s --help' yazýn.\n"
|
||||
|
||||
#: src/getargs.c:246
|
||||
#: src/getargs.c:254
|
||||
#, c-format
|
||||
msgid "%s: no grammar file given\n"
|
||||
msgstr "%s: gramer dosyasý verilmemiþ\n"
|
||||
|
||||
#: src/getargs.c:250
|
||||
#: src/getargs.c:258
|
||||
#, c-format
|
||||
msgid "%s: extra arguments ignored after `%s'\n"
|
||||
msgstr "%s: '%s' den sonraki argümanlar yoksayýldý\n"
|
||||
|
||||
#: src/lalr.c:255
|
||||
#: src/lalr.c:256
|
||||
#, c-format
|
||||
msgid "too many gotos (max %d)"
|
||||
msgstr "gotos çok fazla (en fazla %d)"
|
||||
@@ -311,7 +311,7 @@ msgstr "`%s' arg
|
||||
msgid "`%s' requires an argument"
|
||||
msgstr "`%s' bir argüman gerektirir"
|
||||
|
||||
#: src/output.c:949
|
||||
#: src/output.c:951
|
||||
#, c-format
|
||||
msgid "maximum table size (%d) exceeded"
|
||||
msgstr "en büyük tablo uzunluðu (%d) aþýldý"
|
||||
@@ -447,7 +447,7 @@ msgstr "`%s''in $$'
|
||||
#: src/reader.c:393
|
||||
#, c-format
|
||||
msgid "$%d of `%s' has no declared type"
|
||||
msgstr "`%d''in $%s'i bildirilmiþ tip deðil"
|
||||
msgstr "`%2$s''in %1$d'i bildirilmiþ tip deðil"
|
||||
|
||||
#: src/reader.c:447
|
||||
msgid "unterminated `%{' definition"
|
||||
@@ -473,7 +473,7 @@ msgstr "simge `%s' bir harfiyen uyumlu dizgi gibi birden fazla verilmi
|
||||
msgid "symbol %s redefined"
|
||||
msgstr "%s simgesi yeniden tanýmlandý"
|
||||
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1292
|
||||
#: src/reader.c:543 src/reader.c:622 src/reader.c:683 src/reader.c:1298
|
||||
#, c-format
|
||||
msgid "type redeclaration for %s"
|
||||
msgstr "%s için yeniden tip bildirimi"
|
||||
@@ -488,7 +488,7 @@ msgstr "`%s' %s i
|
||||
msgid "multiple %s declarations"
|
||||
msgstr "çoklu %s bildirimleri"
|
||||
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1270
|
||||
#: src/reader.c:572 src/reader.c:914 src/reader.c:939 src/reader.c:1276
|
||||
#, c-format
|
||||
msgid "invalid %s declaration"
|
||||
msgstr "geçersiz %s bildirimi"
|
||||
@@ -517,7 +517,7 @@ msgstr "ge
|
||||
msgid "unexpected item: %s"
|
||||
msgstr "beklenmeyen öðe: %s"
|
||||
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1181
|
||||
#: src/reader.c:778 src/reader.c:1110 src/reader.c:1187
|
||||
#, c-format
|
||||
msgid "unmatched %s"
|
||||
msgstr "eþlenemeyen %s"
|
||||
@@ -551,88 +551,88 @@ msgstr "girdi grameri yok"
|
||||
msgid "unknown character: %s"
|
||||
msgstr "bilinmeyen karakter: %s"
|
||||
|
||||
#: src/reader.c:1204
|
||||
#: src/reader.c:1210
|
||||
#, c-format
|
||||
msgid "unterminated %guard clause"
|
||||
msgstr "sonlandýrýlmamýþ %guard yantümcesi"
|
||||
|
||||
#: src/reader.c:1357
|
||||
#: src/reader.c:1363
|
||||
msgid "ill-formed rule: initial symbol not followed by colon"
|
||||
msgstr "kötü-biçemli kural: baþlangýç simgesini takip eden \":\" yok"
|
||||
|
||||
#: src/reader.c:1364
|
||||
#: src/reader.c:1370
|
||||
msgid "grammar starts with vertical bar"
|
||||
msgstr "gramer düþey çubuk ile baþlýyor"
|
||||
|
||||
#: src/reader.c:1392
|
||||
#: src/reader.c:1398
|
||||
#, c-format
|
||||
msgid "rule given for %s, which is a token"
|
||||
msgstr "bir andaç olan %s için verilen kural"
|
||||
|
||||
#: src/reader.c:1492
|
||||
#: src/reader.c:1498
|
||||
msgid "two @prec's in a row"
|
||||
msgstr "bir satýrda iki @prec"
|
||||
|
||||
#: src/reader.c:1500
|
||||
#: src/reader.c:1506
|
||||
#, c-format
|
||||
msgid "%%guard present but %%semantic_parser not specified"
|
||||
msgstr "%%guard sunulmuþ fakat %%semantic_parser belirlenmemiþ"
|
||||
|
||||
#: src/reader.c:1509
|
||||
#: src/reader.c:1515
|
||||
msgid "two actions at end of one rule"
|
||||
msgstr "bir kuralýn sonunda iki eylem"
|
||||
|
||||
#: src/reader.c:1523
|
||||
#: src/reader.c:1529
|
||||
#, c-format
|
||||
msgid "type clash (`%s' `%s') on default action"
|
||||
msgstr "öntanýmlý eylem üzerinde (`%s' `%s') tip çatýþmasý"
|
||||
|
||||
#: src/reader.c:1529
|
||||
#: src/reader.c:1535
|
||||
msgid "empty rule for typed nonterminal, and no action"
|
||||
msgstr ""
|
||||
"Tipli deðiþken simge için boþ kural tanýmlanmýþ, ve eylem belirtilmemiþ"
|
||||
|
||||
#: src/reader.c:1573
|
||||
#: src/reader.c:1579
|
||||
#, c-format
|
||||
msgid "invalid input: %s"
|
||||
msgstr "geçersiz girdi: %s"
|
||||
|
||||
#: src/reader.c:1581
|
||||
#: src/reader.c:1587
|
||||
#, c-format
|
||||
msgid "too many symbols (tokens plus nonterminals); maximum %d"
|
||||
msgstr "çok fazla simge var (andaçlar ve deðiþken simgeler); en fazla %d"
|
||||
|
||||
#: src/reader.c:1584
|
||||
#: src/reader.c:1590
|
||||
msgid "no rules in the input grammar"
|
||||
msgstr "girdi grameri içinde kurallar yok"
|
||||
|
||||
#: src/reader.c:1608
|
||||
#: src/reader.c:1614
|
||||
#, c-format
|
||||
msgid "symbol %s is used, but is not defined as a token and has no rules"
|
||||
msgstr ""
|
||||
"simge %s kullanýldý, fakat bir andaç olarak tanýmlanmadý ve kurallarý yok"
|
||||
|
||||
#: src/reader.c:1743
|
||||
#: src/reader.c:1749
|
||||
#, c-format
|
||||
msgid "tokens %s and %s both assigned number %d"
|
||||
msgstr "%s ve %s andaçlarýnýn her ikisi %d sayýsýna atandý"
|
||||
|
||||
#: src/reader.c:1796
|
||||
#: src/reader.c:1802
|
||||
#, c-format
|
||||
msgid "conflicting precedences for %s and %s"
|
||||
msgstr "%s ve %s için çeliþen öncelikler"
|
||||
|
||||
#: src/reader.c:1808
|
||||
#: src/reader.c:1814
|
||||
#, c-format
|
||||
msgid "conflicting assoc values for %s and %s"
|
||||
msgstr "%s ve %s için çeliþen birleþmeli deðerler"
|
||||
|
||||
#: src/reader.c:1847
|
||||
#: src/reader.c:1853
|
||||
#, c-format
|
||||
msgid "the start symbol %s is undefined"
|
||||
msgstr "baþlangýç simgesi %s tanýmlanmadý"
|
||||
|
||||
#: src/reader.c:1849
|
||||
#: src/reader.c:1855
|
||||
#, c-format
|
||||
msgid "the start symbol %s is a token"
|
||||
msgstr "baþlangýç simgesi %s bir andaçtýr"
|
||||
@@ -650,26 +650,29 @@ msgid "Useless rules:"
|
||||
msgstr "Yararsýz kurallar:"
|
||||
|
||||
#: src/reduce.c:503
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d rule never reduced\n"
|
||||
msgid_plural "%d rules never reduced\n"
|
||||
msgstr[0] "%d kural asla indirgenmedi\n"
|
||||
msgstr[1] "%d kural asla indirgenmedi\n"
|
||||
|
||||
#: src/reduce.c:511
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless nonterminal"
|
||||
msgid_plural "%d useless nonterminals"
|
||||
msgstr[0] "%d yararsýz deðiþken simge%s"
|
||||
msgstr[0] "%d yararsýz deðiþken simge"
|
||||
msgstr[1] "%d yararsýz deðiþken simge%s"
|
||||
|
||||
#: src/reduce.c:517
|
||||
msgid " and "
|
||||
msgstr " ve "
|
||||
|
||||
#: src/reduce.c:520
|
||||
#, fuzzy, c-format
|
||||
#, c-format
|
||||
msgid "%d useless rule"
|
||||
msgid_plural "%d useless rules"
|
||||
msgstr[0] "%d yararsýz kural%s"
|
||||
msgstr[0] "%d yararsýz kural"
|
||||
msgstr[1] "%d yararsýz kural%s"
|
||||
|
||||
#: src/reduce.c:551
|
||||
#, c-format
|
||||
@@ -762,36 +765,3 @@ msgstr "`"
|
||||
#: lib/quotearg.c:275
|
||||
msgid "'"
|
||||
msgstr "'"
|
||||
|
||||
#~ msgid "%s: internal error: %s\n"
|
||||
#~ msgstr "%s: iç hata: %s\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Variables\n"
|
||||
#~ "---------\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Deðiþkenler\n"
|
||||
#~ "-----------\n"
|
||||
#~ "\n"
|
||||
|
||||
#~ msgid "Value Sprec Sassoc Tag\n"
|
||||
#~ msgstr "Deðer Söncel Sbirleþ Etiket\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Rules\n"
|
||||
#~ "-----\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Kurallar\n"
|
||||
#~ "--------\n"
|
||||
#~ "\n"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "Rules interpreted\n"
|
||||
#~ "-----------------\n"
|
||||
#~ "\n"
|
||||
#~ msgstr ""
|
||||
#~ "Kurallar yorumlandý\n"
|
||||
#~ "-------------------\n"
|
||||
#~ "\n"
|
||||
|
||||
+4
-4
@@ -1,4 +1,4 @@
|
||||
## Copyright 2001 Free Software Foundation, Inc.
|
||||
## Copyright 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License as published by
|
||||
@@ -22,14 +22,14 @@ DEFS = @DEFS@ \
|
||||
-DBISON_HAIRY=\"$(pkgdatadir)/bison.hairy\" \
|
||||
-DLOCALEDIR=\"$(datadir)/locale\"
|
||||
|
||||
CFLAGS = @CFLAGS@ $(WARNING_CFLAGS)
|
||||
CFLAGS = @CFLAGS@ $(WARNING_CFLAGS) $(WERROR_CFLAGS)
|
||||
|
||||
# libintl.h in is build/intl, intl/libgettext.h in src/,
|
||||
# config.h in build/.
|
||||
INCLUDES = -I$(top_builddir)/intl \
|
||||
-I$(top_builddir) \
|
||||
-I$(top_srcdir)/lib \
|
||||
-I$(top_srcdir)
|
||||
-I$(top_srcdir)/intl \
|
||||
-I$(top_srcdir)/lib
|
||||
|
||||
LDADD = $(INTLLIBS) ../lib/libbison.a
|
||||
|
||||
|
||||
+16
-14
@@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.5a from Makefile.am.
|
||||
# Makefile.in generated by automake 1.5c from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
@@ -13,7 +13,6 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@@ -48,6 +47,7 @@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = @program_transform_name@
|
||||
@@ -97,6 +97,7 @@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
WARNING_CFLAGS = @WARNING_CFLAGS@
|
||||
WERROR_CFLAGS = @WERROR_CFLAGS@
|
||||
am__include = @am__include@
|
||||
am__quote = @am__quote@
|
||||
install_sh = @install_sh@
|
||||
@@ -109,14 +110,14 @@ DEFS = @DEFS@ \
|
||||
-DLOCALEDIR=\"$(datadir)/locale\"
|
||||
|
||||
|
||||
CFLAGS = @CFLAGS@ $(WARNING_CFLAGS)
|
||||
CFLAGS = @CFLAGS@ $(WARNING_CFLAGS) $(WERROR_CFLAGS)
|
||||
|
||||
# libintl.h in is build/intl, intl/libgettext.h in src/,
|
||||
# config.h in build/.
|
||||
INCLUDES = -I$(top_builddir)/intl \
|
||||
-I$(top_builddir) \
|
||||
-I$(top_srcdir)/lib \
|
||||
-I$(top_srcdir)
|
||||
-I$(top_srcdir)/intl \
|
||||
-I$(top_srcdir)/lib
|
||||
|
||||
|
||||
LDADD = $(INTLLIBS) ../lib/libbison.a
|
||||
@@ -329,14 +330,15 @@ print_graph_.$(OBJEXT) reader_.$(OBJEXT) reduce_.$(OBJEXT) \
|
||||
state_.$(OBJEXT) symtab_.$(OBJEXT) vcg_.$(OBJEXT) vmsgetargs_.$(OBJEXT) \
|
||||
warshall_.$(OBJEXT) : $(ANSI2KNR)
|
||||
uninstall-info-am:
|
||||
pkgdataDATA_INSTALL = $(INSTALL_DATA)
|
||||
install-pkgdataDATA: $(pkgdata_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
|
||||
@list='$(pkgdata_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
||||
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \
|
||||
echo " $(pkgdataDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \
|
||||
$(pkgdataDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \
|
||||
done
|
||||
|
||||
uninstall-pkgdataDATA:
|
||||
@@ -350,26 +352,26 @@ uninstall-pkgdataDATA:
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
mkid -fID $$unique $(LISP)
|
||||
mkid -fID $$unique
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| etags $(ETAGS_ARGS) $$tags $$unique $(LISP)
|
||||
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|
||||
|| etags $(ETAGS_ARGS) $$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
@@ -378,7 +380,6 @@ GTAGS:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
top_distdir = ..
|
||||
@@ -386,7 +387,7 @@ distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
$(mkinstalldirs) "$(distdir)/$$dir"; \
|
||||
@@ -418,6 +419,7 @@ install-am: all-am
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
+57
-38
@@ -1,7 +1,7 @@
|
||||
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
|
||||
#line
|
||||
/* Skeleton output parser for bison,
|
||||
Copyright 1984, 1989, 1990, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright (C) 1984, 1989, 1990, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -32,35 +32,31 @@
|
||||
infringing on user name space. This should be done even for local
|
||||
variables, as they might otherwise be expanded by user macros.
|
||||
There are some unavoidable exceptions within include files to
|
||||
define necessary C library symbols; they are noted "INFRINGES ON
|
||||
define necessary library symbols; they are noted "INFRINGES ON
|
||||
USER NAME SPACE" below. */
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define YYSTD(x) std::x
|
||||
#else
|
||||
# define YYSTD(x) x
|
||||
#endif
|
||||
|
||||
#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE)
|
||||
|
||||
/* The parser invokes alloca or malloc; define the necessary symbols. */
|
||||
|
||||
# if YYSTACK_USE_ALLOCA
|
||||
# define YYSTACK_ALLOC alloca
|
||||
# define YYSIZE_T size_t
|
||||
# define YYSIZE_T YYSTD (size_t)
|
||||
# else
|
||||
# ifndef YYSTACK_USE_ALLOCA
|
||||
# if defined (alloca) || defined (_ALLOCA_H)
|
||||
# define YYSTACK_ALLOC alloca
|
||||
# define YYSIZE_T size_t
|
||||
# define YYSIZE_T YYSTD (size_t)
|
||||
# else
|
||||
# if defined (__GNUC__) || defined (_AIX) || defined (__hpux)
|
||||
# ifdef __GNUC__
|
||||
# define YYSTACK_ALLOC __builtin_alloca
|
||||
# endif
|
||||
# ifndef __GNUC__
|
||||
# ifdef _AIX
|
||||
# pragma alloca
|
||||
# endif
|
||||
# if defined (__sgi) || defined (__sparc__) || defined (__sparc) || defined (__sun)
|
||||
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSTACK_ALLOC alloca
|
||||
# define YYSIZE_T size_t
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
@@ -69,12 +65,17 @@
|
||||
/* Pacify GCC's `empty if-body' warning. */
|
||||
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
|
||||
# else
|
||||
# define YYSTACK_ALLOC malloc
|
||||
# define YYSTACK_FREE(Ptr) free (Ptr)
|
||||
# if defined (__STDC__) || defined (__cplusplus)
|
||||
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSIZE_T size_t
|
||||
# ifdef __cplusplus
|
||||
# include <cstdlib> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSIZE_T std::size_t
|
||||
# else
|
||||
# ifdef __STDC__
|
||||
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSIZE_T size_t
|
||||
# endif
|
||||
# endif
|
||||
# define YYSTACK_ALLOC YYSTD (malloc)
|
||||
# define YYSTACK_FREE YYSTD (free)
|
||||
# endif
|
||||
|
||||
/* A type that is properly aligned for any stack member. */
|
||||
@@ -128,9 +129,16 @@ union yyalloc
|
||||
#if ! defined (YYSIZE_T) && defined (size_t)
|
||||
# define YYSIZE_T size_t
|
||||
#endif
|
||||
#if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))
|
||||
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSIZE_T size_t
|
||||
#if ! defined (YYSIZE_T)
|
||||
# ifdef __cplusplus
|
||||
# include <cstddef> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSIZE_T std::size_t
|
||||
# else
|
||||
# ifdef __STDC__
|
||||
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSIZE_T size_t
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#if ! defined (YYSIZE_T)
|
||||
# define YYSIZE_T unsigned int
|
||||
@@ -206,11 +214,20 @@ while (0)
|
||||
|
||||
/* Enable debugging if requested. */
|
||||
#if YYDEBUG
|
||||
# include <stdio.h>
|
||||
|
||||
# ifndef YYFPRINTF
|
||||
# ifdef __cplusplus
|
||||
# include <cstdio> /* INFRINGES ON USER NAME SPACE */
|
||||
# else
|
||||
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
|
||||
# endif
|
||||
# define YYFPRINTF YYSTD (fprintf)
|
||||
# endif
|
||||
|
||||
# define YYDPRINTF(Args) \
|
||||
do { \
|
||||
if (yydebug) \
|
||||
fprintf Args; \
|
||||
YYFPRINTF Args; \
|
||||
} while (0)
|
||||
/* Nonzero means print parse trace. [The following comment makes no
|
||||
sense to me. Could someone clarify it? --akim] Since this is
|
||||
@@ -595,13 +612,14 @@ yybackup:
|
||||
which are defined only if `YYDEBUG' is set. */
|
||||
if (yydebug)
|
||||
{
|
||||
fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
|
||||
YYFPRINTF (stderr, "Next token is %d (%s",
|
||||
yychar, yytname[yychar1]);
|
||||
/* Give the individual parser a way to print the precise
|
||||
meaning of a token, for further debugging info. */
|
||||
# ifdef YYPRINT
|
||||
YYPRINT (stderr, yychar, yylval);
|
||||
# endif
|
||||
fprintf (stderr, ")\n");
|
||||
YYFPRINTF (stderr, ")\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -633,7 +651,8 @@ yybackup:
|
||||
YYACCEPT;
|
||||
|
||||
/* Shift the lookahead token. */
|
||||
YYDPRINTF ((stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]));
|
||||
YYDPRINTF ((stderr, "Shifting token %d (%s), ",
|
||||
yychar, yytname[yychar1]));
|
||||
|
||||
/* Discard the token being shifted unless it is eof. */
|
||||
if (yychar != YYEOF)
|
||||
@@ -694,13 +713,13 @@ yyreduce:
|
||||
{
|
||||
int yyi;
|
||||
|
||||
fprintf (stderr, "Reducing via rule %d (line %d), ",
|
||||
yyn, yyrline[yyn]);
|
||||
YYFPRINTF (stderr, "Reducing via rule %d (line %d), ",
|
||||
yyn, yyrline[yyn]);
|
||||
|
||||
/* Print the symbols being reduced, and their result. */
|
||||
for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++)
|
||||
fprintf (stderr, "%s ", yytname[yyrhs[yyi]]);
|
||||
fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
|
||||
YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
|
||||
YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]);
|
||||
}
|
||||
#endif
|
||||
%% actions /* The action file replaces this line. */
|
||||
@@ -716,10 +735,10 @@ yyreduce:
|
||||
if (yydebug)
|
||||
{
|
||||
short *yyssp1 = yyss - 1;
|
||||
fprintf (stderr, "state stack now");
|
||||
YYFPRINTF (stderr, "state stack now");
|
||||
while (yyssp1 != yyssp)
|
||||
fprintf (stderr, " %d", *++yyssp1);
|
||||
fprintf (stderr, "\n");
|
||||
YYFPRINTF (stderr, " %d", *++yyssp1);
|
||||
YYFPRINTF (stderr, "\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -861,10 +880,10 @@ yyerrpop:
|
||||
if (yydebug)
|
||||
{
|
||||
short *yyssp1 = yyss - 1;
|
||||
fprintf (stderr, "Error: state stack now");
|
||||
YYFPRINTF (stderr, "Error: state stack now");
|
||||
while (yyssp1 != yyssp)
|
||||
fprintf (stderr, " %d", *++yyssp1);
|
||||
fprintf (stderr, "\n");
|
||||
YYFPRINTF (stderr, " %d", *++yyssp1);
|
||||
YYFPRINTF (stderr, "\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
+3
-3
@@ -41,6 +41,9 @@
|
||||
void exit ();
|
||||
#endif
|
||||
|
||||
/* To get error_one_per_line. */
|
||||
#include "error.h"
|
||||
|
||||
#include "complain.h"
|
||||
|
||||
#ifndef HAVE_DECL_STRERROR_R
|
||||
@@ -106,9 +109,6 @@ unsigned int warn_message_count;
|
||||
/* This variable is incremented each time `complain' is called. */
|
||||
unsigned int complain_message_count;
|
||||
|
||||
/* Sometimes we want to have at most one error per line. This
|
||||
variable controls whether this mode is selected or not. */
|
||||
int error_one_per_line;
|
||||
|
||||
/*--------------------------------.
|
||||
| Report a warning, and proceed. |
|
||||
|
||||
@@ -56,10 +56,6 @@ extern unsigned int warn_message_count;
|
||||
/* This variable is incremented each time `complain' is called. */
|
||||
extern unsigned int complain_message_count;
|
||||
|
||||
/* Sometimes we want to have at most one error per line. This
|
||||
variable controls whether this mode is selected or not. */
|
||||
extern int error_one_per_line;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
+12
-6
@@ -276,7 +276,7 @@ count_rr_conflicts (int state)
|
||||
int count = 0;
|
||||
int j;
|
||||
for (j = m; j < n; j++)
|
||||
if (BITISSET (LA (m), j))
|
||||
if (BITISSET (LA (j), i))
|
||||
count++;
|
||||
|
||||
if (count >= 2)
|
||||
@@ -401,7 +401,14 @@ conflicts_print (void)
|
||||
|
||||
if (expected_conflicts != -1 && !src_ok)
|
||||
{
|
||||
complain_message_count++;
|
||||
/* FIXME: BIG ATTROCIOUS HACK. For flames, complaints and so
|
||||
on, see Bruno Haible. GNU Gettext's plural.y's %expect is
|
||||
wrong, and newer Bison reject it. But then, Bruno will be
|
||||
overwhelmed by bug reports, until a fixed Gettext is
|
||||
released. So for the 1.3x generation only, we leave a puke
|
||||
puke hack. */
|
||||
if (!strsuffix (infile, "plural.y"))
|
||||
complain_message_count++;
|
||||
fprintf (stderr, ngettext ("expected %d shift/reduce conflict\n",
|
||||
"expected %d shift/reduce conflicts\n",
|
||||
expected_conflicts),
|
||||
@@ -414,7 +421,6 @@ void
|
||||
print_reductions (FILE *out, int state)
|
||||
{
|
||||
int i;
|
||||
int j;
|
||||
int m;
|
||||
int n;
|
||||
shifts *shiftp;
|
||||
@@ -463,8 +469,6 @@ print_reductions (FILE *out, int state)
|
||||
}
|
||||
else if (n - m >= 1)
|
||||
{
|
||||
int k;
|
||||
|
||||
int cmax = 0;
|
||||
int default_LA = -1;
|
||||
int default_rule = 0;
|
||||
@@ -473,6 +477,7 @@ print_reductions (FILE *out, int state)
|
||||
for (i = m; i < n; i++)
|
||||
{
|
||||
int count = 0;
|
||||
int j, k;
|
||||
|
||||
for (k = 0; k < tokensetsize; ++k)
|
||||
lookaheadset[k] = LA (i)[k] & ~shiftset[k];
|
||||
@@ -501,12 +506,13 @@ print_reductions (FILE *out, int state)
|
||||
|
||||
for (i = 0; i < ntokens; i++)
|
||||
{
|
||||
int j;
|
||||
int defaulted = 0;
|
||||
int count = BITISSET (shiftset, i);
|
||||
|
||||
for (j = m; j < n; j++)
|
||||
{
|
||||
if (BITISSET (LA (m), j))
|
||||
if (BITISSET (LA (j), i))
|
||||
{
|
||||
if (count == 0)
|
||||
{
|
||||
|
||||
+109
-107
@@ -1,5 +1,6 @@
|
||||
/* Open and close files for bison,
|
||||
Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright 1984, 1986, 1989, 1992, 2000, 2001, 2002
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Bison, the GNU Compiler Compiler.
|
||||
|
||||
@@ -26,6 +27,11 @@
|
||||
#include "error.h"
|
||||
#include "complain.h"
|
||||
|
||||
/* From basename.c. Almost a lie, as it returns a char *. */
|
||||
const char *base_name PARAMS ((char const *name));
|
||||
/* From xstrndup.c. */
|
||||
char *xstrndup PARAMS ((const char *s, size_t n));
|
||||
|
||||
FILE *finput = NULL;
|
||||
|
||||
struct obstack action_obstack;
|
||||
@@ -45,7 +51,7 @@ char *spec_defines_file = NULL; /* for --defines. */
|
||||
char *infile = NULL;
|
||||
char *attrsfile = NULL;
|
||||
|
||||
static char *base_name = NULL;
|
||||
static char *full_base_name = NULL;
|
||||
static char *short_base_name = NULL;
|
||||
|
||||
/* C source file extension (the parser source). */
|
||||
@@ -58,7 +64,7 @@ const char *header_extension = NULL;
|
||||
| Is SUFFIX ending STRING? |
|
||||
`--------------------------*/
|
||||
|
||||
static int
|
||||
int
|
||||
strsuffix (const char *string, const char *suffix)
|
||||
{
|
||||
size_t string_len = strlen (string);
|
||||
@@ -112,10 +118,10 @@ compute_header_macro (void)
|
||||
{
|
||||
macro_name = XMALLOC (char,
|
||||
strlen (prefix) +
|
||||
strlen (base_name) +
|
||||
strlen (full_base_name) +
|
||||
strlen (header_extension) + 1);
|
||||
cp = stpcpy (macro_name, prefix);
|
||||
cp = stpcpy (cp, base_name);
|
||||
cp = stpcpy (cp, full_base_name);
|
||||
cp = stpcpy (cp, header_extension);
|
||||
}
|
||||
|
||||
@@ -274,27 +280,6 @@ tr (const char *in, char from, char to)
|
||||
return (temp);
|
||||
}
|
||||
|
||||
/* Gets the extension index in FILENAME. Returns 0 if fails to
|
||||
find an extension. */
|
||||
static int
|
||||
get_extension_index (const char *filename)
|
||||
{
|
||||
int len;
|
||||
|
||||
len = strlen (filename);
|
||||
|
||||
if (filename[len-- - 1] == '.')
|
||||
return (0);
|
||||
|
||||
while ((len > 0) && (filename[len - 1] != '.'))
|
||||
if (filename[len - 1] == '/')
|
||||
return (0);
|
||||
else
|
||||
len--;
|
||||
|
||||
return (len - 1);
|
||||
}
|
||||
|
||||
/* Computes extensions from the grammar file extension. */
|
||||
static void
|
||||
compute_exts_from_gf (const char *ext)
|
||||
@@ -317,14 +302,61 @@ compute_exts_from_src (const char *ext)
|
||||
header_extension = tr (header_extension, 'C', 'H');
|
||||
}
|
||||
|
||||
|
||||
/* Decompose FILENAME in four parts: *BASE, *TAB, and *EXT, the fourth
|
||||
part, (the directory) is ranging from FILENAME to the char before
|
||||
*BASE, so we don't need an additional parameter.
|
||||
|
||||
*EXT points to the last period in the basename, or NULL if none.
|
||||
|
||||
If there is no *EXT, *TAB is NULL. Otherwise, *TAB points to
|
||||
`.tab' or `_tab' if present right before *EXT, or is NULL. *TAB
|
||||
cannot be equal to *BASE.
|
||||
|
||||
None are allocated, they are simply pointers to parts of FILENAME.
|
||||
Examples:
|
||||
|
||||
'/tmp/foo.tab.c' -> *BASE = 'foo.tab.c', *TAB = '.tab.c', *EXT =
|
||||
'.c'
|
||||
|
||||
'foo.c' -> *BASE = 'foo.c', *TAB = NULL, *EXT = '.c'
|
||||
|
||||
'tab.c' -> *BASE = 'tab.c', *TAB = NULL, *EXT = '.c'
|
||||
|
||||
'.tab.c' -> *BASE = '.tab.c', *TAB = NULL, *EXT = '.c'
|
||||
|
||||
'foo.tab' -> *BASE = 'foo.tab', *TAB = NULL, *EXT = '.tab'
|
||||
|
||||
'foo_tab' -> *BASE = 'foo_tab', *TAB = NULL, *EXT = NULL
|
||||
|
||||
'foo' -> *BASE = 'foo', *TAB = NULL, *EXT = NULL. */
|
||||
|
||||
static void
|
||||
filename_split (const char *filename,
|
||||
const char **base, const char **tab, const char **ext)
|
||||
{
|
||||
*base = base_name (filename);
|
||||
|
||||
/* Look for the extension, i.e., look for the last dot. */
|
||||
*ext = strrchr (*base, '.');
|
||||
*tab = NULL;
|
||||
|
||||
/* If there is an exentension, check if there is a `.tab' part right
|
||||
before. */
|
||||
if (*ext
|
||||
&& (*ext - *base) > (int) strlen (".tab")
|
||||
&& (!strncmp (*ext - strlen (".tab"), ".tab", strlen (".tab"))
|
||||
|| !strncmp (*ext - strlen ("_tab"), "_tab", strlen ("_tab"))))
|
||||
*tab = *ext - strlen (".tab");
|
||||
}
|
||||
|
||||
|
||||
/* FIXME: Should use xstrndup. */
|
||||
|
||||
static void
|
||||
compute_base_names (void)
|
||||
{
|
||||
size_t base_length;
|
||||
size_t short_base_length;
|
||||
size_t ext_index;
|
||||
const char *base, *tab, *ext;
|
||||
|
||||
/* If --output=foo.c was specified (SPEC_OUTFILE == foo.c),
|
||||
BASE_NAME and SHORT_BASE_NAME are `foo'.
|
||||
@@ -336,94 +368,63 @@ compute_base_names (void)
|
||||
files, remove the ".c" or ".tab.c" suffix. */
|
||||
if (spec_outfile)
|
||||
{
|
||||
#ifdef MSDOS
|
||||
strlwr (spec_outfile);
|
||||
#endif /* MSDOS */
|
||||
/* BASE_LENGTH includes ".tab" but not ".c". */
|
||||
base_length = strlen (spec_outfile);
|
||||
filename_split (spec_outfile, &base, &tab, &ext);
|
||||
|
||||
ext_index = get_extension_index (spec_outfile);
|
||||
/* If the initial segment of extension contains 'c' or a 'C', I assume
|
||||
that it is a C or C++ source file. */
|
||||
if (ext_index)
|
||||
ext_index =
|
||||
(strspn (spec_outfile + ext_index + 1, "cC")) ? ext_index : 0;
|
||||
if (ext_index)
|
||||
{
|
||||
base_length -= strlen (spec_outfile + ext_index);
|
||||
compute_exts_from_src (spec_outfile + ext_index);
|
||||
}
|
||||
/* The full base name goes up the EXT, excluding it. */
|
||||
full_base_name =
|
||||
xstrndup (spec_outfile,
|
||||
(strlen (spec_outfile) - (ext ? strlen (ext) : 0)));
|
||||
/* The short base name goes up to TAB, excluding it. */
|
||||
short_base_name =
|
||||
xstrndup (spec_outfile,
|
||||
(strlen (spec_outfile)
|
||||
- (tab ? strlen (tab) : (ext ? strlen (ext) : 0))));
|
||||
|
||||
base_name = strndup (spec_outfile, base_length);
|
||||
/* SHORT_BASE_LENGTH includes neither ".tab" nor ".c". */
|
||||
short_base_length = base_length;
|
||||
if (strsuffix (base_name, ".tab") || strsuffix (base_name, "_tab"))
|
||||
short_base_length -= 4;
|
||||
short_base_name = strndup (spec_outfile, short_base_length);
|
||||
|
||||
return;
|
||||
if (ext)
|
||||
compute_exts_from_src (ext);
|
||||
}
|
||||
|
||||
/* If --file-prefix=foo was specified, BASE_NAME and SHORT_BASE_NAME
|
||||
are `foo'.
|
||||
/* If --file-prefix=foo was specified, FULL_BASE_NAME = `foo.tab'
|
||||
and SHORT_BASE_NAME = `foo'.
|
||||
|
||||
Construct names from it. */
|
||||
if (spec_file_prefix)
|
||||
else
|
||||
{
|
||||
#ifdef MSDOS
|
||||
strlwr (spec_file_prefix);
|
||||
#endif /* MSDOS */
|
||||
short_base_name = xstrdup (spec_file_prefix);
|
||||
base_name = XMALLOC (char,
|
||||
strlen (short_base_name) + strlen (EXT_TAB) + 1);
|
||||
stpcpy (stpcpy (base_name, short_base_name), EXT_TAB);
|
||||
if (spec_file_prefix)
|
||||
{
|
||||
/* If --file-prefix=foo was specified, SHORT_BASE_NAME =
|
||||
`foo'. */
|
||||
short_base_name = xstrdup (spec_file_prefix);
|
||||
}
|
||||
else if (yacc_flag)
|
||||
{
|
||||
/* If --yacc, then the output is `y.tab.c'. */
|
||||
short_base_name = xstrdup ("y");
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Otherwise, the short base name is computed from the input
|
||||
grammar: `foo.yy' => `foo'. */
|
||||
filename_split (infile, &base, &tab, &ext);
|
||||
short_base_name =
|
||||
xstrndup (infile,
|
||||
(strlen (infile) - (ext ? strlen (ext) : 0)));
|
||||
}
|
||||
|
||||
/* Computes the extensions from the garmmar file name. */
|
||||
ext_index = get_extension_index (infile);
|
||||
/* If the initial segment of extension contains a 'y' or a 'Y', I assume
|
||||
that it is a yacc or bison grammar file. */
|
||||
if (ext_index)
|
||||
ext_index = (strspn (infile + ext_index + 1, "yY")) ? ext_index : 0;
|
||||
if (ext_index)
|
||||
compute_exts_from_gf (infile + ext_index);
|
||||
/* In these cases, always append `.tab'. */
|
||||
full_base_name = XMALLOC (char,
|
||||
strlen (short_base_name)
|
||||
+ strlen (EXT_TAB) + 1);
|
||||
stpcpy (stpcpy (full_base_name, short_base_name), EXT_TAB);
|
||||
|
||||
return;
|
||||
/* Computes the extensions from the grammar file name. */
|
||||
filename_split (infile, &base, &tab, &ext);
|
||||
if (ext)
|
||||
compute_exts_from_gf (ext);
|
||||
}
|
||||
|
||||
/* If neither -o nor --file-prefix were specified, and the input
|
||||
file is foo.y, BASE_NAME is `foo.tab', and SHORT_BASE_NAME is
|
||||
`foo'.
|
||||
|
||||
If --yacc is used, do as if the input file was `y.y'. */
|
||||
{
|
||||
const char *name_base = yacc_flag ? "y.y" : infile;
|
||||
|
||||
/* BASE_LENGTH gets length of BASE_NAME, sans ".y" suffix if any. */
|
||||
|
||||
base_length = strlen (name_base);
|
||||
|
||||
ext_index = get_extension_index (name_base);
|
||||
/* If the initial segment of extension contains a 'y' or a 'Y', I assume
|
||||
that it is a yacc or bison grammar file. */
|
||||
if (ext_index)
|
||||
ext_index = (strspn (name_base + ext_index + 1, "yY")) ? ext_index : 0;
|
||||
if (ext_index)
|
||||
{
|
||||
base_length -= strlen (name_base + ext_index);
|
||||
compute_exts_from_gf (name_base + ext_index);
|
||||
}
|
||||
|
||||
short_base_length = base_length;
|
||||
short_base_name = strndup (name_base, short_base_length);
|
||||
|
||||
base_name = XMALLOC (char,
|
||||
strlen (short_base_name) + strlen (EXT_TAB) + 1);
|
||||
stpcpy (stpcpy (base_name, short_base_name), EXT_TAB);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-------------------------------------------------------.
|
||||
| Close the open files, compute the output files names. |
|
||||
`-------------------------------------------------------*/
|
||||
@@ -441,7 +442,7 @@ compute_output_file_names (void)
|
||||
|
||||
/* It the defines filename if not given, we create it. */
|
||||
if (!spec_defines_file)
|
||||
spec_defines_file = stringappend (base_name, header_extension);
|
||||
spec_defines_file = stringappend (full_base_name, header_extension);
|
||||
|
||||
/* It the graph filename if not given, we create it. */
|
||||
if (!spec_graph_file)
|
||||
@@ -498,7 +499,8 @@ output_files (void)
|
||||
if (spec_outfile)
|
||||
obstack_save (&table_obstack, spec_outfile);
|
||||
else
|
||||
obstack_save (&table_obstack, stringappend (base_name, src_extension));
|
||||
obstack_save (&table_obstack,
|
||||
stringappend (full_base_name, src_extension));
|
||||
obstack_free (&table_obstack, NULL);
|
||||
|
||||
/* Output the header file if wanted. */
|
||||
|
||||
+7
-3
@@ -1,7 +1,5 @@
|
||||
#ifndef FILES_H_
|
||||
# define FILES_H_
|
||||
/* File names and variables for bison,
|
||||
Copyright 1984, 1989, 2000 Free Software Foundation, Inc.
|
||||
Copyright 1984, 1989, 2000, 2002 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Bison, the GNU Compiler Compiler.
|
||||
|
||||
@@ -20,6 +18,9 @@
|
||||
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#ifndef FILES_H_
|
||||
# define FILES_H_
|
||||
|
||||
/* These two should be pathnames for opening the sample parser files.
|
||||
When bison is installed, they should be absolute pathnames.
|
||||
XPFILE1 and XPFILE2 normally come from config.h. */
|
||||
@@ -79,4 +80,7 @@ int xfclose PARAMS ((FILE *ptr));
|
||||
|
||||
const char *skeleton_find PARAMS ((const char *envvar,
|
||||
const char *skeleton_name));
|
||||
|
||||
int strsuffix PARAMS ((const char *string, const char *suffix));
|
||||
|
||||
#endif /* !FILES_H_ */
|
||||
|
||||
+13
-5
@@ -159,6 +159,14 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
|
||||
| Process the options. |
|
||||
`----------------------*/
|
||||
|
||||
/* Under DOS, there is no difference on the case. This can be
|
||||
troublesome when looking for `.tab' etc. */
|
||||
#ifdef MSDOS
|
||||
# define AS_FILE_NAME(File) (strlwr (File), (File))
|
||||
#else
|
||||
# define AS_FILE_NAME(File) (File)
|
||||
#endif
|
||||
|
||||
void
|
||||
getargs (int argc, char *argv[])
|
||||
{
|
||||
@@ -186,7 +194,7 @@ getargs (int argc, char *argv[])
|
||||
case 'g':
|
||||
/* Here, the -g and --graph=FILE options are differentiated. */
|
||||
graph_flag = 1;
|
||||
spec_graph_file = optarg;
|
||||
spec_graph_file = AS_FILE_NAME (optarg);
|
||||
break;
|
||||
|
||||
case 'v':
|
||||
@@ -194,13 +202,13 @@ getargs (int argc, char *argv[])
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
skeleton = optarg;
|
||||
skeleton = AS_FILE_NAME (optarg);
|
||||
break;
|
||||
|
||||
case 'd':
|
||||
/* Here, the -d and --defines options are differentiated. */
|
||||
defines_flag = 1;
|
||||
spec_defines_file = optarg;
|
||||
spec_defines_file = AS_FILE_NAME (optarg);
|
||||
break;
|
||||
|
||||
case 'l':
|
||||
@@ -224,11 +232,11 @@ getargs (int argc, char *argv[])
|
||||
break;
|
||||
|
||||
case 'o':
|
||||
spec_outfile = optarg;
|
||||
spec_outfile = AS_FILE_NAME (optarg);
|
||||
break;
|
||||
|
||||
case 'b':
|
||||
spec_file_prefix = optarg;
|
||||
spec_file_prefix = AS_FILE_NAME (optarg);
|
||||
break;
|
||||
|
||||
case 'p':
|
||||
|
||||
+19
-17
@@ -103,7 +103,7 @@ traverse (int i)
|
||||
break;
|
||||
|
||||
for (k = 0; k < size; ++k)
|
||||
F (i)[k] = F (j)[k];
|
||||
F (j)[k] = F (i)[k];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,16 +247,17 @@ set_goto_map (void)
|
||||
|
||||
ngotos = 0;
|
||||
for (sp = first_shift; sp; sp = sp->next)
|
||||
for (i = sp->nshifts - 1; i >= 0 && SHIFT_IS_GOTO (sp, i); --i)
|
||||
{
|
||||
symbol = state_table[sp->shifts[i]].accessing_symbol;
|
||||
if (sp->nshifts)
|
||||
for (i = sp->nshifts - 1; i >= 0 && SHIFT_IS_GOTO (sp, i); --i)
|
||||
{
|
||||
symbol = state_table[sp->shifts[i]].accessing_symbol;
|
||||
|
||||
if (ngotos == MAXSHORT)
|
||||
fatal (_("too many gotos (max %d)"), MAXSHORT);
|
||||
if (ngotos == MAXSHORT)
|
||||
fatal (_("too many gotos (max %d)"), MAXSHORT);
|
||||
|
||||
ngotos++;
|
||||
goto_map[symbol]++;
|
||||
}
|
||||
ngotos++;
|
||||
goto_map[symbol]++;
|
||||
}
|
||||
|
||||
k = 0;
|
||||
for (i = ntokens; i < nsyms; i++)
|
||||
@@ -277,15 +278,16 @@ set_goto_map (void)
|
||||
for (sp = first_shift; sp; sp = sp->next)
|
||||
{
|
||||
state1 = sp->number;
|
||||
for (i = sp->nshifts - 1; i >= 0 && SHIFT_IS_GOTO (sp, i); --i)
|
||||
{
|
||||
state2 = sp->shifts[i];
|
||||
symbol = state_table[state2].accessing_symbol;
|
||||
if (sp->nshifts)
|
||||
for (i = sp->nshifts - 1; i >= 0 && SHIFT_IS_GOTO (sp, i); --i)
|
||||
{
|
||||
state2 = sp->shifts[i];
|
||||
symbol = state_table[state2].accessing_symbol;
|
||||
|
||||
k = temp_map[symbol]++;
|
||||
from_state[k] = state1;
|
||||
to_state[k] = state2;
|
||||
}
|
||||
k = temp_map[symbol]++;
|
||||
from_state[k] = state1;
|
||||
to_state[k] = state2;
|
||||
}
|
||||
}
|
||||
|
||||
XFREE (temp_map + ntokens);
|
||||
|
||||
+43
-45
@@ -46,70 +46,68 @@ nullable_print (FILE *out)
|
||||
void
|
||||
set_nullable (void)
|
||||
{
|
||||
short *r;
|
||||
int ruleno;
|
||||
short *s1;
|
||||
short *s2;
|
||||
shorts *p;
|
||||
|
||||
short *squeue;
|
||||
short *rcount;
|
||||
shorts **rsets;
|
||||
shorts *relts;
|
||||
short *squeue = XCALLOC (short, nvars);
|
||||
short *rcount = XCALLOC (short, nrules + 1);
|
||||
/* RITEM contains all the rules, including useless productions.
|
||||
Hence we must allocate room for useless nonterminals too. */
|
||||
shorts **rsets = XCALLOC (shorts *, nvars) - ntokens;
|
||||
/* This is said to be more elements than we actually use.
|
||||
Supposedly nitems - nrules is enough. But why take the risk? */
|
||||
shorts *relts = XCALLOC (shorts, nitems + nvars + 1);
|
||||
|
||||
if (trace_flag)
|
||||
fprintf (stderr, "Entering set_nullable\n");
|
||||
|
||||
nullable = XCALLOC (char, nvars) - ntokens;
|
||||
|
||||
squeue = XCALLOC (short, nvars);
|
||||
s1 = s2 = squeue;
|
||||
|
||||
rcount = XCALLOC (short, nrules + 1);
|
||||
|
||||
/* RITEM contains all the rules, including useless productions.
|
||||
Hence we must allocate room for useless nonterminals too. */
|
||||
rsets = XCALLOC (shorts *, nvars + nuseless_nonterminals) - ntokens;
|
||||
/* This is said to be more elements than we actually use.
|
||||
Supposedly nitems - nrules is enough.
|
||||
But why take the risk? */
|
||||
relts = XCALLOC (shorts, nitems + nvars + nuseless_nonterminals + 1);
|
||||
p = relts;
|
||||
|
||||
for (r = ritem; *r; ++r)
|
||||
{
|
||||
/* Walk RITEM to find (i), if there are any tokens in the
|
||||
RHS, and (ii), to find RULENO. */
|
||||
int ruleno;
|
||||
int any_tokens = 0;
|
||||
short *r1;
|
||||
for (r1 = r; *r1 > 0; ++r1)
|
||||
if (ISTOKEN (*r1))
|
||||
any_tokens = 1;
|
||||
ruleno = -*r1;
|
||||
|
||||
/* Examine the RHS of the rule. */
|
||||
if (!any_tokens)
|
||||
for (/* Nothing. */; *r > 0; ++r)
|
||||
for (ruleno = 1; ruleno < nrules + 1; ++ruleno)
|
||||
if (rule_table[ruleno].useful)
|
||||
{
|
||||
if (ritem[rule_table[ruleno].rhs] > 0)
|
||||
{
|
||||
rcount[ruleno]++;
|
||||
p->next = rsets[*r];
|
||||
p->value = ruleno;
|
||||
rsets[*r] = p;
|
||||
p++;
|
||||
}
|
||||
/* This rule has a non empty RHS. */
|
||||
short *r;
|
||||
int any_tokens = 0;
|
||||
for (r = ritem + rule_table[ruleno].rhs; *r > 0; ++r)
|
||||
if (ISTOKEN (*r))
|
||||
any_tokens = 1;
|
||||
|
||||
/* Examine its LHS. */
|
||||
if (rule_table[ruleno].useful && !nullable[rule_table[ruleno].lhs])
|
||||
{
|
||||
nullable[rule_table[ruleno].lhs] = 1;
|
||||
*s2++ = rule_table[ruleno].lhs;
|
||||
}
|
||||
}
|
||||
/* This rule has only nonterminals: schedule it for the second
|
||||
pass. */
|
||||
if (!any_tokens)
|
||||
for (r = ritem + rule_table[ruleno].rhs; *r > 0; ++r)
|
||||
{
|
||||
rcount[ruleno]++;
|
||||
p->next = rsets[*r];
|
||||
p->value = ruleno;
|
||||
rsets[*r] = p;
|
||||
p++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* This rule has an empty RHS. */
|
||||
assert (ritem[rule_table[ruleno].rhs] == -ruleno);
|
||||
if (rule_table[ruleno].useful && !nullable[rule_table[ruleno].lhs])
|
||||
{
|
||||
nullable[rule_table[ruleno].lhs] = 1;
|
||||
*s2++ = rule_table[ruleno].lhs;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
while (s1 < s2)
|
||||
for (p = rsets[*s1++]; p; p = p->next)
|
||||
{
|
||||
int ruleno = p->value;
|
||||
ruleno = p->value;
|
||||
if (--rcount[ruleno] == 0)
|
||||
if (rule_table[ruleno].useful && !nullable[rule_table[ruleno].lhs])
|
||||
{
|
||||
|
||||
+13
-15
@@ -1,5 +1,7 @@
|
||||
/* Output the generated parsing program for bison,
|
||||
Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
Copyright (C) 1984, 1986, 1989, 1992, 2000, 2001 Free Software
|
||||
Foundation, Inc.
|
||||
|
||||
This file is part of Bison, the GNU Compiler Compiler.
|
||||
|
||||
@@ -129,7 +131,7 @@ output_short_or_char_table (struct obstack *oout,
|
||||
const char *table_name,
|
||||
short *short_table,
|
||||
short first_value,
|
||||
short begin, short end)
|
||||
int begin, int end)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
@@ -167,7 +169,7 @@ output_short_table (struct obstack *oout,
|
||||
const char *table_name,
|
||||
short *short_table,
|
||||
short first_value,
|
||||
short begin, short end)
|
||||
int begin, int end)
|
||||
{
|
||||
output_short_or_char_table (oout, comment, "short", table_name, short_table,
|
||||
first_value, begin, end);
|
||||
@@ -314,7 +316,7 @@ output_gram (void)
|
||||
yyprhs and yyrhs are needed only for yydebug. */
|
||||
/* With the no_parser option, all tables are generated */
|
||||
if (!semantic_parser && !no_parser_flag)
|
||||
obstack_sgrow (&table_obstack, "\n#if YYDEBUG != 0\n");
|
||||
obstack_sgrow (&table_obstack, "\n#if YYDEBUG\n");
|
||||
|
||||
{
|
||||
int i;
|
||||
@@ -370,7 +372,7 @@ output_rule_data (void)
|
||||
short *short_tab = NULL;
|
||||
|
||||
obstack_sgrow (&table_obstack, "\n\
|
||||
#if YYDEBUG != 0\n");
|
||||
#if YYDEBUG\n");
|
||||
|
||||
{
|
||||
short *values = XCALLOC (short, nrules + 1);
|
||||
@@ -398,7 +400,7 @@ output_rule_data (void)
|
||||
/* Output the table of symbol names. */
|
||||
if (!token_table_flag && !no_parser_flag)
|
||||
obstack_sgrow (&table_obstack,
|
||||
"\n#if YYDEBUG != 0 || defined YYERROR_VERBOSE\n\n");
|
||||
"\n#if (YYDEBUG) || defined YYERROR_VERBOSE\n\n");
|
||||
obstack_sgrow (&table_obstack, "\
|
||||
/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */\n");
|
||||
obstack_sgrow (&table_obstack,
|
||||
@@ -976,8 +978,8 @@ pack_vector (int vector)
|
||||
return j;
|
||||
}
|
||||
}
|
||||
|
||||
assert (!"pack_vector");
|
||||
#define pack_vector_succeeded 0
|
||||
assert (pack_vector_succeeded);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1266,20 +1268,16 @@ output (void)
|
||||
obstack_grow (&table_obstack, obstack_finish (&attrs_obstack), size);
|
||||
}
|
||||
reader_output_yylsp (&table_obstack);
|
||||
if (debug_flag)
|
||||
obstack_sgrow (&table_obstack, "\
|
||||
obstack_fgrow1 (&table_obstack, "\
|
||||
#ifndef YYDEBUG\n\
|
||||
# define YYDEBUG 1\n\
|
||||
# define YYDEBUG %d\n\
|
||||
#endif\n\
|
||||
\n");
|
||||
\n", debug_flag);
|
||||
|
||||
if (semantic_parser)
|
||||
obstack_fgrow1 (&table_obstack, "#include %s\n",
|
||||
quotearg_style (c_quoting_style, attrsfile));
|
||||
|
||||
if (!no_parser_flag)
|
||||
obstack_sgrow (&table_obstack, "#include <stdio.h>\n\n");
|
||||
|
||||
LIST_FREE (core, first_state);
|
||||
output_defines ();
|
||||
output_token_translations ();
|
||||
|
||||
+7
-1
@@ -1125,7 +1125,13 @@ copy_action (symbol_list *rule, int stack_offset)
|
||||
}
|
||||
}
|
||||
|
||||
obstack_sgrow (&action_obstack, ";\n break;}");
|
||||
/* As a Bison extension, add the ending semicolon. Since some Yacc
|
||||
don't do that, help people using bison as a Yacc finding their
|
||||
missing semicolons. */
|
||||
if (yacc_flag)
|
||||
obstack_sgrow (&action_obstack, "}\n break;");
|
||||
else
|
||||
obstack_sgrow (&action_obstack, ";\n break;}");
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------.
|
||||
|
||||
+15
-3
@@ -110,14 +110,26 @@ char *alloca ();
|
||||
char *stpcpy PARAMS ((char *dest, const char *src));
|
||||
#endif
|
||||
|
||||
#if !HAVE_DECL_STRNDUP
|
||||
char *strndup PARAMS ((const char *s, size_t size));
|
||||
#if !HAVE_DECL_STRCHR
|
||||
char *strchr(const char *s, int c);
|
||||
#endif
|
||||
|
||||
#if !HAVE_DECL_STRSPN
|
||||
size_t strspn(const char *s, const char *accept);
|
||||
#endif
|
||||
|
||||
#if !HAVE_DECL_STRNLEN
|
||||
size_t strnlen PARAMS ((const char *s, size_t maxlen));
|
||||
#endif
|
||||
|
||||
#if !HAVE_DECL_MEMCHR
|
||||
void *memchr PARAMS ((const void *s, int c, size_t n));
|
||||
#endif
|
||||
|
||||
#if !HAVE_DECL_MEMRCHR
|
||||
void *memrchr PARAMS ((const void *s, int c, size_t n));
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*-----------------.
|
||||
@@ -149,7 +161,7 @@ size_t strnlen PARAMS ((const char *s, size_t maxlen));
|
||||
# define setlocale(Category, Locale)
|
||||
#endif
|
||||
|
||||
#include "intl/libgettext.h"
|
||||
#include "libgettext.h"
|
||||
#define _(Msgid) gettext (Msgid)
|
||||
#define N_(Msgid) (Msgid)
|
||||
|
||||
|
||||
@@ -242,7 +242,8 @@ get_color_str (enum color_e c)
|
||||
case orchid: return "orchid";
|
||||
case black: return "black";
|
||||
default:
|
||||
assert (!"Not a default color.");
|
||||
#define A_known_default_color 0
|
||||
assert (A_known_default_color);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -256,7 +257,8 @@ get_textmode_str (enum textmode_e t)
|
||||
case left_justify: return "left_justify";
|
||||
case right_justify: return "right_justify";
|
||||
default:
|
||||
assert (!"Not a text mode.");
|
||||
#define A_known_text_mode 0
|
||||
assert (A_known_text_mode);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -271,7 +273,8 @@ get_shape_str (enum shape_e s)
|
||||
case ellipse: return "ellipse";
|
||||
case triangle: return "triangle";
|
||||
default:
|
||||
assert (!"Not a shape.");
|
||||
#define A_known_shape 0
|
||||
assert (A_known_shape);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -296,7 +299,8 @@ get_layoutalgorithm_str (enum layoutalgorithm_e l)
|
||||
case dfs: return "dfs";
|
||||
case tree: return "tree";
|
||||
default:
|
||||
assert (!"Not a layout algorithm.");
|
||||
#define A_known_layout_algorithm 0
|
||||
assert (A_known_layout_algorithm);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -309,7 +313,8 @@ get_decision_str (enum decision_e d)
|
||||
case no: return "no";
|
||||
case yes: return "yes";
|
||||
default:
|
||||
assert (!"Either yes nor no.");
|
||||
#define Either_yes_nor_no 0
|
||||
assert (Either_yes_nor_no);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -324,7 +329,8 @@ get_orientation_str (enum orientation_e o)
|
||||
case left_to_right: return "left_to_right";
|
||||
case right_to_left: return "right_to_left";
|
||||
default:
|
||||
assert (!"Not an orientation.");
|
||||
#define A_knownn_orientation 0
|
||||
assert (A_knownn_orientation);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -338,7 +344,8 @@ get_node_alignement_str (enum alignement_e a)
|
||||
case top: return "top";
|
||||
case bottom: return "bottom";
|
||||
default:
|
||||
assert (!"Not an alignement.");
|
||||
#define A_known_alignement 0
|
||||
assert (A_known_alignement);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -351,7 +358,8 @@ get_arrow_mode_str (enum arrow_mode_e a)
|
||||
case fixed: return "fixed";
|
||||
case free_a: return "free";
|
||||
default:
|
||||
assert (!"Not an arrow mode.");
|
||||
#define A_known_arrow_mode 0
|
||||
assert (A_known_arrow_mode);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -366,7 +374,8 @@ get_crossing_type_str (enum crossing_type_e c)
|
||||
case barymedian: return "barymedian";
|
||||
case medianbary: return "medianbary";
|
||||
default:
|
||||
assert (!"Not a crossing type.");
|
||||
#define A_known_crossing_type 0
|
||||
assert (A_known_crossing_type);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -382,7 +391,8 @@ get_view_str (enum view_e v)
|
||||
case fcfish: return "fcfish";
|
||||
case fpfish: return "fpfish";
|
||||
default:
|
||||
assert (!"Not a view.");
|
||||
#define A_known_view 0
|
||||
assert (A_known_view);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -397,7 +407,8 @@ get_linestyle_str (enum linestyle_e l)
|
||||
case dotted: return "dotted";
|
||||
case invisible: return "invisible";
|
||||
default:
|
||||
assert (!"Not a line style.");
|
||||
#define A_known_line_style 0
|
||||
assert (A_known_line_style);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -411,7 +422,8 @@ get_arrowstyle_str (enum arrowstyle_e a)
|
||||
case line: return "line";
|
||||
case none: return "none";
|
||||
default:
|
||||
assert (!"Not an arrow style.");
|
||||
#define A_known_arrow_style 0
|
||||
assert (A_known_arrow_style);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
+57
-2
@@ -20,6 +20,7 @@
|
||||
|
||||
|
||||
#include "system.h"
|
||||
#include "getargs.h"
|
||||
#include "warshall.h"
|
||||
|
||||
/*-------------------------------------------------------------.
|
||||
@@ -27,6 +28,51 @@
|
||||
| transive closure of what was given. |
|
||||
`-------------------------------------------------------------*/
|
||||
|
||||
static void
|
||||
bitmatrix_print (const char *title, unsigned *matrix, size_t size)
|
||||
{
|
||||
size_t i, j;
|
||||
size_t rowsize = WORDSIZE (size) * sizeof (unsigned);
|
||||
#define ROW(Num) ((unsigned *) ((char *) matrix + ((Num) * rowsize)))
|
||||
|
||||
/* Title. */
|
||||
fprintf (stderr, "%s BEGIN\n", title);
|
||||
|
||||
/* Column numbers. */
|
||||
fputs (" ", stderr);
|
||||
for (i = 0; i < size; ++i)
|
||||
putc (i / 10 ? '0' + i / 10 : ' ', stderr);
|
||||
putc ('\n', stderr);
|
||||
fputs (" ", stderr);
|
||||
for (i = 0; i < size; ++i)
|
||||
fprintf (stderr, "%d", i % 10);
|
||||
putc ('\n', stderr);
|
||||
|
||||
/* Bar. */
|
||||
fputs (" .", stderr);
|
||||
for (i = 0; i < size; ++i)
|
||||
putc ('-', stderr);
|
||||
fputs (".\n", stderr);
|
||||
|
||||
/* Contents. */
|
||||
for (i = 0; i < size; ++i)
|
||||
{
|
||||
fprintf (stderr, "%2d|", i);
|
||||
for (j = 0; j < size; ++j)
|
||||
fputs (BITISSET (ROW (i), j) ? "1" : " ", stderr);
|
||||
fputs ("|\n", stderr);
|
||||
}
|
||||
|
||||
/* Bar. */
|
||||
fputs (" `", stderr);
|
||||
for (i = 0; i < size; ++i)
|
||||
putc ('-', stderr);
|
||||
fputs ("'\n", stderr);
|
||||
|
||||
/* End title. */
|
||||
fprintf (stderr, "%s END\n\n", title);
|
||||
}
|
||||
|
||||
#define R(Num) (unsigned *) ((char *) R + ((Num) * rowsize))
|
||||
|
||||
static void
|
||||
@@ -35,12 +81,21 @@ TC (unsigned *R, int n)
|
||||
int rowsize = WORDSIZE (n) * sizeof (unsigned);
|
||||
int i, j, k;
|
||||
|
||||
if (trace_flag)
|
||||
bitmatrix_print ("TC: Input", R, n);
|
||||
|
||||
/* R (J, I) && R (I, K) => R (J, K).
|
||||
I *must* be the outter loop. */
|
||||
|
||||
for (i = 0; i < n; ++i)
|
||||
for (j = 0; j < n; ++j)
|
||||
if (BITISSET (R (i), j))
|
||||
for (k = 0; k < rowsize; ++k)
|
||||
if (BITISSET (R (j), i))
|
||||
for (k = 0; k < n; ++k)
|
||||
if (BITISSET (R (i), k))
|
||||
SETBIT (R (j), k);
|
||||
|
||||
if (trace_flag)
|
||||
bitmatrix_print ("TC: Output", R, n);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+24
-4
@@ -1,7 +1,7 @@
|
||||
## Process this file with automake to create Makefile.in.
|
||||
|
||||
## Makefile for Bison testsuite.
|
||||
## Copyright 2000, 2001 Free Software Foundation, Inc.
|
||||
## Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License as published by
|
||||
@@ -20,16 +20,36 @@
|
||||
|
||||
EXTRA_DIST = $(TESTSUITE_AT) testsuite
|
||||
|
||||
DISTCLEANFILES = atconfig bison package.m4
|
||||
DISTCLEANFILES = atconfig bison
|
||||
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
|
||||
|
||||
## ------------ ##
|
||||
## package.m4. ##
|
||||
## ------------ ##
|
||||
|
||||
$(srcdir)/package.m4: $(top_srcdir)/configure.in
|
||||
{ \
|
||||
echo '# Signature of the current package.'; \
|
||||
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
|
||||
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
|
||||
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
|
||||
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
|
||||
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
||||
} >$(srcdir)/package.m4
|
||||
|
||||
EXTRA_DIST += package.m4
|
||||
|
||||
## ------------ ##
|
||||
## Test suite. ##
|
||||
## ------------ ##
|
||||
|
||||
TESTSUITE_AT = \
|
||||
testsuite.at \
|
||||
output.at reduce.at calc.at torture.at regression.at
|
||||
output.at sets.at reduce.at calc.at torture.at regression.at
|
||||
TESTSUITE = $(srcdir)/testsuite
|
||||
|
||||
AUTOTEST = $(AUTOM4TE) --language=autotest
|
||||
$(srcdir)/$(TESTSUITE): $(TESTSUITE_AT)
|
||||
$(srcdir)/$(TESTSUITE): package.m4 $(TESTSUITE_AT)
|
||||
$(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
|
||||
+19
-8
@@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.5a from Makefile.am.
|
||||
# Makefile.in generated by automake 1.5c from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
||||
@@ -13,7 +13,6 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
@@ -48,6 +47,7 @@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = @program_transform_name@
|
||||
@@ -97,18 +97,19 @@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
WARNING_CFLAGS = @WARNING_CFLAGS@
|
||||
WERROR_CFLAGS = @WERROR_CFLAGS@
|
||||
am__include = @am__include@
|
||||
am__quote = @am__quote@
|
||||
install_sh = @install_sh@
|
||||
|
||||
EXTRA_DIST = $(TESTSUITE_AT) testsuite
|
||||
EXTRA_DIST = $(TESTSUITE_AT) testsuite package.m4
|
||||
|
||||
DISTCLEANFILES = atconfig bison package.m4
|
||||
DISTCLEANFILES = atconfig bison
|
||||
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
|
||||
|
||||
TESTSUITE_AT = \
|
||||
testsuite.at \
|
||||
output.at reduce.at calc.at torture.at regression.at
|
||||
output.at sets.at reduce.at calc.at torture.at regression.at
|
||||
|
||||
TESTSUITE = $(srcdir)/testsuite
|
||||
|
||||
@@ -135,7 +136,6 @@ uninstall-info-am:
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
top_distdir = ..
|
||||
@@ -143,7 +143,7 @@ distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@for file in $(DISTFILES); do \
|
||||
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
||||
$(mkinstalldirs) "$(distdir)/$$dir"; \
|
||||
@@ -175,6 +175,7 @@ install-am: all-am
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
@@ -234,7 +235,17 @@ uninstall-am: uninstall-info-am
|
||||
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
||||
uninstall uninstall-am uninstall-info-am
|
||||
|
||||
$(srcdir)/$(TESTSUITE): $(TESTSUITE_AT)
|
||||
|
||||
$(srcdir)/package.m4: $(top_srcdir)/configure.in
|
||||
{ \
|
||||
echo '# Signature of the current package.'; \
|
||||
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
|
||||
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
|
||||
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
|
||||
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
|
||||
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
||||
} >$(srcdir)/package.m4
|
||||
$(srcdir)/$(TESTSUITE): package.m4 $(TESTSUITE_AT)
|
||||
$(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
|
||||
+3
-6
@@ -1,13 +1,10 @@
|
||||
# @configure_input@ -*- shell-script -*-
|
||||
# Configurable variable values for Bison test suite.
|
||||
# Copyright 2000, 2001 Free Software Foundation, Inc.
|
||||
# Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
|
||||
# We need a C compiler.
|
||||
CC='@CC@'
|
||||
CFLAGS='@CFLAGS@ @WARNING_CFLAGS@'
|
||||
|
||||
# We need to know if the compiler is GCC.
|
||||
GCC='@GCC@'
|
||||
CFLAGS='@CFLAGS@ @WARNING_CFLAGS@ @WERROR_CFLAGS@'
|
||||
|
||||
# We need `config.h'.
|
||||
CPPFLAGS="-I$top_buildpath @CPPFLAGS@"
|
||||
CPPFLAGS="-I$abs_top_builddir @CPPFLAGS@"
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
#! /bin/sh
|
||||
# @configure_generated@
|
||||
# @configure_input@
|
||||
# Wrapper around a non installed bison to make it work as an installed one.
|
||||
|
||||
# We want to use the files shipped with Bison.
|
||||
BISON_SIMPLE='@top_srcpath@/src/bison.simple'
|
||||
BISON_SIMPLE='@abs_top_srcdir@/src/bison.simple'
|
||||
export BISON_SIMPLE
|
||||
BISON_HAIRY='@top_srcpath@/src/bison.hairy'
|
||||
BISON_HAIRY='@abs_top_srcdir@/src/bison.hairy'
|
||||
export BISON_HAIRY
|
||||
|
||||
exec '@top_buildpath@/src/bison' ${1+"$@"}
|
||||
exec '@abs_top_builddir@/src/bison' ${1+"$@"}
|
||||
|
||||
@@ -334,17 +334,6 @@ AT_DATA_CALC_Y([$1])
|
||||
AT_CHECK([bison calc.y -o calc.c m4_bpatsubst([$1], [--yyerror-verbose])],
|
||||
[0], [], [])
|
||||
|
||||
# Some compilers issue warnings we don't want to hear about.
|
||||
# Maybe some day we will have proper Autoconf macros to disable these
|
||||
# warnings, but this place is not the right one for that.
|
||||
# So let's keep only GCC warnings, which we know are sane.
|
||||
# Well, that's only part of the story: some assemblers issue warnings
|
||||
# which can be totally useless, and actually polluting. It seems that
|
||||
# the best bet be to completely ignore stderr, but to pass -Werror
|
||||
# to GCC.
|
||||
if test "$GCC" = yes; then
|
||||
CFLAGS="$CFLAGS -Werror"
|
||||
fi
|
||||
AT_CHECK([$CC $CFLAGS $CPPFLAGS calc.c -o calc], 0, [], [ignore])
|
||||
|
||||
# Test the priorities.
|
||||
|
||||
@@ -18,6 +18,29 @@
|
||||
|
||||
AT_BANNER([[Regression tests.]])
|
||||
|
||||
|
||||
## ---------------- ##
|
||||
## Braces parsing. ##
|
||||
## ---------------- ##
|
||||
|
||||
|
||||
AT_SETUP([braces parsing])
|
||||
|
||||
AT_DATA([input.y],
|
||||
[[/* Bison used to swallow the character after `}'. */
|
||||
|
||||
%%
|
||||
exp: { tests = {{{{{{{{{{}}}}}}}}}}; }
|
||||
%%
|
||||
]])
|
||||
|
||||
AT_CHECK([bison -v input.y -o input.c], 0, ignore, ignore)
|
||||
|
||||
AT_CHECK([fgrep 'tests = {{{{{{{{{{}}}}}}}}}};' input.c], 0, [ignore])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
## ------------------ ##
|
||||
## Duplicate string. ##
|
||||
## ------------------ ##
|
||||
@@ -611,3 +634,233 @@ AT_CLEANUP
|
||||
|
||||
AT_TEST_CPP_GUARD_H([input/input])
|
||||
AT_TEST_CPP_GUARD_H([9foo])
|
||||
|
||||
|
||||
|
||||
## -------------- ##
|
||||
## Web2c Report. ##
|
||||
## -------------- ##
|
||||
|
||||
# The generation of the reduction was once wrong in Bison, and made it
|
||||
# miss some reductions. In the following test case, the reduction on
|
||||
# `undef_id_tok' in state 1 was missing. This is stripped down from
|
||||
# the actual web2c.y.
|
||||
|
||||
AT_SETUP([Web2c Report])
|
||||
|
||||
AT_DATA([input.y],
|
||||
[[%token undef_id_tok const_id_tok
|
||||
|
||||
%start CONST_DEC_PART
|
||||
|
||||
%%
|
||||
CONST_DEC_PART:
|
||||
CONST_DEC_LIST
|
||||
;
|
||||
|
||||
CONST_DEC_LIST:
|
||||
CONST_DEC
|
||||
| CONST_DEC_LIST CONST_DEC
|
||||
;
|
||||
|
||||
CONST_DEC:
|
||||
{ } undef_id_tok '=' const_id_tok ';'
|
||||
;
|
||||
%%
|
||||
|
||||
]])
|
||||
|
||||
AT_CHECK([bison -v input.y])
|
||||
|
||||
AT_CHECK([sed -n 's/ *$//;/^$/!p' input.output], 0,
|
||||
[[Grammar
|
||||
Number, Line, Rule
|
||||
1 6 CONST_DEC_PART -> CONST_DEC_LIST
|
||||
2 10 CONST_DEC_LIST -> CONST_DEC
|
||||
3 12 CONST_DEC_LIST -> CONST_DEC_LIST CONST_DEC
|
||||
4 15 @1 -> /* empty */
|
||||
5 15 CONST_DEC -> @1 undef_id_tok '=' const_id_tok ';'
|
||||
Terminals, with rules where they appear
|
||||
$ (-1)
|
||||
';' (59) 5
|
||||
'=' (61) 5
|
||||
error (256)
|
||||
undef_id_tok (257) 5
|
||||
const_id_tok (258) 5
|
||||
Nonterminals, with rules where they appear
|
||||
CONST_DEC_PART (7)
|
||||
on left: 1
|
||||
CONST_DEC_LIST (8)
|
||||
on left: 2 3, on right: 1 3
|
||||
CONST_DEC (9)
|
||||
on left: 5, on right: 2 3
|
||||
@1 (10)
|
||||
on left: 4, on right: 5
|
||||
state 0
|
||||
$default reduce using rule 4 (@1)
|
||||
CONST_DEC_PART go to state 9
|
||||
CONST_DEC_LIST go to state 1
|
||||
CONST_DEC go to state 2
|
||||
@1 go to state 3
|
||||
state 1
|
||||
CONST_DEC_PART -> CONST_DEC_LIST . (rule 1)
|
||||
CONST_DEC_LIST -> CONST_DEC_LIST . CONST_DEC (rule 3)
|
||||
undef_id_tok reduce using rule 4 (@1)
|
||||
$default reduce using rule 1 (CONST_DEC_PART)
|
||||
CONST_DEC go to state 4
|
||||
@1 go to state 3
|
||||
state 2
|
||||
CONST_DEC_LIST -> CONST_DEC . (rule 2)
|
||||
$default reduce using rule 2 (CONST_DEC_LIST)
|
||||
state 3
|
||||
CONST_DEC -> @1 . undef_id_tok '=' const_id_tok ';' (rule 5)
|
||||
undef_id_tok shift, and go to state 5
|
||||
state 4
|
||||
CONST_DEC_LIST -> CONST_DEC_LIST CONST_DEC . (rule 3)
|
||||
$default reduce using rule 3 (CONST_DEC_LIST)
|
||||
state 5
|
||||
CONST_DEC -> @1 undef_id_tok . '=' const_id_tok ';' (rule 5)
|
||||
'=' shift, and go to state 6
|
||||
state 6
|
||||
CONST_DEC -> @1 undef_id_tok '=' . const_id_tok ';' (rule 5)
|
||||
const_id_tok shift, and go to state 7
|
||||
state 7
|
||||
CONST_DEC -> @1 undef_id_tok '=' const_id_tok . ';' (rule 5)
|
||||
';' shift, and go to state 8
|
||||
state 8
|
||||
CONST_DEC -> @1 undef_id_tok '=' const_id_tok ';' . (rule 5)
|
||||
$default reduce using rule 5 (CONST_DEC)
|
||||
state 9
|
||||
$ go to state 10
|
||||
state 10
|
||||
$ go to state 11
|
||||
state 11
|
||||
$default accept
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
## --------------- ##
|
||||
## Web2c Actions. ##
|
||||
## --------------- ##
|
||||
|
||||
# The generation of the mapping `state -> action' was once wrong in
|
||||
# extremely specific situations. web2c.y exhibits this situation.
|
||||
# Below is a stripped version of the grammar. It looks like one can
|
||||
# simplify it further, but just don't: it is tuned to exhibit a bug,
|
||||
# which disapears when applying sane grammar transformations.
|
||||
#
|
||||
# It used to be wrong on yydefact only:
|
||||
#
|
||||
# static const short yydefact[] =
|
||||
# {
|
||||
# - 2, 0, 1, 0, 0, 2, 3, 2, 5, 4,
|
||||
# + 2, 0, 1, 0, 0, 0, 3, 2, 5, 4,
|
||||
# 0, 0
|
||||
# };
|
||||
#
|
||||
# but let's check all the tables.
|
||||
|
||||
|
||||
AT_SETUP([Web2c Actions])
|
||||
|
||||
AT_DATA([input.y],
|
||||
[[%%
|
||||
statement: struct_stat;
|
||||
struct_stat: /* empty. */ | if else;
|
||||
if: "if" "const" "then" statement;
|
||||
else: "else" statement;
|
||||
%%
|
||||
]])
|
||||
|
||||
AT_CHECK([bison -v input.y -o input.c])
|
||||
|
||||
# Check only the tables. We don't use --no-parser, because it is
|
||||
# still to be implemented in the experimental branch of Bison.
|
||||
AT_CHECK([[sed -n 's/ *$//;/^static const.*\[\] =/,/^}/p' input.c]], 0,
|
||||
[[static const char yytranslate[] =
|
||||
{
|
||||
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 1, 3, 4, 5,
|
||||
6
|
||||
};
|
||||
static const short yyprhs[] =
|
||||
{
|
||||
0, 0, 2, 3, 6, 11
|
||||
};
|
||||
static const short yyrhs[] =
|
||||
{
|
||||
8, 0, 0, 9, 10, 0, 3, 4, 5, 7,
|
||||
0, 6, 7, 0
|
||||
};
|
||||
static const short yyrline[] =
|
||||
{
|
||||
0, 2, 3, 3, 4, 5
|
||||
};
|
||||
static const char *const yytname[] =
|
||||
{
|
||||
"$", "error", "$undefined.", "\"if\"", "\"const\"", "\"then\"",
|
||||
"\"else\"", "statement", "struct_stat", "if", "else", NULL
|
||||
};
|
||||
static const short yyr1[] =
|
||||
{
|
||||
0, 7, 8, 8, 9, 10
|
||||
};
|
||||
static const short yyr2[] =
|
||||
{
|
||||
0, 1, 0, 2, 4, 2
|
||||
};
|
||||
static const short yydefact[] =
|
||||
{
|
||||
2, 0, 1, 0, 0, 2, 3, 2, 5, 4,
|
||||
0, 0, 0
|
||||
};
|
||||
static const short yydefgoto[] =
|
||||
{
|
||||
8, 2, 3, 6
|
||||
};
|
||||
static const short yypact[] =
|
||||
{
|
||||
-2, -1,-32768, -4, 1, -2,-32768, -2,-32768,-32768,
|
||||
4, 5,-32768
|
||||
};
|
||||
static const short yypgoto[] =
|
||||
{
|
||||
0,-32768,-32768,-32768
|
||||
};
|
||||
static const short yytable[] =
|
||||
{
|
||||
10, 1, 5, 4, 11, 12, 7, 9
|
||||
};
|
||||
static const short yycheck[] =
|
||||
{
|
||||
0, 3, 6, 4, 0, 0, 5, 7
|
||||
};
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
+193
@@ -0,0 +1,193 @@
|
||||
# Exercising Bison Grammar Sets. -*- Autotest -*-
|
||||
# Copyright 2001 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
AT_BANNER([[Grammar Sets (Firsts etc.).]])
|
||||
|
||||
|
||||
## ---------- ##
|
||||
## Nullable. ##
|
||||
## ---------- ##
|
||||
|
||||
AT_SETUP([Nullable])
|
||||
|
||||
# At some point, nullable had been smoking grass, and managed to say:
|
||||
#
|
||||
# Entering set_nullable
|
||||
# NULLABLE
|
||||
# 'e': yes
|
||||
# (null): no
|
||||
# ...
|
||||
|
||||
AT_DATA([[input.y]],
|
||||
[[%%
|
||||
e: 'e' | /* Nothing */;
|
||||
]])
|
||||
|
||||
AT_CHECK([[bison --trace input.y]], [], [],
|
||||
[[RITEM
|
||||
'e' (rule 1)
|
||||
(rule 2)
|
||||
|
||||
|
||||
DERIVES
|
||||
e derives
|
||||
1: 'e' (rule 1)
|
||||
2: (rule 2)
|
||||
|
||||
|
||||
Entering set_nullable
|
||||
NULLABLE
|
||||
e: yes
|
||||
|
||||
|
||||
TC: Input BEGIN
|
||||
@&t@
|
||||
0
|
||||
.-.
|
||||
0| |
|
||||
`-'
|
||||
TC: Input END
|
||||
|
||||
TC: Output BEGIN
|
||||
@&t@
|
||||
0
|
||||
.-.
|
||||
0| |
|
||||
`-'
|
||||
TC: Output END
|
||||
|
||||
FIRSTS
|
||||
e firsts
|
||||
4 (e)
|
||||
|
||||
|
||||
FDERIVES
|
||||
e derives
|
||||
1: 'e'
|
||||
2:
|
||||
|
||||
|
||||
Processing state 0 (reached by $)
|
||||
Closure: input
|
||||
|
||||
|
||||
Closure: output
|
||||
0: . 'e' (rule 1)
|
||||
2: . (rule 2)
|
||||
|
||||
|
||||
Entering new_itemsets, state = 0
|
||||
Entering append_states, state = 0
|
||||
Entering get_state, state = 0, symbol = 3 ('e')
|
||||
Entering new_state, state = 0, symbol = 3 ('e')
|
||||
Exiting get_state => 1
|
||||
Processing state 1 (reached by 'e')
|
||||
Closure: input
|
||||
1: . (rule 1)
|
||||
|
||||
|
||||
Closure: output
|
||||
1: . (rule 1)
|
||||
|
||||
|
||||
Entering new_itemsets, state = 1
|
||||
Entering append_states, state = 1
|
||||
transpose: input
|
||||
0: @&t@
|
||||
|
||||
transpose: output
|
||||
0: @&t@
|
||||
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
## ---------------- ##
|
||||
## Broken Closure. ##
|
||||
## ---------------- ##
|
||||
|
||||
# TC was once broken during a massive `simplification' of the code.
|
||||
# It resulted in bison dumping core on the following grammar (the
|
||||
# computation of FIRSTS uses TC). It managed to produce a pretty
|
||||
# exotic closure:
|
||||
#
|
||||
# TC: Input
|
||||
#
|
||||
# 01234567
|
||||
# +--------+
|
||||
# 0| 1 |
|
||||
# 1| 1 |
|
||||
# 2| 1 |
|
||||
# 3| 1 |
|
||||
# 4| 1 |
|
||||
# 5| 1 |
|
||||
# 6| 1|
|
||||
# 7| |
|
||||
# +--------+
|
||||
#
|
||||
# TC: Output
|
||||
#
|
||||
# 01234567
|
||||
# +--------+
|
||||
# 0| 1 |
|
||||
# 1| 111 |
|
||||
# 2| 111 |
|
||||
# 3| 1111 |
|
||||
# 4| 111 1 |
|
||||
# 5| 111 1 |
|
||||
# 6| 111 1|
|
||||
# 7| 111 |
|
||||
# +--------+
|
||||
#
|
||||
# instead of that below.
|
||||
|
||||
AT_SETUP([Broken Closure])
|
||||
|
||||
AT_DATA([input.y],
|
||||
[[%%
|
||||
a: b
|
||||
b: c
|
||||
c: d
|
||||
d: e
|
||||
e: f
|
||||
f: g
|
||||
g: h
|
||||
h: 'h'
|
||||
]])
|
||||
|
||||
AT_CHECK([bison --trace input.y 2>&1 |
|
||||
sed -n '/^TC: Output BEGIN/,/^TC: Output END/p'],
|
||||
[0],
|
||||
[[TC: Output BEGIN
|
||||
@&t@
|
||||
01234567
|
||||
.--------.
|
||||
0| 1111111|
|
||||
1| 111111|
|
||||
2| 11111|
|
||||
3| 1111|
|
||||
4| 111|
|
||||
5| 11|
|
||||
6| 1|
|
||||
7| |
|
||||
`--------'
|
||||
TC: Output END
|
||||
]])
|
||||
|
||||
AT_CLEANUP
|
||||
@@ -26,6 +26,7 @@ AT_INIT
|
||||
AT_TESTED([bison])
|
||||
|
||||
m4_include([output.at])
|
||||
m4_include([sets.at])
|
||||
m4_include([reduce.at])
|
||||
m4_include([calc.at])
|
||||
m4_include([torture.at])
|
||||
|
||||
+1192
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user