You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/05/27 04:16:08 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 opened a new pull request #1135: stddef.h: Add max_align_t typedef
xiaoxiang781216 opened a new pull request #1135:
URL: https://github.com/apache/incubator-nuttx/pull/1135
defined by C11:
https://en.cppreference.com/w/c/types/max_align_t
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
Change-Id: I6f6094d054c475031ff83f648aa43f482d86b930
## Summary
## Impact
## Testing
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] patacongo merged pull request #1135: stddef.h: Add max_align_t typedef
Posted by GitBox <gi...@apache.org>.
patacongo merged pull request #1135:
URL: https://github.com/apache/incubator-nuttx/pull/1135
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #1135: stddef.h: Add max_align_t typedef
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #1135:
URL: https://github.com/apache/incubator-nuttx/pull/1135#discussion_r430875238
##########
File path: include/stddef.h
##########
@@ -99,4 +99,24 @@
* Reference: Opengroup.org
*/
+/* Type whose alignment is supported in every context and is at least
+ * as great as that of any standard type not using alignment specifiers.
+ */
+
+typedef struct
Review comment:
This implementation is follow gcc's version:
https://github.com/gcc-mirror/gcc/blob/master/gcc/ginclude/stddef.h#L408-L428
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] yamt commented on a change in pull request #1135: stddef.h: Add max_align_t typedef
Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #1135:
URL: https://github.com/apache/incubator-nuttx/pull/1135#discussion_r430865809
##########
File path: include/stddef.h
##########
@@ -99,4 +99,24 @@
* Reference: Opengroup.org
*/
+/* Type whose alignment is supported in every context and is at least
+ * as great as that of any standard type not using alignment specifiers.
+ */
+
+typedef struct
Review comment:
it's simpler to use union
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org