Skip to content

Commit

Permalink
Merge pull request pgf-tikz#1108 from hmenke/flatten
Browse files Browse the repository at this point in the history
Flatten the loading hierarchy
  • Loading branch information
hmenke committed Dec 16, 2021
2 parents 28b9756 + 5d099a8 commit 475b536
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 34 deletions.
13 changes: 8 additions & 5 deletions tex/generic/pgf/basiclayer/pgfcore.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
\newif\ifpgf@draftmode
\def\pgf@typeout{\immediate\write0}

\input pgfmath.code.tex
\input pgfint.code.tex
\ifdefined\pgfmathloaded\else
\input pgfmath.code.tex
\fi

\ifdefined\pgfintloaded\else
\input pgfint.code.tex
\fi

\input pgfcorepoints.code.tex
\input pgfcorepathconstruct.code.tex
Expand All @@ -27,12 +32,10 @@
\input pgfcorearrows.code.tex
\input pgfcoreshade.code.tex
\input pgfcoreimage.code.tex
\input pgfcoreexternal.code.tex
\input pgfcorelayers.code.tex
\input pgfcoretransparency.code.tex
\input pgfcorepatterns.code.tex
\input pgfcorerdf.code.tex

\pgfutil@ifundefined{pgf@texdist@protect}{%
\def\pgf@texdist@protect{}%
}{}
\endinput
2 changes: 0 additions & 2 deletions tex/generic/pgf/basiclayer/pgfcoreimage.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,4 @@
\pgfuseimage{pgflastimage}}


\input pgfcoreexternal.code.tex

\endinput
11 changes: 11 additions & 0 deletions tex/generic/pgf/math/pgfmath.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
\input pgfkeys.code.tex
\fi

\input pgfmathutil.code.tex
\input pgfmathparser.code.tex
\input pgfmathfunctions.code.tex
\input pgfmathfunctions.basic.code.tex
\input pgfmathfunctions.trigonometric.code.tex
\input pgfmathfunctions.random.code.tex
\input pgfmathfunctions.comparison.code.tex
\input pgfmathfunctions.base.code.tex
\input pgfmathfunctions.round.code.tex
\input pgfmathfunctions.misc.code.tex
\input pgfmathfunctions.integerarithmetics.code.tex
\input pgfmathcalc.code.tex
\input pgfmathfloat.code.tex

Expand Down
5 changes: 0 additions & 5 deletions tex/generic/pgf/math/pgfmathcalc.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
%
% Version 1.414213 29/9/2007

\input pgfmathutil.code.tex
\input pgfmathparser.code.tex
\input pgfmathfunctions.code.tex
%\input pgfmathbase.code.tex

% \pgfmathsetlength, \pgfmathaddtolength
%
% #1 = dimension register
Expand Down
7 changes: 1 addition & 6 deletions tex/generic/pgf/math/pgfmathfloat.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1637,12 +1637,7 @@
% variables in /pgf/number format).
%
% You may specify optional arguments with \pgfmathprintnumber[...].
\def\pgfmathprintnumber{%
% \protect allows to supply \pgfmathprintnumber inside of latex
% captions. The \csname yields \relax in case protect is undefined.
\pgf@texdist@protect\pgfmathprintnumber@protected
}%
\def\pgfmathprintnumber@protected{%
\pgfutil@protected\def\pgfmathprintnumber{%
\pgfutil@ifnextchar[%
{\pgfmathprintnumber@OPT}%
{\pgfmathprintnumber@noopt}%
Expand Down
11 changes: 0 additions & 11 deletions tex/generic/pgf/math/pgfmathfunctions.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -262,17 +262,6 @@
\pgfmathredeclarefunction{#1}{#2}%
}%

\input pgfmathfunctions.basic.code.tex
\input pgfmathfunctions.trigonometric.code.tex
\input pgfmathfunctions.random.code.tex
\input pgfmathfunctions.comparison.code.tex
\input pgfmathfunctions.base.code.tex
\input pgfmathfunctions.round.code.tex
\input pgfmathfunctions.misc.code.tex
\input pgfmathfunctions.integerarithmetics.code.tex



% Local Variables:
% tab-width: 2
% End:
4 changes: 3 additions & 1 deletion tex/generic/pgf/systemlayer/pgfsys.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@


% Load key mechanism
\input pgfkeys.code.tex
\ifdefined\pgfkeysloaded\else
\input pgfkeys.code.tex
\fi

% "pgf" is a family
\pgfkeys{/pgf/.is family}
Expand Down
4 changes: 3 additions & 1 deletion tex/generic/pgf/utilities/pgfcalendar.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

\ProvidesFileRCS{pgfcalendar.code.tex}

\input pgfint.code.tex
\ifdefined\pgfintloaded\else
\input pgfint.code.tex
\fi

% Translation stuff

Expand Down
4 changes: 3 additions & 1 deletion tex/generic/pgf/utilities/pgffor.code.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
\ProvidesPackageRCS{pgffor.code.tex}

% pgfmath is needed
\input pgfmath.code.tex
\ifdefined\pgfmathloaded\else
\input pgfmath.code.tex
\fi

\newdimen\pgffor@iter
\newdimen\pgffor@skip
Expand Down
2 changes: 0 additions & 2 deletions tex/latex/pgf/basiclayer/pgfcore.sty
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
\RequirePackage{keyval}
\RequirePackage{xcolor}

\def\pgf@texdist@protect{\protect}%

\input{pgfcore.code.tex}

\endinput

0 comments on commit 475b536

Please sign in to comment.