You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/22 09:46:52 UTC
[incubator-nuttx] 01/02: Remove unused _intptr_t and _uintptr_t
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit c3ff79a87ccf604778c01eee228087c9f06ce96b
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Sun Nov 22 15:40:35 2020 +0900
Remove unused _intptr_t and _uintptr_t
---
arch/renesas/include/sh1Ptypes.h | 5 -----
arch/x86_64/include/intel64/types.h | 5 -----
2 files changed, 10 deletions(-)
diff --git a/arch/renesas/include/sh1Ptypes.h b/arch/renesas/include/sh1Ptypes.h
index aeb288a..9b130d1 100644
--- a/arch/renesas/include/sh1Ptypes.h
+++ b/arch/renesas/include/sh1Ptypes.h
@@ -76,11 +76,6 @@ typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
-/* A pointer is 4 bytes */
-
-typedef signed int _intptr_t;
-typedef unsigned int _uintptr_t;
-
/* This is the size of the interrupt state save returned by
* up_irq_save()
*/
diff --git a/arch/x86_64/include/intel64/types.h b/arch/x86_64/include/intel64/types.h
index aca6a76..6a52fe0 100644
--- a/arch/x86_64/include/intel64/types.h
+++ b/arch/x86_64/include/intel64/types.h
@@ -65,11 +65,6 @@ typedef unsigned long _uint64_t;
typedef _int64_t _intmax_t;
typedef _uint64_t _uintmax_t;
-/* A pointer is 8 bytes */
-
-typedef signed long long _intptr_t;
-typedef unsigned long long _uintptr_t;
-
#if defined(__SIZE_TYPE__)
/* If __SIZE_TYPE__ is defined we define ssize_t based on size_t.
* We simply change "unsigned" to "signed" for this single definition