summaryrefslogtreecommitdiff
path: root/sim/igen/ld-cache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-22 04:20:49 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-22 04:20:49 +0000
commit9bb32da533743f61ed48de0f95b75bb365dca0bc (patch)
treea9fad0d9ca854d4f64acbc34d1c08c10e0fc7d6e /sim/igen/ld-cache.c
parent2a111377e9ce0a79728448ec48b5ae1da540e9d5 (diff)
downloadgdb-9bb32da533743f61ed48de0f95b75bb365dca0bc.tar.gz
2002-11-21 Andrew Cagney <ac131313@redhat.com>
* filter.c: Re-indent. * filter.h, filter_host.h, gen-engine.c, gen-engine.h: Ditto. * gen-icache.c, gen-icache.h, gen-idecode.c: Ditto. * gen-idecode.h, gen-itable.c, gen-itable.h: Ditto. * gen-model.c, gen-model.h, gen-semantics.c: Ditto. * gen-semantics.h, gen-support.c, gen-support.h: Ditto. * gen.c, gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto. * ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto. * lf.h, misc.c, misc.h, table.c, table.h: Ditto.
Diffstat (limited to 'sim/igen/ld-cache.c')
-rw-r--r--sim/igen/ld-cache.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sim/igen/ld-cache.c b/sim/igen/ld-cache.c
index 3fa75b709c5..c46aa9a1463 100644
--- a/sim/igen/ld-cache.c
+++ b/sim/igen/ld-cache.c
@@ -37,7 +37,8 @@
#endif
-enum {
+enum
+{
ca_type,
ca_field_name,
ca_derived_name,
@@ -47,10 +48,10 @@ enum {
};
static const name_map cache_type_map[] = {
- { "cache", cache_value },
- { "compute", compute_value },
- { "scratch", scratch_value },
- { NULL, 0 },
+ {"cache", cache_value},
+ {"compute", compute_value},
+ {"scratch", scratch_value},
+ {NULL, 0},
};
@@ -67,8 +68,7 @@ load_cache_table (char *file_name)
new_rule->line = entry->line;
new_rule->entry_type = name2i (entry->field[ca_type], cache_type_map);
new_rule->name = entry->field[ca_derived_name];
- filter_parse (&new_rule->original_fields,
- entry->field[ca_field_name]);
+ filter_parse (&new_rule->original_fields, entry->field[ca_field_name]);
new_rule->type = entry->field[ca_type_def];
/* expression is the concatenation of the remaining fields */
if (entry->nr_fields > ca_expression)
@@ -101,7 +101,7 @@ load_cache_table (char *file_name)
igen_options options;
int
-main(int argc, char **argv)
+main (int argc, char **argv)
{
cache_entry *rules = NULL;
lf *l;