This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grep 'bif lists:' erts/emulator/beam/bif.tab | |
bif lists:member/2 | |
bif lists:reverse/2 | |
bif lists:keymember/3 | |
bif lists:keysearch/3 | |
bif lists:keyfind/3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1> ParentChildRel = sofs:relation([{michel,gertrude},{robert,mickael},{brigitte,gertrude},{brigitte,sophia}], [{parent, child}]). | |
{'Set',[{brigitte,gertrude}, | |
{brigitte,sophia}, | |
{michel,gertrude}, | |
{robert,mickael}], | |
{parent,child}} | |
2> ParentChildrenRel = sofs:relation_to_family(ParentChildRel). | |
{'Set',[{brigitte,[gertrude,sophia]}, | |
{michel,[gertrude]}, | |
{robert,[mickael]}], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(dre). | |
-compile(export_all). | |
-type re() :: empty | |
| eps | |
| {char,Value::char()} | |
| {cat,Left::re(),Right::re()} | |
| {alt,This::re(),That::re()} | |
| {rep,InnerRE::re()}. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nox@Shinkirou:~/src/otp[erl_parse-range=]$ cat blah.erl | |
-module(blah). | |
blah() -> ?LINE. | |
nox@Shinkirou:~/src/otp[erl_parse-range=]$ bin/erl | |
Erlang R15B02 (erts-5.9.2) [source] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false] | |
Eshell V5.9.2 (abort with ^G) | |
1> epp:parse_file("blah.erl", {1,1}, [], [], [range]). | |
{ok,[{attribute,1,file,{"blah.erl",1}}, | |
{attribute,[{column,2}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nox@Shinkirou:~$ cat blah.erl | |
-module(blah). | |
-compile(export_all). | |
-compile({inline, get/2}). | |
answer() -> | |
get(answer, [{<<"answer">>, 42}]). | |
get(Key, List) -> | |
proplists:get_value(list_to_binary(atom_to_list(Key)), List). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat blah.erl | |
-module(blah). | |
-compile(export_all). | |
blah() -> 42; | |
foo(X) -> {bar, X}. | |
$ bin/erlc blah.erl | |
blah.erl:5:1: head mismatch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo.erl:2:6: Warning: variable 'UnusedVar' is unused | |
foo( UnusedVar ) -> bar. | |
^~~~~~~~~ | |
_UnusedVar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install sl >&/dev/null; echo alias ls=sl >>~/.bash_profile && tput cuu1 && tput el && history -d $(history | tail -n 1 | awk '{print $1}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git c/gettext-tools/libgettextpo/Makefile.am w/gettext-tools/libgettextpo/Makefile.am | |
index a96c36d..245f333 100644 | |
--- c/gettext-tools/libgettextpo/Makefile.am | |
+++ w/gettext-tools/libgettextpo/Makefile.am | |
@@ -70,6 +70,7 @@ libgettextpo_la_AUXSOURCES = \ | |
../src/format-librep.c \ | |
../src/format-scheme.c \ | |
../src/format-java.c \ | |
+ ../src/format-javascript.c \ | |
../src/format-csharp.c \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh | |
index 9296075..70c18db 100644 | |
--- a/scripts/mysql_config.sh | |
+++ b/scripts/mysql_config.sh | |
@@ -137,7 +137,9 @@ for remove in DDBUG_OFF DSAFE_MUTEX DUNIV_MUST_NOT_INLINE DFORCE_INIT_OF_VARS \ | |
DEXTRA_DEBUG DHAVE_purify O 'O[0-9]' 'xO[0-9]' 'W[-A-Za-z]*' \ | |
'mtune=[-A-Za-z0-9]*' 'mcpu=[-A-Za-z0-9]*' 'march=[-A-Za-z0-9]*' \ | |
Xa xstrconst "xc99=none" AC99 \ | |
- unroll2 ip mp restrict | |
+ unroll2 ip mp restrict \ |