diff options
| author | John Ogness <john.ogness@linutronix.de> | 2019-02-28 15:47:20 +0106 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2019-02-28 15:47:20 +0106 |
| commit | e832bf82cfd98a477867f71394fd933c59d02556 (patch) | |
| tree | fe7f0e0e464c1d68ba469800c2f43d121f3ab046 | |
| parent | 68c9546756610ceda38a0274eefdaa48d37b6c9f (diff) | |
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 <john.ogness@linutronix.de>
| -rw-r--r-- | application-devel/embedded-devel/pres_embedded-devel_en.tex | 10 |
1 files 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} |
