summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/eskdx/source/eskdhash.sty.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-07-22 23:32:04 +0000
committerKarl Berry <karl@freefriends.org>2006-07-22 23:32:04 +0000
commit8c0d217270186626f5b82a7e018a5e215af4e172 (patch)
tree79fde11e06867d39659e8617b25e484d864ab269 /Master/texmf-dist/doc/latex/eskdx/source/eskdhash.sty.in
parentd41d86cee76a19ef68f05d300f78881d3f81dbd8 (diff)
new package eskdx for Russian documents (2mar06)
git-svn-id: svn://tug.org/texlive/trunk@1895 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/eskdx/source/eskdhash.sty.in')
-rw-r--r--Master/texmf-dist/doc/latex/eskdx/source/eskdhash.sty.in59
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/eskdx/source/eskdhash.sty.in b/Master/texmf-dist/doc/latex/eskdx/source/eskdhash.sty.in
new file mode 100644
index 00000000000..43b17cbfac0
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/eskdx/source/eskdhash.sty.in
@@ -0,0 +1,59 @@
+% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2003/12/01 or later.
+%
+% This work has the LPPL maintenance status "maintained".
+%
+% This Current Maintainer of this work is Konstantin Korikov.
+%
+% This work consists of all files listed in manifest.txt.
+%
+m4_ESKDX_INIT
+m4_FILE_INIT
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{eskdhash}[m4_dnl
+m4_FILE_ID([[$Date: 2006/02/23 14:28:39 $]]) Hash Routines]
+
+\newcommand{\ESKD@hash@new}[1]{%
+ \global\expandafter\newcount\csname ESKD@hash@c@#1\endcsname
+ \global\csname ESKD@hash@c@#1\endcsname = 0
+ \global\expandafter\newcount\csname ESKD@hash@p@#1\endcsname
+ \global\csname ESKD@hash@p@#1\endcsname = 0\relax}
+
+\newcommand{\ESKD@hash@set}[3]{%
+ \expandafter\ifx\csname ESKD@hash@v@#1@#2\endcsname\relax
+ \expandafter\gdef\csname ESKD@hash@k@#1@\expandafter\number\csname
+ ESKD@hash@c@#1\endcsname\endcsname{#2}
+ \expandafter\advance\csname ESKD@hash@c@#1\endcsname 1
+ \fi
+ \expandafter\gdef\csname ESKD@hash@v@#1@#2\endcsname{#3}}
+
+\newcommand{\ESKD@hash@get}[2]{%
+ \csname ESKD@hash@v@#1@#2\endcsname}
+
+\newcommand{\ESKD@hash@reset}[1]{%
+ \csname ESKD@hash@p@#1\endcsname = 0\relax}
+
+\newcommand{\ESKD@hash@next@key}[1]{%
+ \csname ESKD@hash@k@#1@\expandafter\number\csname
+ ESKD@hash@p@#1\endcsname\endcsname
+ \expandafter\advance\csname ESKD@hash@p@#1\endcsname 1\relax}
+
+\newcommand{\ESKD@hash@next@value}[1]{%
+ \csname ESKD@hash@v@#1@\csname ESKD@hash@k@#1@\expandafter\number\csname
+ ESKD@hash@p@#1\endcsname\endcsname\endcsname
+ \expandafter\advance\csname ESKD@hash@p@#1\endcsname 1\relax}
+
+\newcommand{\ESKD@hash@count}[1]{%
+ \expandafter\number\csname ESKD@hash@c@#1\endcsname}
+
+\newcommand{\ESKD@hash@pos}[1]{%
+ \expandafter\number\csname ESKD@hash@p@#1\endcsname}
+
+m4_dnl vim:ft=tex:sw=2:ai