Skip to content

Commit

Permalink
refactor: Simplify loading by delegating to top-level files
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Menke <[email protected]>
  • Loading branch information
hmenke committed Dec 15, 2021
1 parent 28b9756 commit 17352e2
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 23 deletions.
10 changes: 8 additions & 2 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,6 +32,7 @@
\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
Expand Down
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
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

0 comments on commit 17352e2

Please sign in to comment.