Skip to content

[config.tex] Create and apply macros denoting first and last core chapters #7191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/config.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
%% Release date
\newcommand{\reldate}{\today}

%% Core chapters
\newcommand{\lastcorechapter}{cpp}

%% Library chapters
\newcommand{\firstlibchapter}{support}
\newcommand{\lastlibchapter}{exec}
2 changes: 1 addition & 1 deletion source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7552,7 +7552,7 @@

\item
an operation that would have undefined or erroneous behavior
as specified in \ref{intro} through \ref{cpp},
as specified in \ref{intro} through \ref{\lastcorechapter},
excluding \ref{dcl.attr.assume} and \ref{dcl.attr.noreturn};
\begin{footnote}
This includes,
Expand Down
8 changes: 4 additions & 4 deletions source/intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
Implementations are allowed, but not required,
to diagnose it\iref{intro.compliance.general}.
Evaluation of a constant expression\iref{expr.const}
never exhibits behavior specified as erroneous in \ref{intro} through \ref{cpp}.
never exhibits behavior specified as erroneous in \ref{intro} through \ref{\lastcorechapter}.
\end{defnote}

\definition{expression-equivalent}{defns.expression.equivalent}
Expand Down Expand Up @@ -644,7 +644,7 @@
issuance of a diagnostic message). Many incorrect program constructs do
not engender undefined behavior; they are required to be diagnosed.
Evaluation of a constant expression\iref{expr.const} never exhibits behavior explicitly
specified as undefined in \ref{intro} through \ref{cpp}.
specified as undefined in \ref{intro} through \ref{\lastcorechapter}.
\end{defnote}

\indexdefn{behavior!unspecified}%
Expand Down Expand Up @@ -808,7 +808,7 @@
supports all the facilities described in this document, while
a freestanding implementation
supports the entire \Cpp{} language
described in \ref{lex} through \ref{cpp} and
described in \ref{lex} through \ref{\lastcorechapter} and
the subset of the library facilities described in \ref{compliance}.

\pnum
Expand Down Expand Up @@ -958,7 +958,7 @@
\pnum
\indextext{standard!structure of|(}%
\indextext{standard!structure of}%
\ref{lex} through \ref{cpp} describe the \Cpp{} programming
\ref{lex} through \ref{\lastcorechapter} describe the \Cpp{} programming
language. That description includes detailed syntactic specifications in
a form described in~\ref{syntax}. For convenience, \ref{gram}
repeats all such syntactic specifications.
Expand Down
Loading