aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2013-08-09Add match_limit and match_limit_recursion optionsPatrik Nyblom
Added to re:run and sets the corresponding fields in 'extra' struct for the PCRE match engine. The result can be viewed by also setting 'report_errors' when matching. Some housekeeping was also done... The offset option also did not properly check for offset's >= 0. Change nomatch to BADARG when pre-compiled mp() is faked: By constructing a 5-tuple with faked content but the right data types, you could do a re:run which returned nomatch when in fact the mp() was bad. The cheapest solution is to check the return from pcre_exec better. Remove unreachable code in erts_bif_re.c: Replaced tests for things that logically simply cannot happen with ASSERT.
2013-08-09Add return_errors option to re:run/3Patrik Nyblom
2013-08-09Add README for updating PCREPatrik Nyblom
2013-08-09Add documentation of extensions to re modulePatrik Nyblom
The following compile options are documented: no_start_optimize ucp never_utf The following run options are documented: notempty_atstart {capture, all_names} The following new functions are documented: re:inspect/2
2013-08-09Add new options to Erlang re interface and mend dupnamesPatrik Nyblom
Add notempty_atstart, no_start_optimize, ucp and never_utf options from new PCRE version. Use the new notempty_atstart in global matching. Add inspect/2 function Correctly handle dupnames when capturing a name, as in Perl, get the leftmost matching occurence. Also added all_names, to get all the names in the pattern in alphabetical (name) order. To be able to use this in global matching, an inspect function that can dig out a namelist was added.
2013-08-06Update PCRE doc part of re.xml to PCRE 8.33 statePatrik Nyblom
This does not include any documentation of the new options, namely 'ucp', 'never_utf', 'notempty_atstart', 'no_start_optimize' or {capture, all_names, ...} and re:inspect/1.
2013-08-06Integrate new PCRE test suitesPatrik Nyblom
The relevant testoutputNN files were copied from the PCRE distribution and some corrections were done to run_pcre_tests.erl. Also made test generator be more compiler friendly The re_testoutput1_replacement_test and re_testoutput1_split_test modules that are generated by run_pcre_tests.erl (offline, when a new version of PCRE is integrated in the VM) took forever to compile, as one single huge function contained all the tests. The autogenerated tests are now split into ~50 functions, which reduces compile time to approximately a third. New automatic test suites are also generated from the new testoutputNN files, and checked in.
2013-08-06Integrate patch for PCRE bug id 1370Patrik Nyblom
2013-08-06Handle CRLF correctly in global regexpPatrik Nyblom
2013-08-06Add erts_prefix to pcre_library and update erl_bif_rePatrik Nyblom
2013-07-19Update to PCRE 8.33, w/o the erts_ prefix addedPatrik Nyblom
2013-07-12Merge branch 'maint'Rickard Green
* maint: Fix variable ‘rp_had_locks’ set but not used warning Fix ‘ethr_native_rwlock_destroy’ defined but not used warning Fix 'no previous prototype' warning for dtrace functions Conditionally skip process_SUITE tests that consume large amount of memory
2013-07-12Merge branch 'rickard/warning_fixes' into maintRickard Green
* rickard/warning_fixes: Fix variable ‘rp_had_locks’ set but not used warning Fix ‘ethr_native_rwlock_destroy’ defined but not used warning Fix 'no previous prototype' warning for dtrace functions
2013-07-12Merge branch 'rickard/test_case_fixes' into maintRickard Green
* rickard/test_case_fixes: Conditionally skip process_SUITE tests that consume large amount of memory
2013-07-12Merge branch 'maint'Rickard Green
* maint: Fix configure detection of ethread native atomics on powerpc
2013-07-12Merge branch 'rickard/info/OTP-11196' into maintRickard Green
* rickard/info/OTP-11196: Fix configure detection of ethread native atomics on powerpc
2013-07-12Fix configure detection of ethread native atomics on powerpcRickard Green
2013-07-12Merge branch 'maint'Fredrik Gustafsson
2013-07-12Merge branch 'aw/fix-ftp-report-formatting/OTP-11202' into maintFredrik Gustafsson
* aw/fix-ftp-report-formatting/OTP-11202: Add missing brackets to report formatting on ftp_progress process exit
2013-07-11Fix variable ‘rp_had_locks’ set but not used warningRickard Green
2013-07-11Fix ‘ethr_native_rwlock_destroy’ defined but not used warningRickard Green
2013-07-11Fix 'no previous prototype' warning for dtrace functionsRickard Green
2013-07-11Conditionally skip process_SUITE tests that consume large amount of memoryRickard Green
2013-07-11Merge branch 'maint'Fredrik Gustafsson
2013-07-11Merge branch 'jw/fix-float-middle-endian/OTP-11201' into maintFredrik Gustafsson
* jw/fix-float-middle-endian/OTP-11201: Fix binary construction on floating point middle-endian machines Fix binary matching on floating point middle-endian machines Fix erlang:phash2() on floating point middle-endian machines Fix external term format BIFs on floating point middle-endian machines
2013-07-11Add missing brackets to report formatting on ftp_progress process exitArtur Wilniewczyc
When progress reporting process exits, ftp client crashes because of missing brackets in io_lib:format argument.
2013-07-11Merge branch 'maint'Fredrik Gustafsson
2013-07-11Merge branch 'goofansu/fix-supervisor-typo' into maintFredrik Gustafsson
* goofansu/fix-supervisor-typo: Fix supervisor typo
2013-07-11Fix supervisor typogoofansu
`I` should be `If`
2013-07-10Merge branch 'maint'Rickard Green
* maint: Add test cases for native atomics and jump table Refuse to build SMP runtime by default without native atomics Make information about use of jump table available via system_info BIF Make ethread library information available via system_info BIF Make emulator arguments available via the system_info BIF
2013-07-10Merge branch 'rickard/info/OTP-11196' into maintRickard Green
* rickard/info/OTP-11196: Add test cases for native atomics and jump table Refuse to build SMP runtime by default without native atomics Make information about use of jump table available via system_info BIF Make ethread library information available via system_info BIF Make emulator arguments available via the system_info BIF
2013-07-10Add test cases for native atomics and jump tableRickard Green
2013-07-09Merge branch 'maint'Fredrik Gustafsson
2013-07-09Merge branch 'genrich/stdlib/gen_server_typo/OTP-11200' into maintFredrik Gustafsson
* genrich/stdlib/gen_server_typo/OTP-11200: handle_info Info type possible typo
2013-07-09Merge branch 'maint'Fredrik Gustafsson
2013-07-09Merge branch 'fredrik/ssh/chmod/OTP-11189' into maintFredrik Gustafsson
* fredrik/ssh/chmod/OTP-11189: ssh: Not run chmod every lookup
2013-07-09Merge branch 'maint'Siri Hansen
2013-07-09Merge branch 'sze/ssh_cli_handles/OTP-11199' into maintFredrik Gustafsson
* sze/ssh_cli_handles/OTP-11199: Make ssh_cli.erl handle <CTRL>+C
2013-07-09Merge branch 'maint'Fredrik Gustafsson
2013-07-09Merge branch 'sze/ssh_cli_handles/OTP-11199' into maintFredrik Gustafsson
* sze/ssh_cli_handles/OTP-11199: Make ssh_cli.erl handle <CTRL>+C
2013-07-09Refuse to build SMP runtime by default without native atomicsRickard Green
Build with fallback can be enabled by passing the `configure` command line argument `--disable-smp-require-native-atomics`
2013-07-09Make information about use of jump table available via system_info BIFRickard Green
erlang:system_info(beam_jump_table)
2013-07-09Make ethread library information available via system_info BIFRickard Green
erlang:system_info(ethread_info)
2013-07-09Make emulator arguments available via the system_info BIFRickard Green
erlang:system_info(emu_args)
2013-07-09Merge branch 'siri/ct_netconfc/multiple-filter-notification/OTP-11166' into ↵Siri Hansen
maint * siri/ct_netconfc/multiple-filter-notification/OTP-11166: [ct_netconfc] Allow multiple elements inside filter in create_subscription
2013-07-09Merge branch 'maint'Fredrik Gustafsson
2013-07-09Merge branch 'ra/trailing-spaces-emacs-skels/OTP-11198' into maintFredrik Gustafsson
* ra/trailing-spaces-emacs-skels/OTP-11198: Remove trailing spaces in Emacs templates
2013-07-09Merge branch 'maint'Siri Hansen
2013-07-09Merge branch 'siri/ct_netconfc/doc-send/OTP-11132' into maintSiri Hansen
* siri/ct_netconfc/doc-send/OTP-11132: [common_test] Add documentation for ct_netconfc:send and send_rpc
2013-07-09Merge branch 'maint'Siri Hansen