aboutsummaryrefslogtreecommitdiff
path: root/gas/hex-value.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-01-12 23:00:26 +0000
committerKen Raeburn <raeburn@cygnus>1995-01-12 23:00:26 +0000
commit3a762a0bfdb9e74fa2ca4b41b998d64d9a178d25 (patch)
tree54130f81280c11d1222cde450b2c29627df89f2c /gas/hex-value.c
parent5e815a37fa6b264763168c67ef4452c0112a2d26 (diff)
downloadgdb-3a762a0bfdb9e74fa2ca4b41b998d64d9a178d25.zip
gdb-3a762a0bfdb9e74fa2ca4b41b998d64d9a178d25.tar.gz
gdb-3a762a0bfdb9e74fa2ca4b41b998d64d9a178d25.tar.bz2
Use new hex-value code in libiberty:
* Makefile.in (VMS_OTHER_OBJS): Add ../libiberty/hex.o. (OBJS): Delete hex-value.o. (REAL_SOURCES): Delete hex-value.c. (hex-value.o): Delete dependencies. * hex-value.c: Deleted. * as.c (main): Call hex_init. * expr.c, config/tc-mips.c: Include libiberty.h. Replace hex_value array references with hex_* macros.
Diffstat (limited to 'gas/hex-value.c')
-rw-r--r--gas/hex-value.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/gas/hex-value.c b/gas/hex-value.c
deleted file mode 100644
index 114641b..0000000
--- a/gas/hex-value.c
+++ /dev/null
@@ -1,62 +0,0 @@
-/* hex_value.c - char=>radix-value -
- Copyright (C) 1987, 1990, 1991, 1992, 1994 Free Software Foundation, Inc.
-
- This file is part of GAS, the GNU Assembler.
-
- GAS is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- GAS is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with GAS; see the file COPYING. If not, write to
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-/*
- * Export: Hex_value[]. Converts digits to their radix-values.
- * As distributed assumes 8 bits per char (256 entries) and ASCII.
- */
-
-#define __ (42) /* blatently illegal digit value */
-/* exceeds any normal radix */
-
-#if (__STDC__ != 1)
-#ifndef const
-#define const /* empty */
-#endif
-#endif
-
-const char
- hex_value[256] =
-{ /* for fast ASCII -> binary */
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, __, __, __, __, __, __,
- __, 10, 11, 12, 13, 14, 15, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, 10, 11, 12, 13, 14, 15, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
- __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __
-};
-
-#ifdef VMS
-dummy2 ()
-{
-}
-
-#endif
-
-/* end of hex_value.c */