aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2009-12-13Change the expected return value for on_load functionsBjö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-12-09Update .gitignore filesBjörn Gustavsson
2009-12-09OTP-5037 Document debug support.Björn-Egil Dahlberg
Debug trace output for connection activity could be enabled setting the trace level as an integer to the EI_TRACELEVEL environment variable. This option could also be read and set from a running program using ei_get_tracelevel(void) and ei_set_tracelevel(int).
2009-12-09OTP-8304 Incompatible changes in the experimental NIF feature. Changed theSverker Eriksson
NIF function prototypes in order to allow more than 3 function arguments. Also an incompatible change in the return value of erlang:load_nif/2. Added support for references, floats and term comparison in NIFs. Read more in the documentation of erl_nif and erlang:load_nif/2.
2009-12-08OTP-5037 Document debug support.Björn-Egil Dahlberg
Debug trace output for connection activity could be enabled setting the trace level as an integer to the EI_TRACELEVEL environment variable. This option could also be read and set from a running program using ei_get_tracelevel(void) and ei_set_tracelevel(int).
2009-12-07Changed filename ref_man.src.xml to ref_man.xml.src to avoid confusionDan Gudmundsson
2009-12-07Merge branch 'dgud/wx_filedialog_bug' into ccase/r13b04_devErlang/OTP
* dgud/wx_filedialog_bug: The generated updates, of the previous fix. Fixed generation of wxFileDialog:getPaths/1. OTP-8330 Corrected incorrectly generated wxFileDialog:getPaths/1. Reported by Jason/hornja.
2009-12-06asn1 documentation: remove unused filesBjörn Gustavsson
2009-12-06debugger documentation: remove unused filesBjörn Gustavsson
2009-12-04crypto: include the test suiteBjörn Gustavsson
2009-12-04Merge branch 'sv/sys_get_status' into ccase/r13b04_devErlang/OTP
* sv/sys_get_status: Teach sys:get_status/1,2 to call Mod:format_status/2 gen_fsm: Fix format_status/2 to handle Pids OTP-8324 The ability for the gen_server and gen_fsm callback modules to format their own state for display under the sys:get_status/1,2 calls has been restored and documented. (Thanks to Steve Vinoski.)
2009-12-04The generated updates, of the previous fix.Dan Gudmundsson
2009-12-04Fixed generation of wxFileDialog:getPaths/1.Dan Gudmundsson
2009-12-04Merge branch 'egil/misc-egd' into ccase/r13b04_devErlang/OTP
2009-12-03Corrected CR and LF clarification in file:read_line, removed extra backslash.Patrik Nyblom
2009-12-03OTP-8326 Change erroneous "\\0" in documentation files erl_notes.xml andBjörn-Egil Dahlberg
erl_eterm.xml.
2009-12-03Add test cases for egd_primitivesBjörn-Egil Dahlberg
2009-12-03Optimize egd render speed and reduce code sizeBjörn-Egil Dahlberg
2009-12-03documentation: Fix bugs introduced in the SGML to XML transitionHans Bolinder
In the transition from SGML to XML (several releases ago), bugs were introduced in the documentation, for instance "\n" replaced by newlines. Correct those bugs. Also correct double backslashes. They seem to have been introduced very early in the development of OTP. According to Lars they "solved" a bug in the generation of HTML &c. Now that standard tools are used instead of docbuilder, the bug has become visible.
2009-12-01Teach sys:get_status/1,2 to call Mod:format_status/2Steve Vinoski
Restore the ability for gen_server and gen_fsm callback modules to format their own state for display under the sys:get_status/1,2 calls. This ability is extremely useful for new behavior modules based on gen_server or gen_fsm, so that they can display their status in a more meaningful way than just dumping the state record. It is also generally useful for applications wanting to display their gen_server or gen_fsm callback module state in something other than the default manner. Also document the previously undocumented the gen_server:format_status/2 and gen_fsm:format_status/2 optional callback functions that, if exported by the callback module, are invoked when sys:get_status/1,2 are called. Add unit tests to ensure that format_status/2 functions exported from a gen_fsm callback module and a gen_server callback module are called when sys:get_status/1,2 are called.
2009-12-01OTP-8310 Bugs have been fixed in the evaluation of comprehensions andHans Bolinder
short-circuit expressions in guards.
2009-11-30Merge branch 'bg/on_load-types' into ccase/r13b04_devErlang/OTP
* bg/on_load-types: Add type information for on_load
2009-11-29gen_fsm: Fix format_status/2 to handle PidsSteve Vinoski
gen_fsm:format_status/2 currently crashes if Name in the process state is a Pid. Handle Name in the same way as in gen_server:format_status/2 to eliminate the crash.
2009-11-27Merge remote branch 'refs/remotes/origin/dgud/array_tests' into ccase/r13b04_devErlang/OTP
* refs/remotes/origin/dgud/array_tests: Added more tests for array:reset/2.
2009-11-27Add type information for on_loadBjörn Gustavsson
The on_load feature introduced in R13B03 adds two new internal BIFs and extends the return value of erlang:load_module/2.
2009-11-26Added more tests for array:reset/2.Dan Gudmundsson
Code coverage was bad for my new optimizations.
2009-11-26** Empty commit message **Niclas Eklund
2009-11-26** Empty commit message **Lars G Thorsen
2009-11-26Fixing dockumentation (man-pages) installation.Micael Karlberg
2009-11-25Update version numbersRickard Green
2009-11-25Fixing various dialyzer and copyright problems.Micael Karlberg
2009-11-25Fixing copyright problems.Micael Karlberg
2009-11-20The R13B03 release.OTP_R13B03Erlang/OTP