Paul Eggert
ec88357a8c
(fatal, fatal_at): Add __attribute__((__noreturn__)).
...
(warning_issued): Renamed from warn_message_count. Now bool.
(complaint_issued): Renamed from complain_message_count. Now bool.
2002-10-22 05:12:08 +00:00
Paul Eggert
5ca3209b44
(main): Use exit to exit with failure.
...
Use EXIT_FAILURE and EXIT_SUCCESS rather than 1 and 0.
2002-10-22 05:07:12 +00:00
Paul Eggert
0df27e8b2d
(getargs): Use EXIT_FAILURE and EXIT_SUCCESS rather than 1 and 0.
...
Remove duplicate code for "Try `bison --help'".
(usage): Add __attribute__((__noreturn__)).
2002-10-22 05:06:21 +00:00
Paul Eggert
901ec1537a
(xfopen, xfclose): Use EXIT_FAILURE rathern than 2.
...
What was that "2" for?
2002-10-22 05:01:46 +00:00
Paul Eggert
0ae6073a18
(warning_issued): Renamed from warn_message_count,
...
so that we needn't worry about integer overflow (!).
Now of type bool. All uses changed.
(complaint_issued): Renamed from complain_message_count; likewise.
(fatal_at, fatal): Use EXIT_FAILURE and EXIT_SUCCESS rather than 1 and 0.
2002-10-22 04:53:49 +00:00
Paul Eggert
8307162d58
Use C99-style bool instead of our own style.
2002-10-22 04:46:28 +00:00
Paul Eggert
738c69de37
Use C99-style bool instead of our own style.
...
(comment change only)
2002-10-22 04:45:51 +00:00
Paul Eggert
b4afb6bbe5
Use C99-style bool instead of our own style.
...
(reader): Use EXIT_FAILURE and EXIT_SUCCESS rather than 1 and 0.
2002-10-22 04:43:50 +00:00
Paul Eggert
637c4b283c
se C99-style bool instead of our own style.
2002-10-22 04:41:25 +00:00
Paul Eggert
78b8881659
(bool, false, true): Use a definition consistent with ../lib/hash.c.
2002-10-22 04:40:09 +00:00
Paul Eggert
a3714bcedf
(hash_compare_symbol_t): (a ? FALSE : TRUE) -> (! a)
2002-10-22 04:39:44 +00:00
Paul Eggert
5dd5fd4a56
(hash_compare_muscles): (a ? FALSE : TRUE) -> (! a)
2002-10-22 04:39:05 +00:00
Paul Eggert
fece5986bf
(EXTRA_DIST): Add stdbool.m4.
2002-10-22 04:38:11 +00:00
Paul Eggert
8d60a570d5
(AC_HEADER_STDBOOL): Add.
2002-10-22 04:37:50 +00:00
Paul Eggert
a7e92301ef
New file, from coreutils 4.5.3.
2002-10-22 04:36:31 +00:00
Paul Eggert
a4b6efd473
(getargs): When there are too few operands, report the last one. When
...
there are too many, report the first extra one. This is how diffutils
does it.
2002-10-21 18:15:13 +00:00
Paul Eggert
92a060fd6a
Remove K&R vestiges.
...
* configure.ac (AC_C_CONST, AM_C_PROTOTYPES): Remove.
* src/complain.c (VA_START): Remove. Assume prototypes.
(vfprintf) [! (HAVE_VPRINTF || defined vfprintf)]: New macro.
(private_strerror, warn_at, warn, complain_at, complain, fatal_at,
fatal): Assume prototypes.
* src/complain.h: Assume prototypes.
* src/system.h (PARAMS): Remove.
Include <limits.h> unconditionally, since it's guaranteeed even
for a freestanding C89 compiler.
(SHRT_MIN, SHRT_MAX): Remove, since C89 guarantees them.
* src/vmsgetargs.c (getargs, cli_present, cli_get_value): Prototype.
2002-10-21 05:31:34 +00:00
Paul Eggert
d33cb3ae09
Remove all uses of PARAMS, since we now assume C89 or better.
2002-10-21 05:30:50 +00:00
Paul Eggert
b8452344de
(getargs, cli_present, cli_get_value): Prototype.
2002-10-21 05:29:50 +00:00
Paul Eggert
930393cf02
(PARAMS): Remove.
...
Include <limits.h> unconditionally, since it's guaranteeed even
for a freestanding C89 compiler.
(SHRT_MIN, SHRT_MAX): Remove, since C89 guarantees them.
2002-10-21 05:29:07 +00:00
Paul Eggert
49f801e6fe
Assume prototypes.
2002-10-21 05:28:34 +00:00
Paul Eggert
2118414023
(VA_START): Remove. Assume prototypes.
...
(vfprintf) [! (HAVE_VPRINTF || defined vfprintf)]: New macro.
(private_strerror, warn_at, warn, complain_at, complain, fatal_at,
fatal): Assume prototypes.
2002-10-21 05:28:16 +00:00
Paul Eggert
87004b05f7
(AC_C_CONST, AM_C_PROTOTYPES): Remove.
2002-10-21 05:27:45 +00:00
Paul Eggert
95f2c9fe7d
Do not create a temporary file, as that involves security and
...
cleanup headaches. Instead, use a pair of pipes.
Derived from a suggestion by Florian Krohm.
Also, some other minor changes to avoid GCC warnings.
2002-10-20 06:37:08 +00:00
Paul Eggert
975553805c
Do not create a temporary file, as that involves security and
...
cleanup headaches. Instead, use a pair of pipes. Derived from
a suggestion by Florian Krohm.
2002-10-20 06:35:41 +00:00
Paul Eggert
2cdb2a7b05
(readpipe): Remove decl.
...
(scan_skel): New function, to be used in place of m4_invoke.
Read from stream rather than file.
2002-10-20 06:32:04 +00:00
Paul Eggert
573312acb6
Include "subpipe.h".
...
(m4_invoke): Remove decl.
(scan_skel): New decl.
(output_skeleton): Use pipe rather than temporary file for m4 input.
Check that m4sugar.m4 is readable, to avoid deadlock.
Check for pipe I/O error.
2002-10-20 06:31:23 +00:00
Paul Eggert
f7aed66054
Add lib/subpipe.c.
2002-10-20 06:30:43 +00:00
Paul Eggert
82f9f11f39
(EXTRA_DIST): Remove mkstemp.m4. Add subpipe.m4.
2002-10-20 06:30:15 +00:00
Paul Eggert
6d55632cb7
(libbison_a_SOURCES): Remove readpipe.c.
...
Add subpipe.h, subpipe.c.
2002-10-20 06:29:41 +00:00
Paul Eggert
2593afab81
(UTILS_FUNC_MKSTEMP, jm_PREREQ_TEMPNAME): Remove.
...
(BISON_PREREQ_SUBPIPE): Add.
2002-10-20 06:29:09 +00:00
Paul Eggert
5b2d69cc5b
Initial version.
2002-10-20 06:28:23 +00:00
Paul Eggert
bb33f19a4b
(prepare): Use xstrdup to convert char const * to char *, to avoid GCC
...
warning.
2002-10-20 06:01:07 +00:00
Paul Eggert
d9d363b172
(muscle_pair_list_grow): Rename local to avoid confusion with
...
similarly-named more-global.
2002-10-20 05:47:09 +00:00
Paul Eggert
9e2c5ef112
(TICKS_TO_MSEC, CLOCKS_TO_MSEC): Do not cast to
...
float, as this generates a warning on Solaris 8 + GCC 3.2 with
--enable-gcc-warnings. Instead, divide into 1.0 rather than 1;
this generates a more-accurate value anyway.
(timervar_accumulate): Rename local variables to avoid confusion
with similarly-named global 'start_time'.
2002-10-20 05:34:55 +00:00
Paul Eggert
55b929cab2
Spell -*- Autoconf -*-' properly; the leading -' was missing.
2002-10-20 05:23:11 +00:00
Paul Eggert
3a781eb26b
* data/glr.c (yyreportParseError): Don't assume that sprintf
...
yields the length of the printed string, as this is not true
on SunOS 4.1.4. Reported by Peter Klein.
2002-10-19 01:33:39 +00:00
Paul Eggert
3eb4916379
(yyreportParseError): Don't assume that sprintf
...
yields the length of the printed string, as this is not true
on SunOS 4.1.4. Reported by Peter Klein.
2002-10-19 01:33:20 +00:00
Paul Eggert
724ce7f524
* tests/calc.at (_AT_DATA_CALC_Y): #undef memcmp and realloc.
...
* tests/conflicts.at (%nonassoc and eof): Likewise.
Fixes SunOS 4.1.4 test failure reported by Peter Klein.
2002-10-19 01:10:26 +00:00
Paul Eggert
ac5dd84c25
(%nonassoc and eof): #undef memcmp and realloc.
2002-10-19 01:09:36 +00:00
Paul Eggert
d968424300
(_AT_DATA_CALC_Y): #undef memcmp and realloc.
2002-10-19 01:09:13 +00:00
Paul Eggert
93e2236a6d
* src/muscle_tab.h (MUSCLE_TAB_H_): Was misspelled as MUSCLE_TAB_H.
2002-10-17 06:31:51 +00:00
Paul Eggert
f7737e2e16
(MUSCLE_TAB_H_): Was misspelled as MUSCLE_TAB_H_.
2002-10-17 06:27:41 +00:00
Paul Eggert
e76d2469e5
* NEWS: Officially drop support for building Bison with K&R C,
...
since it didn't work anyway and it's not worth worrying about.
* Makefile.maint (wget_files): Remove ansi2knr.c.
(ansi2knr.c-url_prefix): Remove.
* lib/.cvsignore: Remove ansi2knr, ansi2knr.*.
* lib/Makefile.am (AUTOMAKE_OPTIONS): Remove.
* src/Makefile.am (AUTOMAKE_OPTIONS): Remove.
2002-10-17 01:29:58 +00:00
Paul Eggert
24c7b92b25
(AUTOMAKE_OPTIONS): Remove.
2002-10-17 01:29:01 +00:00
Paul Eggert
dddb8b6121
Remove ansi2knr, ansi2knr.*.
2002-10-17 01:26:33 +00:00
Paul Eggert
71d1d25c7a
Officially drop support for building Bison with K&R C,
...
since it didn't work anyway and it's not worth worrying about.
2002-10-17 01:24:46 +00:00
Paul Eggert
da2292e5c7
(wget_files): Remove ansi2knr.c.
...
(ansi2knr.c-url_prefix): Remove.
2002-10-17 00:14:32 +00:00
Paul Eggert
5bd1c41900
Stop using the "enum_" trick for K&R-style function definitions;
...
it confused me, and I was the author! Instead, assume that people
who want to use K&R C compilers (when using these modules in GCC,
perhaps?) will run ansi2knr.
2002-10-16 06:29:12 +00:00
Paul Eggert
829f74d293
(enum_lbitset_find_mode): Remove. All uses of "enum_" changed to "enum ".
...
(debug_lbitset, lbitset_and, lbitset_and_cmp, lbitset_andn,
lbitset_andn_cmp, lbitset_bytes, lbitset_copy, lbitset_copy_cmp,
lbitset_disjoint_p, lbitset_elt_alloc, lbitset_elt_calloc,
lbitset_elt_find, lbitset_elt_free, lbitset_elt_link,
lbitset_elt_unlink, lbitset_elt_zero_p, lbitset_empty_p,
lbitset_equal_p, lbitset_free, lbitset_init, lbitset_list,
lbitset_list_reverse, lbitset_not, lbitset_ones, lbitset_op3_cmp,
lbitset_or, lbitset_or_cmp, lbitset_prune, lbitset_release_memory,
lbitset_reset, lbitset_set, lbitset_size, lbitset_subset_p,
lbitset_test, lbitset_weed, lbitset_xor, lbitset_xor_cmp,
lbitset_zero): Use function prototypes; this removes the need for
declaring static functions simply to provide their prototypes.
2002-10-16 06:27:59 +00:00
Paul Eggert
75f10004fe
(enum_ebitset_find_mode): Remove. All uses of "enum_" changed to "enum ".
...
(ebitset_and, ebitset_and_cmp, ebitset_andn, ebitset_andn_cmp,
ebitset_bytes, ebitset_copy, ebitset_copy_, ebitset_copy_cmp,
ebitset_disjoint_p, ebitset_elt_add, ebitset_elt_alloc,
ebitset_elt_calloc, ebitset_elt_find, ebitset_elt_free,
ebitset_elt_last, ebitset_elt_remove, ebitset_elt_zero_p,
ebitset_elts_grow, ebitset_empty_p, ebitset_equal_p, ebitset_free,
ebitset_init, ebitset_list, ebitset_list_reverse, ebitset_not,
ebitset_ones, ebitset_op3_cmp, ebitset_or, ebitset_or_cmp,
ebitset_release_memory, ebitset_reset, ebitset_set, ebitset_size,
ebitset_subset_p, ebitset_test, ebitset_weed, ebitset_xor,
ebitset_xor_cmp, ebitset_zero): Use function prototypes; this removes
the need for declaring static functions simply to provide their
prototypes.
2002-10-16 06:26:31 +00:00
Paul Eggert
24f4e18b77
(bitsetv_alloc): enum_bitset_type -> enum bitset_type
2002-10-16 06:24:26 +00:00
Paul Eggert
a182371d69
(bitsetv_alloc, bitsetv_create, bitsetv_free, bitsetv_zero,
...
bitsetv_ones, bitsetv_transitive_closure, bitsetv_dump,
debug_bitsetv): Use function prototypes; this removes the need for
declaring static functions simply to provide their prototypes.
2002-10-16 06:23:21 +00:00
Paul Eggert
bba392ec8a
(bitset_stats_init): enum_bitset_type -> enum bitset_type.
2002-10-16 06:22:04 +00:00
Paul Eggert
d65ec44e3b
(bitset_log_histogram_print, bitset_percent_histogram_print,
...
bitset_stats_and, bitset_stats_and_cmp, bitset_stats_and_or,
bitset_stats_and_or_cmp, bitset_stats_andn, bitset_stats_andn_cmp,
bitset_stats_andn_or, bitset_stats_andn_or_cmp, bitset_stats_copy,
bitset_stats_count, bitset_stats_disable, bitset_stats_disjoint_p,
bitset_stats_dump, bitset_stats_empty_p, bitset_stats_enable,
bitset_stats_equal_p, bitset_stats_free, bitset_stats_init,
bitset_stats_list, bitset_stats_list_reverse, bitset_stats_not,
bitset_stats_ones, bitset_stats_or, bitset_stats_or_and,
bitset_stats_or_and_cmp, bitset_stats_or_cmp, bitset_stats_print,
bitset_stats_print_1, bitset_stats_read, bitset_stats_reset,
bitset_stats_set, bitset_stats_size, bitset_stats_subset_p,
bitset_stats_test, bitset_stats_toggle, bitset_stats_type_get,
bitset_stats_write, bitset_stats_xor, bitset_stats_xor_cmp,
bitset_stats_zero): Use function prototypes; this removes the need for
declaring static functions simply to provide their prototypes.
2002-10-16 06:20:44 +00:00
Paul Eggert
04af9e5267
(bitset_set, bitset_reset, bitset_test): Use function prototypes; this
...
removes the need for declaring static functions simply to provide
their prototypes.
2002-10-16 06:19:22 +00:00
Paul Eggert
447e90bcef
(bitset_alloc, bitset_and_or_, bitset_and_or_cmp_, bitset_andn_or_,
...
bitset_andn_or_cmp_, bitset_bytes, bitset_copy_, bitset_count_,
bitset_create, bitset_dump, bitset_first, bitset_free, bitset_init,
bitset_last, bitset_next, bitset_obstack_alloc, bitset_obstack_free,
bitset_only_set_p, bitset_op4_cmp, bitset_or_and_, bitset_or_and_cmp_,
bitset_prev, bitset_print, bitset_release_memory, bitset_toggle_,
bitset_type_choose, bitset_type_get, bitset_type_name_get,
debug_bitset): Use function prototypes; this removes the need for
declaring static functions simply to provide their prototypes.
2002-10-16 06:18:00 +00:00
Paul Eggert
59fc3dcdf4
(enum_bitset_ops, enum_bitset_type): Remove.
...
All uses of "enum_" changed to "enum ".
2002-10-16 06:16:29 +00:00
Paul Eggert
a911db9cba
(abitset_and, abitset_and_cmp, abitset_and_or,
...
abitset_and_or_cmp, abitset_andn, abitset_andn_cmp,
abitset_andn_or, abitset_andn_or_cmp, abitset_bytes, abitset_copy,
abitset_copy1, abitset_disjoint_p, abitset_empty_p,
abitset_equal_p, abitset_init, abitset_list, abitset_list_reverse,
abitset_not, abitset_ones, abitset_or, abitset_or_and,
abitset_or_and_cmp, abitset_or_cmp, abitset_reset, abitset_set,
abitset_size, abitset_small_list, abitset_subset_p, abitset_test,
abitset_unused_clear, abitset_xor, abitset_xor_cmp, abitset_zero):
Use function prototypes; this removes the need for declaring
static functions simply to provide their prototypes.
2002-10-16 06:15:02 +00:00
Paul Eggert
447fbb178d
* tests/action.at, tests/calc.at, tests/conflicts.at,
...
tests/cxx-type.at, tests/headers.at, tests/input.at,
tests/regression.at, tests/synclines.at, tests/torture.at:
Say "bison -o foo.c foo.y", not "bison foo.y -o foo.c",
so that the tests still work even if POSIXLY_CORRECT is set.
* doc/bison.texinfo (Rpcalc Compile, Invocation): Likewise.
2002-10-14 08:44:02 +00:00
Paul Eggert
b56471a689
Say "bison -o foo.c foo.y", not "bison foo.y -o foo.c",
...
so that the commands still work even if POSIXLY_CORRECT is set.
2002-10-14 08:43:36 +00:00
Paul Eggert
1318e37d58
* data/c.m4 (b4_int_type): Use yysigned_char instead of signed char,
...
for portability to K&R hosts. Fix typo: signed char is guaranteed
only to 127, not to 128.
* data/glr.c (yysigned_char): New type.
* data/yacc.c (yysigned_char): Likewise.
* tests/regression.at (Web2c Actions): signed char -> yysigned_char.
2002-10-14 08:07:01 +00:00
Paul Eggert
22a00a0cd2
(b4_int_type): Use yysigned_char instead of signed char,
...
for portability to K&R hosts. Fix typo: signed char is guaranteed
only to 127, not to 128.
2002-10-14 08:06:33 +00:00
Paul Eggert
768eb43fe8
(yysigned_char): New type.
2002-10-14 08:06:06 +00:00
Paul Eggert
7c78fa1885
(Web2c Actions): signed char -> yysigned_char.
2002-10-14 08:05:20 +00:00
Paul Eggert
5038f418c1
* data/yacc.c (yyparse): Rewrite to avoid "comparison is always
...
true due to limited range of data type" warning from GCC.
2002-10-14 06:55:10 +00:00
Paul Eggert
e5cfd9d8af
(yyparse): Rewrite to avoid "comparison is always true due to limited
...
range of data type" warning from GCC in synclines.at test.
2002-10-14 06:54:41 +00:00
Paul Eggert
cc0f0794b8
* data/c.m4 (b4_token_defines): Protect against double-inclusion
...
by wrapping enum yytokentype's definition inside #ifndef
YYTOKENTYPE. This undoes a bug I introduced on 2002-10-12.
2002-10-13 20:36:45 +00:00
Paul Eggert
6b8c325436
(b4_token_defines): Protect against double-inclusion
...
by wrapping enum yytokentype's definition inside #ifndef
YYTOKENTYPE. This undoes a bug I introduced on 2002-10-12.
2002-10-13 20:35:06 +00:00
Paul Eggert
3b7d4eb2cd
Regenerate.
2002-10-13 09:09:49 +00:00
Paul Eggert
bcbad5b9a0
Fix problem reported by Henrik Grubbstroem in
...
<http://mail.gnu.org/pipermail/bug-bison/2002-October/001670.html >:
"nonterm: { $$ = 123; } { $$ = $1; };" was wrongly rejected,
because the Bison parser reads the second action before reducing
the first one.
* src/scan-gram.l (rule_length): New static var.
Use it to keep track of the rule length in the scanner, since
we can't expect the parser to be in lock-step sync with the scanner.
(handle_action_dollar, handle_action_at): Use this var.
* tests/actions.at (Exotic Dollars): Test for the problem.
2002-10-13 08:40:10 +00:00
Paul Eggert
0ff67d71d7
(Exotic Dollars): Test for "nonterm: { $$ = 123; } { $$ = $1; };" bug.
2002-10-13 08:39:31 +00:00
Paul Eggert
efcb44dd47
(rule_length): New static var.
...
Use it to keep track of the rule length in the scanner, since
we can't expect the parser to be in lock-step sync with the scanner.
(handle_action_dollar, handle_action_at): Use this var.
2002-10-13 08:38:39 +00:00
Paul Eggert
1fe611e544
Attempt to fix SunOS 4.1.4 porting bug reported by Peter Klein in
...
<http://mail.gnu.org/pipermail/bug-bison/2002-October/001674.html >.
2002-10-13 06:00:24 +00:00
Paul Eggert
a6352deb14
(BISON_PREREQ_TIMEVAR): Check for <sys/time.h>.
...
Include <sys/time.h> when checking for clock_t and struct tms.
Use same include order as source.
2002-10-13 05:59:40 +00:00
Paul Eggert
bd0ba42d72
Import GCC version as of today, then merge Bison's changes.
...
Change "GCC" to "Bison" in copyright notice.
2002-10-13 05:58:38 +00:00
Paul Eggert
46b8b6ce90
Fix copyright and authorship notice to point to Bison, not GCC.
2002-10-13 05:57:10 +00:00
Paul Eggert
fdabfd76d6
[! IN_GCC && HAVE_SYS_TIME_H]: Include <sys/time.h>.
...
Update copyright date and clarify comments.
(get_time) [IN_GCC]: Keep the GCC version for reference.
Merge GCC changes. Change "GCC" to "Bison" in the copyright notice.
2002-10-13 05:56:20 +00:00
Paul Eggert
ea9ed226e0
Import of GCC head 2002-10-11
2002-10-13 04:42:59 +00:00
Paul Eggert
98194095fe
* src/reader.c (grammar_current_rule_check):
...
Don't worry about the default action if $$ is untyped.
Prevents bogus warnings reported by Jim Gifford in
<http://mail.gnu.org/pipermail/bug-bison/2002-October/001673.html >.
2002-10-13 03:53:18 +00:00
Paul Eggert
3f4c0f8017
(grammar_current_rule_check):
...
Don't worry about the default action if $$ is untyped.
Prevents bogus warnings reported by Jim Gifford in
<http://mail.gnu.org/pipermail/bug-bison/2002-October/001673.html >.
2002-10-13 03:52:53 +00:00
Paul Eggert
14904b8965
* data/c.m4 (b4_token_enum): Do not define YYTOKENTYPE.
...
* data/glr.c, data/lalr1.cc, data/yacc.c:
Output token definitions before the first part of user declarations.
Fixes compatibility problem reported by Jim Gifford for kbd in
<http://mail.gnu.org/pipermail/bug-bison/2002-October/001672.html >.
2002-10-12 23:21:00 +00:00
Paul Eggert
17acead581
Output token definitions before the first part of user declarations.
2002-10-12 23:20:23 +00:00
Paul Eggert
095b9f05c3
(b4_token_enum): Do not define YYTOKENTYPE.
2002-10-12 23:18:52 +00:00
Paul Eggert
68449b3ad3
(Calling Convention): Fix strncmp typo.
2002-10-11 21:19:27 +00:00
Paul Eggert
ff6dca1839
* data/yacc.c (yyreport_parse_error): Remove, putting its body into...
...
(yyparse): here. This undoes some of the 2002-07-25 change.
Compatibility problem reported by Ralf S. Engelschall with
OSSP cfg <http://www.ossp.org/pkg/lib/cfg/ >.
2002-10-11 20:54:17 +00:00
Paul Eggert
df5aed8c11
(yyreport_parse_error): Remove, putting its body into...
...
(yyparse): here. This undoes some of the 2002-07-25 change.
Compatibility problem reported by Ralf S. Engelschall with
OSSP cfg <http://www.ossp.org/pkg/lib/cfg/ >.
2002-10-11 20:53:39 +00:00
Paul Eggert
f28a0f2dd1
Portability fixes for bitsets; this also avoids several GCC warnings.
2002-10-10 07:38:40 +00:00
Paul Eggert
303e6da265
Include bitset.h, not bbitset.h.
2002-10-10 07:35:19 +00:00
Paul Eggert
ef5da92061
Include <stddef.h>, for offsetof.
...
(lbitset_bytes): Adjust to new, unique names for structures.
(lbitset_and, lbitset_and_cmp, lbitset_andn, lbitset_andn_cmp,
lbitset_or, lbitset_or_cmp, lbitset_xor, lbitset_xor_cmp,
lbitset_empty_p, lbitset_ones, lbitset_not, lbitset_subset_p,
lbitset_disjoint_p, debug_lbitset): Supply prototype decls.
(enum_lbitset_find_mode): New type. All instances of parameters of
type enum FOO are now of type enum_FOO, to conform to the C Standard.
(struct lbitset_struct, lbitset, bitset_struct, PFV): Remove.
(lbitset_and, lbitset_andn, lbitset_or, lbitset_xor): New functions.
2002-10-10 07:33:59 +00:00
Paul Eggert
3e0a8627e1
(ebitset_bytes): Adjust to new, unique names for structures.
...
(enum_ebitset_find_mode): New type.
(struct ebitset_struct, ebitset, struct bitset_struct, PFV): Remove.
(ebitset_and, ebitset_andn, ebitset_or,
ebitset_xor, ebitset_copy, ebitset_ones, ebitset_empty_p): New decls.
2002-10-10 07:28:53 +00:00
Paul Eggert
fd5c1e824e
enum -> enum_
2002-10-10 07:26:15 +00:00
Paul Eggert
f5e211a120
(bitsetv_alloc): Return a size that is aligned properly for vectors of
...
objects. Do not assume that adding a header size to a multiple of a
word size yields a value that is properly aligned for the whole union.
(bitsetv_alloc): Add a cast to (void *) to avoid a GCC warning.
2002-10-10 07:25:21 +00:00
Paul Eggert
55e728eb31
(bitset_stats_bytes): Adjust to new, unique names for structures.
...
(bitset_stats_count, bitset_stats_empty_p, bitset_stats_ones,
bitset_stats_zero, bitset_stats_copy, bitset_stats_disjoint_p,
bitset_stats_equal_p, bitset_stats_not, bitset_stats_subset_p,
bitset_stats_and, bitset_stats_and_cmp, bitset_stats_andn,
bitset_stats_andn_cmp, bitset_stats_or, bitset_stats_or_cmp,
bitset_stats_xor, bitset_stats_xor_cmp, bitset_stats_and_or,
bitset_stats_and_or_cmp, bitset_stats_andn_or,
bitset_stats_andn_or_cmp, bitset_stats_or_and,
bitset_stats_or_and_cmp): Supply prototype decls, to improve the
type-checking that GCC can do.
(struct bitset_stats_struct, bitset_stats, struct bitset_struct): Remove.
2002-10-10 07:23:15 +00:00
Paul Eggert
47c8386f83
(struct bitset_struct): Remove, replacing with....
...
(union bitset_union, struct abitset_struct, struct ebitset_struct,
struct lbitset_struct, struct bitset_stats_struct): New types.
All uses of struct bitset_struct changed to union bitset_union,
etc.
(bitset_next, bitset_prev, bitset_only_set_p): Declare.
2002-10-10 07:20:24 +00:00
Paul Eggert
d5c559cde4
(bitset_op4_cmp): Supply prototype decls,
...
to improve the type-checking that GCC can do.
(bitset_and_or_, bitset_andn_or_, bitset_or_and_): New functions.
2002-10-10 07:18:47 +00:00
Paul Eggert
d9d83ef277
(enum_bitset_ops, enum_bitset_type): New types.
...
All instances of parameters of type enum bitset_opts are now of
type enum_bitset_opts, to conform to the C Standard, and similarly
for enum_bitset_type.
(bitset): Now points to a union, not to a struct.
All instances of "struct bitset_struct *" replaced with "bitset".
(bitset_and_or_, bitset_andn_or_, bitset_or_and_): New decls.
2002-10-10 07:15:56 +00:00
Paul Eggert
d4d399fcce
Include <stddef.h>, for offsetof.
...
(abitset_bytes): Return a size that is aligned
properly for vectors of objects. Do not assume that adding a
header size to a multiple of a word size yields a value that is
properly aligned for the whole union.
(abitset_ones, abitset_zero, abitset_empty_p, abitset_copy1,
abitset_not, abitset_equal_p, abitset_subset_p, abitset_disjoint_p,
abitset_and, abitset_and_cmp, abitset_andn, abitset_andn_cmp,
abitset_or, abitset_or_cmp, abitset_xor, abitset_xor_cmp,
abitset_and_or, abitset_and_or_cmp, abitset_andn_or,
abitset_andn_or_cmp, abitset_or_and, abitset_or_and_cmp,
abitset_copy): Supply prototype decls, to improve the type-checking
that GCC can do.
(struct abitset_struct, abitset, struct bitset_struct): Remove.
2002-10-10 07:13:58 +00:00
Paul Eggert
6fbe49845f
* lib/bitset.h (bitset_reset): Do not assume that bitset_word is
...
the same width as int. This reapplies a hunk of the 2002-08-12 patch
<http://mail.gnu.org/pipermail/bison-patches/2002-August/001111.html >,
which was inadvertently undone by the 2002-09-30 patch.
* lib/lbitset.c (debug_lbitset): Do not assume that bitset_word is
the same width as int.
2002-10-07 19:58:00 +00:00
Paul Eggert
7933f2b5dd
Bison should now work on 64-bit hosts.
2002-10-07 06:08:30 +00:00