* 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:
Akim Demaille
2002-06-03 07:30:03 +00:00
parent 9411f454b0
commit 86eff18354
5 changed files with 20 additions and 5 deletions

View File

@@ -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.

View File

@@ -48,7 +48,7 @@ enum conflict_resolution_e
reduce_resolution,
left_resolution,
right_resolution,
nonassoc_resolution,
nonassoc_resolution
};

View File

@@ -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\

View File

@@ -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;
}

View File

@@ -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"
%{