2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>

* include/grub/types.h (grub_host_addr_t): Rename to
	grub_target_addr_t.
	(grub_host_off_t): Rename to grub_target_off_t.
	(grub_host_size_t): Rename to grub_target_size_t.
	(grub_host_ssize_t): Rename to grub_target_ssize_t.
	Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.

	* include/grub/kernel.h (struct grub_module_header): Change type
	of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
	(grub_module_info): Likewise.
This commit is contained in:
jeroen 2006-06-08 12:38:44 +00:00
parent 051988bb87
commit b786f3b5c3
3 changed files with 26 additions and 13 deletions

View file

@ -69,16 +69,16 @@ typedef unsigned long long grub_uint64_t;
#endif
/* Misc types. */
#if SIZEOF_VOID_P == 8
typedef grub_uint64_t grub_host_addr_t;
typedef grub_uint64_t grub_host_off_t;
typedef grub_uint64_t grub_host_size_t;
typedef grub_int64_t grub_host_ssize_t;
#if GRUB_TARGET_SIZEOF_VOID_P == 8
typedef grub_uint64_t grub_target_addr_t;
typedef grub_uint64_t grub_target_off_t;
typedef grub_uint64_t grub_target_size_t;
typedef grub_int64_t grub_target_ssize_t;
#else
typedef grub_uint32_t grub_host_addr_t;
typedef grub_uint32_t grub_host_off_t;
typedef grub_uint32_t grub_host_size_t;
typedef grub_int32_t grub_host_ssize_t;
typedef grub_uint32_t grub_target_addr_t;
typedef grub_uint32_t grub_target_off_t;
typedef grub_uint32_t grub_target_size_t;
typedef grub_int32_t grub_target_ssize_t;
#endif
#if GRUB_CPU_SIZEOF_VOID_P == 8