2004-02-16 Andrew Cagney <cagney@redhat.com>
* bfd-in.h (file_ptr, ufile_ptr): Configure type using @bfd_file_ptr@. * bfd-in2.h: Re-generate.
This commit is contained in:
parent
c98302934c
commit
d7ce59e3ac
3 changed files with 14 additions and 20 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-02-16 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
|
* bfd-in.h (file_ptr, ufile_ptr): Configure type using
|
||||||
|
@bfd_file_ptr@.
|
||||||
|
* bfd-in2.h: Re-generate.
|
||||||
|
|
||||||
2004-02-14 Andrew Cagney <cagney@redhat.com>
|
2004-02-14 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
* configure.host (HDEFINES): When hppa*-*-hpux*, define
|
* configure.host (HDEFINES): When hppa*-*-hpux*, define
|
||||||
|
|
14
bfd/bfd-in.h
14
bfd/bfd-in.h
|
@ -160,16 +160,10 @@ typedef unsigned long bfd_size_type;
|
||||||
|
|
||||||
#endif /* not BFD64 */
|
#endif /* not BFD64 */
|
||||||
|
|
||||||
/* A pointer to a position in a file. */
|
/* An offset into a file. BFD always uses the largest possible offset
|
||||||
/* FIXME: This should be using off_t from <sys/types.h>.
|
based on the build time availability of fseek, fseeko, or fseeko64. */
|
||||||
For now, try to avoid breaking stuff by not including <sys/types.h> here.
|
typedef @bfd_file_ptr@ file_ptr;
|
||||||
This will break on systems with 64-bit file offsets (e.g. 4.4BSD).
|
typedef unsigned @bfd_file_ptr@ ufile_ptr;
|
||||||
Probably the best long-term answer is to avoid using file_ptr AND off_t
|
|
||||||
in this header file, and to handle this in the BFD implementation
|
|
||||||
rather than in its interface. */
|
|
||||||
/* typedef off_t file_ptr; */
|
|
||||||
typedef bfd_signed_vma file_ptr;
|
|
||||||
typedef bfd_vma ufile_ptr;
|
|
||||||
|
|
||||||
extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
|
extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
|
||||||
extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
|
extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
|
||||||
|
|
|
@ -167,16 +167,10 @@ typedef unsigned long bfd_size_type;
|
||||||
|
|
||||||
#endif /* not BFD64 */
|
#endif /* not BFD64 */
|
||||||
|
|
||||||
/* A pointer to a position in a file. */
|
/* An offset into a file. BFD always uses the largest possible offset
|
||||||
/* FIXME: This should be using off_t from <sys/types.h>.
|
based on the build time availability of fseek, fseeko, or fseeko64. */
|
||||||
For now, try to avoid breaking stuff by not including <sys/types.h> here.
|
typedef @bfd_file_ptr@ file_ptr;
|
||||||
This will break on systems with 64-bit file offsets (e.g. 4.4BSD).
|
typedef unsigned @bfd_file_ptr@ ufile_ptr;
|
||||||
Probably the best long-term answer is to avoid using file_ptr AND off_t
|
|
||||||
in this header file, and to handle this in the BFD implementation
|
|
||||||
rather than in its interface. */
|
|
||||||
/* typedef off_t file_ptr; */
|
|
||||||
typedef bfd_signed_vma file_ptr;
|
|
||||||
typedef bfd_vma ufile_ptr;
|
|
||||||
|
|
||||||
extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
|
extern void bfd_sprintf_vma (bfd *, char *, bfd_vma);
|
||||||
extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
|
extern void bfd_fprintf_vma (bfd *, void *, bfd_vma);
|
||||||
|
|
Loading…
Add table
Reference in a new issue