+Sat Mar 4 11:49:21 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * defs.h (store_address, store_unsigned_integer, store_address):
+ Replace PTR with void* in delcaration.
+ * findvar.c (extract_signed_integer, extract_unsigned_integer,
+ extract_long_unsigned_integer, extract_address,
+ store_signed_integer, store_unsigned_integer, store_address):
+ Convert definition to ISO-C. Replace PTR with void*.
+
Sat Mar 4 10:57:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
* defs.h (make_cleanup_func): Document as deprecated.
extern CORE_ADDR extract_address (void *, int);
-extern void store_signed_integer (PTR, int, LONGEST);
+extern void store_signed_integer (void *, int, LONGEST);
-extern void store_unsigned_integer (PTR, int, ULONGEST);
+extern void store_unsigned_integer (void *, int, ULONGEST);
-extern void store_address (PTR, int, LONGEST);
+extern void store_address (void *, int, LONGEST);
/* Setup definitions for host and target floating point formats. We need to
consider the format for `float', `double', and `long double' for both target
you lose
#endif
- LONGEST
-extract_signed_integer (addr, len)
- PTR addr;
- int len;
+LONGEST
+extract_signed_integer (void *addr, int len)
{
LONGEST retval;
unsigned char *p;
}
ULONGEST
-extract_unsigned_integer (addr, len)
- PTR addr;
- int len;
+extract_unsigned_integer (void *addr, int len)
{
ULONGEST retval;
unsigned char *p;
function returns 1 and sets *PVAL. Otherwise it returns 0. */
int
-extract_long_unsigned_integer (addr, orig_len, pval)
- PTR addr;
- int orig_len;
- LONGEST *pval;
+extract_long_unsigned_integer (void *addr, int orig_len, LONGEST *pval)
{
char *p, *first_addr;
int len;
}
CORE_ADDR
-extract_address (addr, len)
- PTR addr;
- int len;
+extract_address (void *addr, int len)
{
/* Assume a CORE_ADDR can fit in a LONGEST (for now). Not sure
whether we want this to be true eventually. */
}
void
-store_signed_integer (addr, len, val)
- PTR addr;
- int len;
- LONGEST val;
+store_signed_integer (void *addr, int len, LONGEST val)
{
unsigned char *p;
unsigned char *startaddr = (unsigned char *) addr;
}
void
-store_unsigned_integer (addr, len, val)
- PTR addr;
- int len;
- ULONGEST val;
+store_unsigned_integer (void *addr, int len, ULONGEST val)
{
unsigned char *p;
unsigned char *startaddr = (unsigned char *) addr;
gdb-local memory pointed to by "addr"
for "len" bytes. */
void
-store_address (addr, len, val)
- PTR addr;
- int len;
- LONGEST val;
+store_address (void *addr, int len, LONGEST val)
{
store_unsigned_integer (addr, len, val);
}