- Request specific audio device; allow no deviations in freq or channels by @katajakasa in omf2097/openomf#818
- Add missing include headers by @Vagabond in omf2097/openomf#819
- Don't fail to parse the config file due to an unknown option by @Vagabond in omf2097/openomf#820
- Netplay: improve latency by @Vagabond in omf2097/openomf#821
- game: Do not render fight stats in vs scene if match was cancelled by @mrannanj in omf2097/openomf#817
- game: Use omf_strdup() over strncpy() in cutscene_create() by @mrannanj in omf2097/openomf#825
- More netplay cleanups by @Vagabond in omf2097/openomf#826
- PR-on-PR: Remove extraneous u16-to-u16 cast by @Nopey in omf2097/openomf#828
- Fix pilot gender in tournament mode by @Vagabond in omf2097/openomf#823
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
#!/bin/bash | |
# For each staked validator, get the release version | |
# command to call miner of the desired validator to use | |
MINER=./_build/validator/rel/miner/bin/miner | |
VALS=$(${MINER} ledger validators --format csv -v | awk -F, '$7 == "staked" {print $2}') | |
${MINER} ledger validators --format csv -v | awk -F, '$7 == "staked" {print $2}' | xargs -P 0 -I{} ${MINER} peer connect /p2p/{} |
I hereby claim:
- I am vagabond on github.
- I am andrewthompson (https://keybase.io/andrewthompson) on keybase.
- I have a public key ASBjgnJmEQD9h7wni6HU_KXKjOWNpjFxBwktiltg7IvcHwo
To claim this, I am signing this object:
Here's my proposal on the general steps to modernize Riak's repos to work with OTP20 and rebar3:
- Replace bundled copy of rebar with a chosen version of rebar3
- Add any required rebar3 plugins (eqc, port compiler, etc)
- Rework any EQC tests to work with the rebar3 EQC plugin and not be eunit tests
- Remove tools.mk and Makefile if present
- Add a generic Makefile which has targets for compile/dialyzer/eunit/common_test/xref/coverage/eqc and a 'check' meta-target
- We can also add Travis/coveralls support (example: helium/erlang-libp2p#33 (comment))
- Commit the rebar3 rebar.lock file - this replaces the old lock-deps rebar2 plugin
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(hashmap_eqc). | |
%% include some quickcheck headers | |
-include_lib("eqc/include/eqc.hrl"). | |
-include_lib("eqc/include/eqc_statem.hrl"). | |
%% include the eqc-c generated header | |
-include("hashmap.hrl"). | |
%% function to initialize the model state |
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:#include "utils/hashmap.h" | |
-: 2:#include <stdint.h> | |
-: 3:#include <stdlib.h> | |
-: 4:#include <string.h> | |
-: 5:#include <math.h> | |
-: 6: | |
-: 7:#define FNV_32_PRIME ((uint32_t)0x01000193) | |
-: 8:#define FNV1_32_INIT ((uint32_t)2166136261) | |
-: 9:#define TINY_MASK(x) (((uint32_t)1<<(x))-1) | |
-: 10:#define BUCKETS_SIZE(x) (pow(2,(x))) |
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
hashmap_iter_delete_pre(S) -> | |
S#state.hashmap /= undefined. | |
hashmap_iter_delete_args(S = #state{map=Map}) when length(Map) > 0 -> | |
[S#state.hashmap, | |
eqc_gen:oneof([eqc_gen:elements(element(1, lists:unzip(S#state.map))), | |
?SUCHTHAT(X1, eqc_gen:list(eqc_gen:char()), length(X1) > 0)])]; | |
hashmap_iter_delete_args(S) -> | |
[S#state.hashmap, ?SUCHTHAT(X1, eqc_gen:list(eqc_gen:char()), length(X1) > 0)]. |
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
hashmap_replace_pre(S) -> | |
S#state.hashmap /= undefined andalso length(S#state.map) > 0. | |
hashmap_replace_args(S) -> | |
{Keys, Values} = lists:unzip(S#state.map), | |
[S#state.hashmap, eqc_gen:oneof(Keys), | |
?SUCHTHAT(X2, eqc_gen:list(eqc_gen:char()), length(X2) > 0 andalso not lists:member(X2, Values))]. | |
hashmap_replace(Hashmap, Key, Value) -> | |
KeyStr = eqc_c:create_string(Key), |
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
hashmap_compare_pre(S) -> | |
S#state.hashmap /= undefined. | |
hashmap_compare_args(S) -> | |
[S#state.hashmap]. | |
hashmap_compare(Hashmap) -> | |
Iter = eqc_c:alloc({struct, iterator_t}), | |
hashmap:hashmap_iter_begin(Hashmap, Iter), | |
R = dump_hash(Iter, []), |
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
hashmap_delete_pre(S) -> | |
S#state.hashmap /= undefined. | |
hashmap_delete_args(S = #state{map=Map}) when length(Map) > 0 -> | |
[S#state.hashmap, | |
eqc_gen:oneof([eqc_gen:elements(element(1, lists:unzip(S#state.map))), | |
?SUCHTHAT(X1, eqc_gen:list(eqc_gen:char()), length(X1) > 0)])]; | |
hashmap_delete_args(S) -> | |
[S#state.hashmap, ?SUCHTHAT(X1, eqc_gen:list(eqc_gen:char()), length(X1) > 0)]. |
NewerOlder