aboutsummaryrefslogtreecommitdiff
path: root/bfd/obstack.h
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-04-14 02:23:48 +0000
committerSteve Chamberlain <steve@cygnus>1991-04-14 02:23:48 +0000
commitaa802a324642d093973ad207a07351f5c354751e (patch)
treee176f6cfc3fe5307b75b186f2000a628648f473e /bfd/obstack.h
parent0ef6f0192d06aa2b346ea4c1fe013abc39e1b562 (diff)
downloadgdb-aa802a324642d093973ad207a07351f5c354751e.zip
gdb-aa802a324642d093973ad207a07351f5c354751e.tar.gz
gdb-aa802a324642d093973ad207a07351f5c354751e.tar.bz2
Just before a merge with chrisbs stuff
Diffstat (limited to 'bfd/obstack.h')
-rwxr-xr-xbfd/obstack.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/bfd/obstack.h b/bfd/obstack.h
index 0f3b37c..a4898ec 100755
--- a/bfd/obstack.h
+++ b/bfd/obstack.h
@@ -108,11 +108,11 @@ Summary:
may ignore the byte-within-word field of the pointer. */
#ifndef __PTR_TO_INT
-#define __PTR_TO_INT(P) ((P) - (char *)0)
+#define __PTR_TO_INT(P) ((P) - (char*)0)
#endif
#ifndef __INT_TO_PTR
-#define __INT_TO_PTR(P) ((P) + (char *)0)
+#define __INT_TO_PTR(P) ((P) + (char*)0)
#endif
struct _obstack_chunk /* Lives at front of each chunk. */
@@ -131,11 +131,8 @@ struct obstack /* control current object in current chunk */
char *chunk_limit; /* address of char after current chunk */
int temp; /* Temporary for some macros. */
int alignment_mask; /* Mask of alignment for each object. */
-#ifdef __STDC__
- void *(*chunkfun) (); /* User's fcn to allocate a chunk. */
-#else
- char *(*chunkfun) (); /* User's fcn to allocate a chunk. */
-#endif
+
+ PTR(*chunkfun) (); /* User's fcn to allocate a chunk. */
void (*freefun) (); /* User's function to free a chunk. */
};