summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty')
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty38
1 files changed, 19 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty b/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
index 435a08cffa2..029b2121e59 100644
--- a/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
+++ b/Master/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
@@ -94,7 +94,7 @@
\fi
\expandafter\x\csname ver@kvsetkeys.sty\endcsname
\ProvidesPackage{kvsetkeys}%
- [2010/01/28 v1.8 Key value parser (HO)]
+ [2010/03/01 v1.9 Key value parser (HO)]
\begingroup
\catcode123 1 % {
\catcode125 2 % }
@@ -158,7 +158,7 @@
\def\KVS@Empty{}
\long\def\KVS@FirstOfTwo#1#2{#1}
\long\def\KVS@SecondOfTwo#1#2{#2}
-\def\KVS@IfEmpty#1{%
+\long\def\KVS@IfEmpty#1{%
& \edef\KVS@Temp{\etex@unexpanded{#1}}%
$ \begingroup
$ \toks@{#1}%
@@ -170,7 +170,7 @@ $ \expandafter\endgroup
\expandafter\KVS@SecondOfTwo
\fi
}
-\def\kv@normalize#1{%
+\long\def\kv@normalize#1{%
\begingroup
\toks@{,#1,}%
\KVS@Comma
@@ -203,7 +203,7 @@ $ \expandafter\endgroup
\toks@\expandafter{\expandafter}\expandafter
\KVS@@Comma\the\toks@~\KVS@Nil
}%
- \def\KVS@@Comma#1~#2\KVS@Nil{%
+ \long\def\KVS@@Comma#1~#2\KVS@Nil{%
\toks@\expandafter{\the\toks@#1}%
\KVS@IfEmpty{#2}{%
}{%
@@ -211,10 +211,10 @@ $ \expandafter\endgroup
}%
}%
}
-\def\KVS@SpaceComma#1{%
+\long\def\KVS@SpaceComma#1{%
\expandafter\KVS@@SpaceComma\the\toks@#1,\KVS@Nil
}
-\def\KVS@@SpaceComma#1 ,#2\KVS@Nil{%
+\long\def\KVS@@SpaceComma#1 ,#2\KVS@Nil{%
\KVS@IfEmpty{#2}{%
\toks@{#1}%
}{%
@@ -225,7 +225,7 @@ $ \expandafter\endgroup
\def\KVS@CommaSpace{%
\expandafter\KVS@@CommaSpace\the\toks@, \KVS@Nil
}
-\def\KVS@@CommaSpace#1, #2\KVS@Nil{%
+\long\def\KVS@@CommaSpace#1, #2\KVS@Nil{%
\KVS@IfEmpty{#2}{%
\toks@{#1}%
}{%
@@ -236,7 +236,7 @@ $ \expandafter\endgroup
\def\KVS@CommaComma{%
\expandafter\KVS@@CommaComma\the\toks@,\KVS@Nil
}
-\def\KVS@@CommaComma#1,,#2\KVS@Nil{%
+\long\def\KVS@@CommaComma#1,,#2\KVS@Nil{%
\toks@{#1,#2}%
\KVS@IfEmpty{#2}{%
}{%
@@ -251,7 +251,7 @@ $ \expandafter\endgroup
\toks@\expandafter{\expandafter}\expandafter
\KVS@@Equals\the\toks@~\KVS@Nil
}%
- \def\KVS@@Equals#1~#2\KVS@Nil{%
+ \long\def\KVS@@Equals#1~#2\KVS@Nil{%
\edef\KVS@Temp{\the\toks@}%
\ifx\KVS@Temp\KVS@Empty
\expandafter\KVS@FirstOfTwo
@@ -269,10 +269,10 @@ $ \expandafter\endgroup
}%
}%
}
-\def\KVS@SpaceEquals#1{%
+\long\def\KVS@SpaceEquals#1{%
\expandafter\KVS@@SpaceEquals\the\toks@#1=\KVS@Nil
}
-\def\KVS@@SpaceEquals#1 =#2\KVS@Nil{%
+\long\def\KVS@@SpaceEquals#1 =#2\KVS@Nil{%
\KVS@IfEmpty{#2}{%
\toks@{#1}%
}{%
@@ -283,7 +283,7 @@ $ \expandafter\endgroup
\def\KVS@EqualsSpace{%
\expandafter\KVS@@EqualsSpace\the\toks@= \KVS@Nil
}
-\def\KVS@@EqualsSpace#1= #2\KVS@Nil{%
+\long\def\KVS@@EqualsSpace#1= #2\KVS@Nil{%
\KVS@IfEmpty{#2}{%
\toks@{#1}%
}{%
@@ -291,14 +291,14 @@ $ \expandafter\endgroup
\expandafter\KVS@@EqualsSpace\the\toks@\KVS@Nil
}%
}
-\def\kv@parse#1{%
+\long\def\kv@parse#1{%
\kv@normalize{#1}%
\expandafter\kv@parse@normalized\expandafter{\kv@list}%
}
-\def\kv@parse@normalized#1#2{%
+\long\def\kv@parse@normalized#1#2{%
\KVS@Parse#1,\KVS@Nil{#2}%
}
-\def\KVS@Parse#1,#2\KVS@Nil#3{%
+\long\def\KVS@Parse#1,#2\KVS@Nil#3{%
\KVS@IfEmpty{#1}{%
}{%
\KVS@Process#1=\KVS@Nil{#3}%
@@ -308,7 +308,7 @@ $ \expandafter\endgroup
\KVS@Parse#2\KVS@Nil{#3}%
}%
}
-\def\KVS@Process#1=#2\KVS@Nil#3{%
+\long\def\KVS@Process#1=#2\KVS@Nil#3{%
\def\kv@key{#1}%
\KVS@IfEmpty{#2}{%
\let\kv@value\relax
@@ -317,7 +317,7 @@ $ \expandafter\endgroup
\KVS@@Process{#1}#2\KVS@Nil{#3}%
}%
}
-\def\KVS@@Process#1#2=\KVS@Nil#3{%
+\long\def\KVS@@Process#1#2=\KVS@Nil#3{%
& \edef\kv@value{\etex@unexpanded{#2}}%
$ \begingroup
$ \toks@{#2}%
@@ -344,7 +344,7 @@ $ \let\kv@value\KVS@Global
\KVS@CommaParse#2\KVS@Nil{#3}%
}%
}
-\def\kv@processor@default#1#2#3{%
+\long\def\kv@processor@default#1#2#3{%
& \unless\ifcsname KV@#1@#2\endcsname
$ \begingroup\expandafter\expandafter\expandafter\endgroup
$ \expandafter\ifx\csname KV@#1@#2\endcsname\relax
@@ -392,7 +392,7 @@ $ \expandafter\ifx\csname KV@#1@#2@default\endcsname\relax
\@ehc
}%
}
-\def\kvsetkeys#1#2{%
+\long\def\kvsetkeys#1#2{%
\kv@parse{#2}{\kv@processor@default{#1}}%
}
\KVS@AtEnd