mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
* src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
structs with non literals. * src/scan-skel.l: never-interactive. * src/conflicts.c (enum conflict_resolution_e): No trailing comma. * src/getargs.c (usage): Split long literal strings. Reported by Hans Aberg.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
||||
2002-06-03 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
|
||||
structs with non literals.
|
||||
* src/scan-skel.l: never-interactive.
|
||||
* src/conflicts.c (enum conflict_resolution_e): No trailing
|
||||
comma.
|
||||
* src/getargs.c (usage): Split long literal strings.
|
||||
Reported by Hans Aberg.
|
||||
|
||||
2002-05-28 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* data/bison.c++: Use C++ ostreams.
|
||||
|
||||
@@ -48,7 +48,7 @@ enum conflict_resolution_e
|
||||
reduce_resolution,
|
||||
left_resolution,
|
||||
right_resolution,
|
||||
nonassoc_resolution,
|
||||
nonassoc_resolution
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -137,7 +137,10 @@ Output:\n\
|
||||
-b, --file-prefix=PREFIX specify a PREFIX for output files\n\
|
||||
-o, --output=FILE leave output to FILE\n\
|
||||
-g, --graph also produce a VCG description of the automaton\n\
|
||||
\n\
|
||||
"), stream);
|
||||
putc ('\n', stream);
|
||||
|
||||
fputs (_("\
|
||||
THINGS is a list of comma separated words that can include:\n\
|
||||
`state' describe the states\n\
|
||||
`itemset' complete the core item sets with their closure\n\
|
||||
|
||||
@@ -72,7 +72,8 @@ muscle_init (void)
|
||||
void
|
||||
muscle_insert (const char *key, const char *value)
|
||||
{
|
||||
muscle_entry_t pair = { key, NULL };
|
||||
muscle_entry_t pair;
|
||||
pair.key = key;
|
||||
muscle_entry_t *entry = hash_lookup (muscle_table, &pair);
|
||||
|
||||
if (!entry)
|
||||
@@ -88,7 +89,8 @@ muscle_insert (const char *key, const char *value)
|
||||
const char*
|
||||
muscle_find (const char *key)
|
||||
{
|
||||
muscle_entry_t pair = { key, NULL };
|
||||
muscle_entry_t pair;
|
||||
pair.key = key;
|
||||
muscle_entry_t *result = hash_lookup (muscle_table, &pair);
|
||||
return result ? result->value : NULL;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA. */
|
||||
|
||||
%option nodefault noyywrap nounput
|
||||
%option nodefault noyywrap nounput never-interactive
|
||||
%option prefix="skel_" outfile="lex.yy.c"
|
||||
|
||||
%{
|
||||
|
||||
Reference in New Issue
Block a user