Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-03-16 | Add function zip:foldl/3 to iterate over zip archives | Håkan Mattsson | |
This is the public interface of prim_zip:open/3, which has been used in earlier releases by both erl_prim_loader and escript. The new function can be used as a replacement for the undocumented function escript:foldl/3 that is likely to be removed without further notice. The error handling of prim_zip:open/3 (and prim_zip:foldl/3) has been improved in order to better suite a public interface. For example it could happen that a file or a zlib port could be left open in some errors cases. The documentation of the FileSpec parameter to zip:create/3 has been updated to show that file info can be explicitly specified. A FileSpec may contain {Filename, binary(), #file_info{}} elements. The function zip:create/3 was already prepared to partly support this, but now after a few minor fixes it is fully supported. | |||
2010-02-11 | Update preloaded files | Björn Gustavsson | |
2010-01-27 | Update preloaded files | Björn Gustavsson | |
2010-01-06 | Update preloaded files | Björn Gustavsson | |
2009-12-13 | Change the expected return value for on_load functions | Björn Gustavsson | |
An on_load function is supposed to return 'true' to indicate that the module should be loaded, and 'false' if it should be unloaded. But returning any other term, as well as causing an exception, will also unload the module. Since we don't like boolean values mixed with other values, change the expected return value as follows: * If 'ok' is returned, the module will remain loaded and become callable. * If any other value is returned (or an exception is generated), the module will be unloaded. Also, if the returned value is not an atom, send a warning message to the error_logger (using error_logger:warning_msg/2). The new interpretation of the return value means that an on_load function can now directly return the return value from erlang:load_nif/2. | |||
2009-11-20 | The R13B03 release.OTP_R13B03 | Erlang/OTP | |