summaryrefslogtreecommitdiff
path: root/lib/stdlib/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove error handling for calling a BIF that is not auto-importedBjörn Gustavsson2013-01-311-10/+3
| | | | | | | | | | | | | | All guards BIFs are auto-imported. That can be verified like this: [] = [{F,A} || {erlang,F,A} <- erlang:system_info(snifs), erl_internal:guard_bif(F, A), not erl_internal:bif(F, A)] Therefore, calling a guard BIF in a guard without a module name is always allowed (provided that there is not a local function or an import with the same name), and therefore we can remove the error reporting code. But keep an assertion so that we will find out if any non-auto-imported guard BIFs are added in the future.
* Merge branch 'bjorn/remove-tuple-funs/OTP-10170'Björn Gustavsson2013-01-261-2/+0
|\ | | | | | | | | * bjorn/remove-tuple-funs/OTP-10170: erl_lint: Removes vestiges of tuple fun support
| * erl_lint: Removes vestiges of tuple fun supportBjörn Gustavsson2013-01-251-2/+0
| | | | | | | | | | The warnings for deprecated tuple funs were removed in de7e01c958ff7c9e6da4034a53567a30a4ae5792.
* | Merge branch 'bjorn/remove-packages/OTP-10348'Björn Gustavsson2013-01-262-32/+3
|\ \ | | | | | | | | | | | | | | | * bjorn/remove-packages/OTP-10348: erl_lint: Remove vestiges of package support shell: Remove vestiges of package support
| * | erl_lint: Remove vestiges of package supportBjörn Gustavsson2013-01-251-2/+0
| | | | | | | | | | | | | | | | | | 1c1649481025236cad29a7ee3cbd8f552757b2b6 dropped support for packages in erl_lint, but did not remove the error message for {bad_module_name,M}.
| * | shell: Remove vestiges of package supportBjörn Gustavsson2013-01-251-30/+3
| |/ | | | | | | | | | | | | | | | | | | Remove the which/1 command which provides no useful information for a non-package module. Remove references to the deleted commands import/1, import_all/1, use/1, and use_all/1 (removed in f31ee362c3421922518). Remove code that handles {module,_} in bindings.
* | Update copyright yearsBjörn-Egil Dahlberg2013-01-2523-23/+23
| |
* | Remove one use of iolist_size/1 in io_lib_pretty.erlHans Bolinder2013-01-251-1/+1
| | | | | | | | | | | | | | In order to simplify the testing of Unicode atoms a minor adjustment has been made in io_lib_pretty. Unicode atoms will not be introduced until R18 but it may come in handy to be able to pretty-print such atoms in R16. This update affects ~p only; ~w already works.
* | Add a new function proc_lib:format/2 which takes encodingHans Bolinder2013-01-251-26/+38
| |
* | Export the type erl_scan:token()Hans Bolinder2013-01-252-2/+3
| | | | | | | | | | The type erl_parse:token() used to be a two-tuple, but it can also be a three-tuple.
* | Make adjustments for UnicodeHans Bolinder2013-01-2523-97/+105
| |
* | [stdlib] Change default of erl_scan's unicode optionHans Bolinder2013-01-251-6/+9
| | | | | | | | | | The value of the undocumented unicode option is very limited. The option will most likely be removed completely soon.
* | Correct recently introduced Unicode related type errorsHans Bolinder2013-01-251-1/+1
| |
* | [stdlib] Introduce new functions epp:read_encoding_from_binary/1,2Hans Bolinder2013-01-251-4/+33
| |
* | Extend char() to Unicode charactersHans Bolinder2013-01-259-154/+168
| | | | | | | | | | | | | | | | | | | | The code related to the introduction of unicode_string() and unicode_char() has been removed. The types char() and string() have been extended to include Unicode characters. In fact char() was changed some time ago; this commit is about cleaning up the documentation and introduce better names for some functions.
* | [stdlib] Fix a contract bugHans Bolinder2013-01-253-8/+8
|/ | | | Also minor corrections of the docs of io(3)
* Merge branch 'bjorn/warnings-zero-tolerance'Björn Gustavsson2013-01-241-1/+1
|\ | | | | | | | | | | | | * bjorn/warnings-zero-tolerance: Turn warnings to errors on selected applications runtime_tools_sup: Eliminate warning inet_parse: Eliminate a compiler warning
| * Turn warnings to errors on selected applicationsBjörn Gustavsson2013-01-231-1/+1
| |
* | Merge branch 'sal/float_to_list_2/OTP-10752'Björn-Egil Dahlberg2013-01-231-0/+1
|\ \ | | | | | | | | | | | | * sal/float_to_list_2/OTP-10752: Text representation of a float formatted using given options.
| * | Text representation of a float formatted using given options.Serge Aleynikov2013-01-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This BIF solves a problem of float_to_list/1 that doesn't allow specifying the number of digits after the decimal point when formatting floats. float_to_list(Float, Options) -> string() Float = float() Options = [Option] Option = {decimals, Decimals::0..249} | {scientific, Decimals::0..249} | compact Returns a string which corresponds to the text representation of a `Float` formatted using given options. When decimals option is specified the returned value will contain at most `Decimals` number of digits past the decimal point. When `compact` option is provided the trailing zeros at the end of the list are truncated (this option is only meaningful together with the `decimals` option). When `scientific` option is provided, the float will be formatted using scientific notation with `Decimals` digits of precision. If `Options` is `[]` the function behaves like `float_to_list/1`. When using `decimals` option and the number doesn't fit in the static internal buffer of 256 bytes the function throws `badarg`.
* | | Merge branch 'fh/shell_history_search/OTP-10739'Fredrik Gustafsson2013-01-231-6/+103
|\ \ \ | |_|/ |/| | | | | | | | * fh/shell_history_search/OTP-10739: Add search to Erlang shell's history
| * | Add search to Erlang shell's historyFred Hebert2013-01-191-6/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Search mode can be entered by pressing ctrl-r. Enter terms and press ctrl-r again to search backwards, or ctrl-s to then search forward (if you terminal doesn't eat up that one). Press enter to execute the line, or use tab, arrow keys, or other control sequences (^D, ^K, etc.) to exit search mode while remaining on the last found line. Exiting is also possible by pressing the escape key twice. The search mode is a simpler version of the one available in bash or zsh shells. This adds a few modes to the shell (search, on top of none and meta) in group.erl for history search, and a few more in edlin.erl to change the meaning of control sequences while searching.
* | | Merge branch 'ae/stdlib/faster_queue/OTP-10722'Fredrik Gustafsson2013-01-221-6/+8
|\ \ \ | | | | | | | | | | | | | | | | * ae/stdlib/faster_queue/OTP-10722: Fix bug in queue:out/1, queue:out_r/1 that makes it O(N^2) in worst case
| * | | Fix bug in queue:out/1, queue:out_r/1 that makes it O(N^2) in worst caseAleksandr Erofeev2013-01-171-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | Running out and out_r one after another many times will copy one list back and forth if another is empty. Change r2f and f2r to copy only half of big list so such cases will happen more rarely
* | | | Merge branch 'lh/forget-mnemosyne/OTP-10729'Fredrik Gustafsson2013-01-225-14/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * lh/forget-mnemosyne/OTP-10729: Remove what remains of the Mnemosyne code Remove support for the query keyword and query expressions
| * | | | Remove support for the query keyword and query expressionsLoïc Hoguin2013-01-165-14/+3
| | | | |
* | | | | [hipe, kernel, stdlib] Correct a few typesHans Bolinder2013-01-211-2/+2
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | The type ascii_string() in the base64 module has been corrected. The type file:file_info() has been cleaned up. The type file:fd() has been made opaque in the documentation. The type nodes() has been removed from erl_bif_types.erl.
* | | | Merge branch 'nox/enable-silent-rules/OTP-10726'Björn-Egil Dahlberg2013-01-181-6/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * nox/enable-silent-rules/OTP-10726: Implement ./otp_build configure --enable-silent-rules
| * | | | Implement ./otp_build configure --enable-silent-rulesAnthony Ramine2013-01-151-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With silent rules, the output of make is less verbose and compilation warnings are easier to spot. Silent rules are disabled by default and can be disabled or enabled at will by make V=0 and make V=1.
* | | | | Merge branch 'bjorn/remove-parameterized-modules/OTP-10616'Björn Gustavsson2013-01-181-59/+13
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bjorn/remove-parameterized-modules/OTP-10616: Remove support for parameterized modules xref_SUITE: Don't test parameterized modules shell_SUITE: Don't test parameterized modules erl_expand_records_SUITE: Don't test parameterized modules erl_eval: Don't test parameterized modules
| * | | | Remove support for parameterized modulesBjörn Gustavsson2013-01-181-59/+13
| | |_|/ | |/| |
* | | | Merge branch 'dgud/wx/fix-wx-2.9-compat/OTP-10407'Dan Gudmundsson2013-01-151-1/+40
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dgud/wx/fix-wx-2.9-compat/OTP-10407: (26 commits) wx: Fix comments wx: Workaround wx-2.9 bugs wx: Mac fixes wx: Fix demo and tests wx: Allow 64 bits compilation on mac, requires wxWidgets-2.9 appmon: Move runtime part to runtime_tools app reltool: fix wxWidgets-2.9 compability debugger: Fix 2.9 compat observer: Fix check for graphics contexts Observer: Fix distribution dialog observer: Fix font sizes wx: Fix the demo wx: Fix loading icons and cursors in Windows wx: Remove unnecessary casts wx: Fix changed getfunctions wx: Depricate wxCursor new functions wx: Fix int to enum wx: Include correct m4 file in 2.9 wx: Update examples so they work with both wxWidgets 2.8 and 2.9 wx: Modify tests so they work on wxWidgets-2.9 ...
| * | | wx: Depricate wxCursor new functionsDan Gudmundsson2013-01-091-1/+5
| | | | | | | | | | | | | | | | Not available on mac and windows for on 2.9
| * | | wx: Deprecate functions not available in wxWidgets-2.9Dan Gudmundsson2013-01-091-0/+35
| | | | | | | | | | | | | | | | | | | | Prepare to remove functionality which is not available in coming wxWidgets versions.
* | | | c: Remove support for packagesBjörn Gustavsson2013-01-091-1/+1
| | | |
* | | | filename: Remove support for packagesBjörn Gustavsson2013-01-091-1/+1
| | | |
* | | | shell: Remove support for packagesBjörn Gustavsson2013-01-091-60/+1
| | | |
* | | | erl_parse: Remove support for packagesBjörn Gustavsson2013-01-091-58/+6
| | | |
* | | | qlc: Remove support for packagesBjörn Gustavsson2013-01-091-10/+0
| | | |
* | | | erl_eval: Remove support for packagesBjörn Gustavsson2013-01-091-44/+1
| | | |
* | | | erl_expand_records: Remove support for packagesBjörn Gustavsson2013-01-091-7/+0
| | | |
* | | | erl_lint: Remove support for packagesBjörn Gustavsson2013-01-091-172/+53
|/ / /
* | | Prepare OTP files for Unicode as default encodingHans Bolinder2013-01-098-33/+41
| | |
* | | Merge branch 'ia/ssl/deprecated-r16'Ingela Anderton Andin2013-01-081-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | * ia/ssl/deprecated-r16: stdlib: Updated otp_internal to reflect removal of deprecated function ssl & orber: Remove ssl:pid/1 (has been pointless since R14)
| * | stdlib: Updated otp_internal to reflect removal of deprecated functionIngela Anderton Andin2012-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | Note the comment in this file incorrectly stated that ssl:pid/1 should be removed in R17, the intention has always been R16. This function has never done anything relevant for the new ssl implementation that is default in R14 and the only available one in R15.
* | | [stdlib] Improve the Erlang shell's handling of scanner errorsHans Bolinder2013-01-071-7/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Erlang shell now skips the rest of the line when it encounters an Erlang scanner error. Examples: 1> $\xtt. * 1: illegal character 1> "$\xtt". * 1: illegal character 1>
* | | Merge branch 'ks/stdlib/proplists-spec-cleanup/OTP-10663'Fredrik Gustafsson2013-01-031-32/+40
|\ \ \ | | | | | | | | | | | | | | | | | | | | * ks/stdlib/proplists-spec-cleanup/OTP-10663: Ensure that edocumentation and the xml file are in sync Clean up some specs
| * | | Ensure that edocumentation and the xml file are in syncKostis Sagonas2012-12-171-12/+12
| | | |
| * | | Clean up some specsKostis Sagonas2012-12-131-20/+28
| | |/ | |/| | | | | | | | | | | | | It is actually wrong to be using the same variable name to denote arguments and return values which have possibly different types. This patch corrects this.
* | | Make sure the Erlang shell prompt can handle UnicodeHans Bolinder2013-01-022-14/+21
| | |