[latex3-commits] [l3svn] branch master updated: Asdd "mdfive" to name of experimental hash function
noreply at latex-project.org
noreply at latex-project.org
Tue Jul 11 15:19:22 CEST 2017
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
The following commit(s) were added to refs/heads/master by this push:
new 6166742 Asdd "mdfive" to name of experimental hash function
6166742 is described below
commit 616674264068b2631b15fc92ff837ab1e00aadda
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Jul 11 14:18:03 2017 +0100
Asdd "mdfive" to name of experimental hash function
As requested by Bruno, this makes it clear that there is a specific form of
hash going on.
I prefer "hash" over "sum" but if others wish we can change.
---
l3kernel/l3candidates.dtx | 11 ++++++-----
l3kernel/testfiles/m3expl001.luatex.tlg | 2 +-
l3kernel/testfiles/m3expl001.ptex.tlg | 2 +-
l3kernel/testfiles/m3expl001.tlg | 2 +-
l3kernel/testfiles/m3expl001.uptex.tlg | 2 +-
l3kernel/testfiles/m3expl001.xetex.tlg | 2 +-
l3kernel/testfiles/m3expl003.luatex.tlg | 2 +-
l3kernel/testfiles/m3expl003.ptex.tlg | 2 +-
l3kernel/testfiles/m3expl003.tlg | 2 +-
l3kernel/testfiles/m3expl003.uptex.tlg | 2 +-
l3kernel/testfiles/m3expl003.xetex.tlg | 2 +-
l3kernel/testfiles/m3file001.lvt | 6 +++---
12 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index d67116b..dbc281c 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -206,9 +206,9 @@
%
% \section{Additions to \pkg{l3file}}
%
-% \begin{function}[added = 2017-07-09]{\file_get_hash:nN}
+% \begin{function}[added = 2017-07-11]{\file_get_mdfive_hash:nN}
% \begin{syntax}
-% \cs{file_get_hash:nN} \Arg{file name} \meta{str var}
+% \cs{file_get_mdfive_hash:nN} \Arg{file name} \meta{str var}
% \end{syntax}
% Searches for \meta{file name} using the current \TeX{} search
% path and the additional paths controlled by \cs{file_path_include:n}.
@@ -1555,7 +1555,8 @@
%<@@=file>
% \end{macrocode}
%
-% \begin{macro}{\file_get_hash:nN, \file_get_size:nN, \file_get_timestamp:nN, }
+% \begin{macro}
+% {\file_get_mdfive_hash:nN, \file_get_size:nN, \file_get_timestamp:nN}
% \begin{macro}[aux]{\@@_get_details:nnN}
% These are all wrappers around the \pdfTeX{} primitives doing the same
% jobs: as we want consistent file paths to be found, they are all set up
@@ -1565,7 +1566,7 @@
% needed for \tn{pdftex_mdfivesum:D} and for the fact that primitive
% coverage varies in other engines.
% \begin{macrocode}
-\cs_new_protected:Npn \file_get_hash:nN #1#2
+\cs_new_protected:Npn \file_get_mdfive_hash:nN #1#2
{ \@@_get_details:nnN {#1} { mdfivesum } {#2} }
\cs_new_protected:Npn \file_get_size:nN #1#2
{ \@@_get_details:nnN {#1} { size } {#2} }
@@ -1596,7 +1597,7 @@
}
}
{
- \cs_set_protected:Npn \file_get_hash:nN #1#2
+ \cs_set_protected:Npn \file_get_mdfive_hash:nN #1#2
{
\file_get_full_name:nN {#1} \l_@@_full_name_str
\tl_set:Nx #2
diff --git a/l3kernel/testfiles/m3expl001.luatex.tlg b/l3kernel/testfiles/m3expl001.luatex.tlg
index 88ee5f4..ced9d66 100644
--- a/l3kernel/testfiles/m3expl001.luatex.tlg
+++ b/l3kernel/testfiles/m3expl001.luatex.tlg
@@ -5403,7 +5403,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl001.ptex.tlg b/l3kernel/testfiles/m3expl001.ptex.tlg
index 2459442..5ed9d21 100644
--- a/l3kernel/testfiles/m3expl001.ptex.tlg
+++ b/l3kernel/testfiles/m3expl001.ptex.tlg
@@ -5393,7 +5393,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl001.tlg b/l3kernel/testfiles/m3expl001.tlg
index bc3997e..d7485c0 100644
--- a/l3kernel/testfiles/m3expl001.tlg
+++ b/l3kernel/testfiles/m3expl001.tlg
@@ -5393,7 +5393,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl001.uptex.tlg b/l3kernel/testfiles/m3expl001.uptex.tlg
index c121a90..c6e9ad5 100644
--- a/l3kernel/testfiles/m3expl001.uptex.tlg
+++ b/l3kernel/testfiles/m3expl001.uptex.tlg
@@ -5391,7 +5391,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl001.xetex.tlg b/l3kernel/testfiles/m3expl001.xetex.tlg
index 96ed0a8..fa17bd9 100644
--- a/l3kernel/testfiles/m3expl001.xetex.tlg
+++ b/l3kernel/testfiles/m3expl001.xetex.tlg
@@ -5381,7 +5381,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl003.luatex.tlg b/l3kernel/testfiles/m3expl003.luatex.tlg
index bb756cc..a38f02c 100644
--- a/l3kernel/testfiles/m3expl003.luatex.tlg
+++ b/l3kernel/testfiles/m3expl003.luatex.tlg
@@ -5404,7 +5404,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl003.ptex.tlg b/l3kernel/testfiles/m3expl003.ptex.tlg
index 864b65b..ab24d45 100644
--- a/l3kernel/testfiles/m3expl003.ptex.tlg
+++ b/l3kernel/testfiles/m3expl003.ptex.tlg
@@ -5394,7 +5394,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl003.tlg b/l3kernel/testfiles/m3expl003.tlg
index 2ab58e4..549ad50 100644
--- a/l3kernel/testfiles/m3expl003.tlg
+++ b/l3kernel/testfiles/m3expl003.tlg
@@ -5394,7 +5394,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl003.uptex.tlg b/l3kernel/testfiles/m3expl003.uptex.tlg
index 884ea58..5cee4ac 100644
--- a/l3kernel/testfiles/m3expl003.uptex.tlg
+++ b/l3kernel/testfiles/m3expl003.uptex.tlg
@@ -5392,7 +5392,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3expl003.xetex.tlg b/l3kernel/testfiles/m3expl003.xetex.tlg
index d8ead14..030bf72 100644
--- a/l3kernel/testfiles/m3expl003.xetex.tlg
+++ b/l3kernel/testfiles/m3expl003.xetex.tlg
@@ -5382,7 +5382,7 @@ Defining \__coffin_scale_corner:Nnnn on line ...
Defining \__coffin_scale_pole:Nnnnnn on line ...
Defining \__coffin_x_shift_corner:Nnnn on line ...
Defining \__coffin_x_shift_pole:Nnnnnn on line ...
-Defining \file_get_hash:nN on line ...
+Defining \file_get_mdfive_hash:nN on line ...
Defining \file_get_size:nN on line ...
Defining \file_get_timestamp:nN on line ...
Defining \__file_get_details:nnN on line ...
diff --git a/l3kernel/testfiles/m3file001.lvt b/l3kernel/testfiles/m3file001.lvt
index 1f0a4de..de244b2 100644
--- a/l3kernel/testfiles/m3file001.lvt
+++ b/l3kernel/testfiles/m3file001.lvt
@@ -143,8 +143,8 @@
\TEST { Getting~file~information }
{
- \file_get_hash:nN { filetest-utf8.txt } \l_tmpa_str
- \file_get_size:nN { filetest.txt } \l_tmpb_str
+ \file_get_mdfive_hash:nN { filetest-utf8.txt } \l_tmpa_str
+ \file_get_size:nN { filetest.txt } \l_tmpb_str
\sys_if_engine_xetex:F
{
\int_compare:nNnTF \l_tmpb_str = { 120 }
@@ -163,7 +163,7 @@
\ERROR
}
}
- \file_get_hash:nN { NotAFile.txt } \l_tmpa_str
+ \file_get_mdfive_hash:nN { NotAFile.txt } \l_tmpa_str
\tl_show:N \l_tmpa_str
\file_get_size:nN { NotAFile.txt } \l_tmpa_str
\tl_show:N \l_tmpa_str
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list