Skip to content

Commit f4ff8ca

Browse files
committed
[cpp] Align comments to common columns and fix some typography
1 parent 9485e61 commit f4ff8ca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/preprocessor.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@
572572
#if VERSION == 1
573573
#define INCFILE "vers1.h"
574574
#elif VERSION == 2
575-
#define INCFILE "vers2.h" // and so on
575+
#define INCFILE "vers2.h" // and so on
576576
#else
577577
#define INCFILE "versN.h"
578578
#endif
@@ -1022,7 +1022,7 @@
10221022
#define LOW LOW ", world"
10231023

10241024
debug(1, 2);
1025-
fputs(str(strncmp("abc@\textbackslash@0d", "abc", '@\textbackslash@4') // this goes away
1025+
fputs(str(strncmp("abc@\textbackslash@0d", "abc", '@\textbackslash@4') // this goes away
10261026
== 0) str(: @\atsign\textbackslash@n), s);
10271027
#include xstr(INCFILE(2).h)
10281028
glue(HIGH, LOW);
@@ -1034,7 +1034,7 @@
10341034
\begin{codeblock}
10351035
printf("x" "1" "= %d, x" "2" "= %s", x1, x2);
10361036
fputs("strncmp(@\textbackslash@"abc@\textbackslash\textbackslash@0d@\textbackslash@", @\textbackslash@"abc@\textbackslash@", '@\textbackslash\textbackslash@4') == 0" ": @\atsign\textbackslash@n", s);
1037-
#include "vers2.h" @\textit{(after macro replacement, before file access)}@
1037+
#include "vers2.h" @\textrm{(\textit{after macro replacement, before file access})}@
10381038
"hello";
10391039
"hello" ", world"
10401040
\end{codeblock}
@@ -1044,7 +1044,7 @@
10441044
\begin{codeblock}
10451045
printf("x1= %d, x2= %s", x1, x2);
10461046
fputs("strncmp(@\textbackslash@"abc@\textbackslash\textbackslash@0d@\textbackslash@", @\textbackslash@"abc@\textbackslash@", '@\textbackslash\textbackslash@4') == 0: @\atsign\textbackslash@n", s);
1047-
#include "vers2.h" @\textit{(after macro replacement, before file access)}@
1047+
#include "vers2.h" @\textrm{(\textit{after macro replacement, before file access})}@
10481048
"hello";
10491049
"hello, world"
10501050
\end{codeblock}
@@ -1091,10 +1091,10 @@
10911091
But the following redefinitions are invalid:
10921092

10931093
\begin{codeblock}
1094-
#define OBJ_LIKE (0) // different token sequence
1095-
#define OBJ_LIKE (1 - 1) // different white space
1096-
#define FUNC_LIKE(b) ( a ) // different parameter usage
1097-
#define FUNC_LIKE(b) ( b ) // different parameter spelling
1094+
#define OBJ_LIKE (0) // different token sequence
1095+
#define OBJ_LIKE (1 - 1) // different white space
1096+
#define FUNC_LIKE(b) ( a ) // different parameter usage
1097+
#define FUNC_LIKE(b) ( b ) // different parameter spelling
10981098
\end{codeblock}
10991099
\end{example}
11001100

0 commit comments

Comments
 (0)