summaryrefslogtreecommitdiff
path: root/src/files_map.ads
diff options
context:
space:
mode:
authorTristan Gingold2015-05-13 06:56:24 +0200
committerTristan Gingold2015-05-13 06:56:24 +0200
commit6e168c5503339772dab0768e93a301318d705bcf (patch)
tree43e33c2fc03aeb0c61ffe7f520d3a50d74b7ed8a /src/files_map.ads
parent961d55b955d0a1526ebb7a5ddca8acee50b8ab1a (diff)
downloadghdl-6e168c5503339772dab0768e93a301318d705bcf.tar.gz
ghdl-6e168c5503339772dab0768e93a301318d705bcf.tar.bz2
ghdl-6e168c5503339772dab0768e93a301318d705bcf.zip
Change library format: now store file checksum instead of file time stamp.
For ticket 48.
Diffstat (limited to 'src/files_map.ads')
-rw-r--r--src/files_map.ads13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/files_map.ads b/src/files_map.ads
index c48aebd..265e3d0 100644
--- a/src/files_map.ads
+++ b/src/files_map.ads
@@ -63,9 +63,16 @@ package Files_Map is
function Is_Gt (L : Time_Stamp_Id; R : Time_Stamp_Id) return Boolean;
function Get_Time_Stamp_String (Ts : Time_Stamp_Id) return String;
- -- Return the date of the file (last modification date) as a string.
- function Get_File_Time_Stamp (File : Source_File_Entry)
- return Time_Stamp_Id;
+ -- Return the checksum of the content of FILE.
+ function Get_File_Checksum (File : Source_File_Entry)
+ return File_Checksum_Id;
+
+ -- True if two file checksums are identical.
+ function Is_Eq (L, R : File_Checksum_Id) return Boolean;
+
+ -- String image of CHECKSUM.
+ function Get_File_Checksum_String (Checksum : File_Checksum_Id)
+ return String;
-- Return the current date of the system.
function Get_Os_Time_Stamp return Time_Stamp_Id;