OCaml Forge
SCM

Detail: [#1391] Bind archive_entry_{set_,}{hard,sym}link() and archive_entry_set_link()

Patches: Browse | Download .csv | Monitor

[#1391] Bind archive_entry_{set_,}{hard,sym}link() and archive_entry_set_link()

Date:
2014-05-10 17:12
Priority:
3
State:
Open
Submitted by:
Adrien Nader (camarade_tux)
Assigned to:
Nobody (None)
Resolution:
None
Version:
None
Component:
None
 
Summary:
Bind archive_entry_{set_,}{hard,sym}link() and archive_entry_set_link()

Detailed description
These functions are useful to rewrite filenames and symlink targets while extracting.

First patch transforms caml_archive_entry_(set_)pathname into macros parameterized with the field name (here "pathname"). The transformation is mostly straight-forward.

Second patch re-uses these macros to access and set hardlink, symlink and link fields. It also raises (Failure "Field not set.") if the corresponding field isn't set.
I now notice this exception should be mentionned into the documentation/mli and I haven't done so but patching a patching too annoying so I'll rely on it being done manually after having applied the patches.

Followup

No Followups Have Been Posted

Changes:

Field Old Value Date By
File Added256: 0003-stubs-bind-archive_entry_-set_-pathname-through-a-ma.patch2014-05-10 17:12camarade_tux
File Added257: 0004-Bind-archive_entry_-set_-hard-sym-link-and-archive_e.patch2014-05-10 17:12camarade_tux