aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/misc.h
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2011-07-08 02:27:18 +0000
committerHans-Peter Nilsson <hp@axis.com>2011-07-08 02:27:18 +0000
commit7e60d30187f19a9007dc59d3d5aed847d3dada95 (patch)
treeb7d07a72a90acbb6e3b33f70a1694fa15d454e78 /sim/igen/misc.h
parent26e0f8dbd817f65f3618ea14e8694d5f80eb487f (diff)
downloadgdb-7e60d30187f19a9007dc59d3d5aed847d3dada95.zip
gdb-7e60d30187f19a9007dc59d3d5aed847d3dada95.tar.gz
gdb-7e60d30187f19a9007dc59d3d5aed847d3dada95.tar.bz2
Remove all #if 0'd code.
* filter.c: Remove #if 0'd function it_is. (main): Remove #if 0'd code. * gen-engine.c: Remove #if 0'd functions print_jump, print_jump_insn, print_jump_definition, print_jump_internal_function, print_jump_body. (gen_engine_c): Remove #if 0'd code. * gen-idecode.c: Remove #if 0'd functions print_jump print_jump, print_jump_insn, print_jump_definition, print_jump_internal_function, print_jump_until_stop_body. * gen-model.c: Remove #if 0'd functions model_c_or_h_data, model_c_or_h_function, gen_model_h, model_c_insn, model_c_function, gen_model_c and types model_c_passed_data and struct _model_c_passed_data. * gen.c: Remove #if 0'd type constant_field_types and function insn_field_is_constant. (gen_entry_find_opcode_field): Remove #if 0'd code. * ld-insn.c (parse_insn_model_record): Remove #if 0'd code. * misc.h (STRDUP, STRNDUP): Remove #if 0'd macros.
Diffstat (limited to 'sim/igen/misc.h')
-rw-r--r--sim/igen/misc.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sim/igen/misc.h b/sim/igen/misc.h
index 808570a..76a29b6 100644
--- a/sim/igen/misc.h
+++ b/sim/igen/misc.h
@@ -110,10 +110,6 @@ do { \
#define ZALLOC(TYPE) ((TYPE*) zalloc (sizeof(TYPE)))
#define NZALLOC(TYPE,N) ((TYPE*) zalloc (sizeof(TYPE) * (N)))
-#if 0
-#define STRDUP(STRING) (strcpy (zalloc (strlen (STRING) + 1), (STRING)))
-#define STRNDUP(STRING,LEN) (strncpy (zalloc ((LEN) + 1), (STRING), (LEN)))
-#endif
extern void *zalloc (long size);