From e832bf82cfd98a477867f71394fd933c59d02556 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 28 Feb 2019 15:47:20 +0106 Subject: embedded-devel: remove unnecessary "cut" in command The -dM argument shows the built-in macros. Cutting the #define from the output not only make the command unnecessarily complex, but also works against illustrating that they are macros. Signed-off-by: John Ogness --- application-devel/embedded-devel/pres_embedded-devel_en.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application-devel/embedded-devel/pres_embedded-devel_en.tex b/application-devel/embedded-devel/pres_embedded-devel_en.tex index e2f0698..99c9aa8 100644 --- a/application-devel/embedded-devel/pres_embedded-devel_en.tex +++ b/application-devel/embedded-devel/pres_embedded-devel_en.tex @@ -134,12 +134,12 @@ gcc -E -C hello.c show pre-defined/internal macros \begin{verbatim} -$ gcc -E -dM - < /dev/null | cut -c 9- | sort +$ gcc -E -dM - < /dev/null | sort [...] -__SIZEOF_DOUBLE__ 8 -__SIZEOF_FLOAT__ 4 -__SIZEOF_INT__ 4 -__SIZEOF_LONG__ 8 +#define __SIZEOF_DOUBLE__ 8 +#define __SIZEOF_FLOAT__ 4 +#define __SIZEOF_INT__ 4 +#define __SIZEOF_LONG__ 8 [...] \end{verbatim} \end{frame} -- cgit v1.2.3