message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Makefile: disable KCONFIG_FILE when build from xml
The SCENARIO xml file already includes all information of KCONFIG file,
use KCONFIG_FILE/SCENARIO_FILE parameter at same time would introduce
conflict so this case should be invalid. | @@ -13,7 +13,6 @@ TARGET_DIR ?=
# 2. make <target> KCONFIG_FILE=xxx [TARGET_DIR=xxx]
# 3. make <target> BOARD=xxx SCENARIO=xxx [TARGET_DIR=xxx]
# 4. make <target> BOARD_FILE=xxx SCENARIO_FILE=xxx [TARGET_DIR=xxx]
-# 5. make <target> KCONFIG_FILE=xxx BOARD_FILE=xxx SCENARIO_FILE=xxx [TARGET_DIR=xxx]
#
# Especially for c... |
move more select() to pselect() | @@ -5786,7 +5786,7 @@ return;
static inline void process_server()
{
static fd_set readfds;
-static struct timeval tvfd;
+static struct timespec tsfd;
static int fdnum;
static int msglen;
static uint32_t statuscount;
@@ -5799,8 +5799,8 @@ timestamp = timestampstart;
wantstopflag = false;
signal(SIGINT, programmende);
st... |
Avoid _mm_bslli_si128 for VS2015 compat (method 2) | @@ -1166,9 +1166,9 @@ ASTCENC_SIMD_INLINE vint4 vtable_8bt_32bi(vint4 t0, vint4 t1, vint4 t2, vint4 t3
ASTCENC_SIMD_INLINE vint4 interleave_rgba8(vint4 r, vint4 g, vint4 b, vint4 a)
{
__m128i value = r.m;
- value = _mm_add_epi32(value, _mm_bslli_si128(g.m, 1));
- value = _mm_add_epi32(value, _mm_bslli_si128(b.m, 2));
-... |
Fix libcanard github download link to get it compiling correctly | @@ -20,7 +20,7 @@ config LIBCANARD_URL
config LIBCANARD_VERSION
string "libcanard Version"
- default "e4a1d52be862b03e5872add75890e67bf1d9187c"
+ default "5ad65c6a4efda60cda7a8f0512da0f465822bbb8"
---help---
libcanard version.
|
Run zig fmt on demo code to ensure consistency | @@ -8,8 +8,7 @@ const TICGuy = struct {
var t: u16 = 0;
var mascot: TICGuy = .{};
-export fn BOOT() void {
-}
+export fn BOOT() void {}
export fn TIC() void {
if (tic.btn(0)) {
@@ -31,4 +30,3 @@ export fn TIC() void {
t += 1;
}
-
|
[RAFT] fix logging for work of blockfactory | @@ -70,7 +70,7 @@ func (work *Work) GetTimeout() time.Duration {
}
func (work *Work) ToString() string {
- return fmt.Sprintf("bestblock=%s", work.BlockID())
+ return fmt.Sprintf("bestblock=%s, no=%d, term=%d", work.BlockID(), work.BlockNo(), work.term)
}
type leaderReady struct {
@@ -246,7 +246,10 @@ func (bf *BlockFa... |
README: update Compiler Explorer links | @@ -51,7 +51,7 @@ implementations using one (or more) of the following:
For an example of a project using SIMDe, see
[LZSSE-SIMDe](https://github.com/nemequ/LZSSE-SIMDe).
-You can [try SIMDe online](https://godbolt.org/z/xkT8MA) using Compiler
+You can [try SIMDe online](simde.netlify.com/godbolt/demo) using Compiler
E... |
Disable COLLADA importer; | @@ -60,7 +60,6 @@ set(ASSIMP_BUILD_ASSIMP_TOOLS OFF CACHE BOOL "")
set(ASSIMP_BUILD_TESTS OFF CACHE BOOL "")
set(ASSIMP_NO_EXPORT ON CACHE BOOL "")
set(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT OFF CACHE BOOL "")
-set(ASSIMP_BUILD_COLLADA_IMPORTER ON CACHE BOOL "")
set(ASSIMP_BUILD_FBX_IMPORTER ON CACHE BOOL "")
set(ASSIMP... |
Better types in plugin interface | @@ -72,9 +72,9 @@ typedef struct ethPluginInitContract_t {
ethPluginSharedRW_t *pluginSharedRW;
ethPluginSharedRO_t *pluginSharedRO;
uint8_t *pluginContext;
- uint32_t pluginContextLength;
+ size_t pluginContextLength;
uint8_t *selector; // 4 bytes selector
- uint32_t dataSize;
+ size_t dataSize;
char *alias; // 29 byt... |
Build: Add console libraries to components | PLATFORM_NAME = OcSupportPkg
PLATFORM_GUID = C9F9C1B2-67ED-4496-97B6-3B24F083A2E6
PLATFORM_VERSION = 1.0
- SUPPORTED_ARCHITECTURES = X64
+ SUPPORTED_ARCHITECTURES = X64|IA32
BUILD_TARGETS = RELEASE|DEBUG|NOOPT
SKUID_IDENTIFIER = DEFAULT
DSC_SPECIFICATION = 0x00010006
OcAppleUserInterfaceThemeLib|OcSupportPkg/Library/Oc... |
Add more info to quicktest | @@ -73,6 +73,9 @@ LimeSDRTest* LimeSDRTest::Connect()
{
std::string str = "->Device: ";
str += handles[0].serialize();
+ str += ", HW=" + std::string(info->hardwareVersion);
+ str += ", GW=" + std::string(info->gatewareVersion);
+
UpdateStatus(LMS_TEST_INFO, str.c_str());
if (str.find("USB 3") == std::string::npos)
{
@... |
Badger2040: Remove button release wait from clear. | @@ -14,10 +14,6 @@ namespace {
gpio_put(pimoroni::Badger2040::ENABLE_3V3, 1);
}
- bool get_current() {
- return gpio_get_all() & (0x1f << pimoroni::Badger2040::DOWN);
- }
-
bool any() const {
return state > 0;
}
@@ -285,11 +281,6 @@ mp_obj_t Badger2040_pressed_to_wake2(mp_obj_t self_in, mp_obj_t button) {
mp_obj_t Badg... |
change log for collecting txs in consensus to Info level | @@ -124,7 +124,7 @@ func GatherTXs(hs component.ICompSyncRequester, bState *state.BlockState, txOp T
if logger.IsDebugEnabled() {
defer func() {
- logger.Debug().
+ logger.Info().
Int("candidates", nCand).
Int("collected", nCollected).
Msg("transactions collected")
|
switch to git branch | @@ -18,7 +18,7 @@ search () {
echo "Running check on submodule $submodule in $dir"
hash=$(echo "$status" | grep $submodule | awk '{print$1}' | grep -o "[[:alnum:]]*")
echo "Searching for $hash in origin/master of $submodule"
- git -C $dir/$submodule log origin/master | grep "$hash" # needs init'ed submodules
+ git -C $... |
Simplify codegen output for union flags when only a single flag is set | @@ -229,6 +229,9 @@ const unionFlags = (flags: string[], defaultValue = "0") => {
if (flags.length === 0) {
return defaultValue;
}
+ if (flags.length === 1) {
+ return flags[0];
+ }
return `^/(${flags.join(" | ")})/`;
};
|
WriteOutput(): give proper length to cUnit[]. | @@ -1630,7 +1630,7 @@ void WriteOutput(BODY *body,CONTROL *control,FILES *files,OUTPUT *output,SYSTEM
int iBody,iCol,iOut,iSubOut,iExtra=0,iGrid,iLat,jBody,j;
double dCol[NUMOPT],*dTmp,dGrid[NUMOPT];
FILE *fp;
- char cUnit[OPTLEN], cPoiseGrid[NAMELEN], cLaplaceFunc[NAMELEN];
+ char cUnit[OPTDESCR], cPoiseGrid[NAMELEN],... |
Adjust demo http project file to fulfill v1.4.6 | <FileName>aws_dev_mode_key_provisioning.c</FileName>
<FileType>1</FileType>
<FilePath>..\..\..\common\devmode_key_provisioning\aws_dev_mode_key_provisioning.c</FilePath>
- <FileOption>
- <CommonProperty>
- <UseCPPCompiler>2</UseCPPCompiler>
- <RVCTCodeConst>0</RVCTCodeConst>
- <RVCTZI>0</RVCTZI>
- <RVCTOtherData>0</RVC... |
Fix incorrect placement of pfree() in pg_relation_check_pages()
This would cause the function to crash when more than one page is
considered as broken and reported in the SRF.
Reported-by: Noriyoshi Shinoda
Discussion: | @@ -220,9 +220,9 @@ check_relation_fork(TupleDesc tupdesc, Tuplestorestate *tupstore,
/* Save the corrupted blocks in the tuplestore. */
tuplestore_putvalues(tupstore, tupdesc, values, nulls);
+ }
pfree(path);
- }
/* Pop the error context stack */
error_context_stack = errcallback.previous;
|
Large messages seem to work reliably; needs fuzz. | =^ gim ..weft wisp
:_ +>.$
^- (list rock)
- =+ wit=(met ?:(fak.ton 16 13) q.gim)
+ =+ wit=(met 13 q.gim)
?< =(0 wit)
?: =(1 wit)
=+ yup=(spit [our her] p.gim q.gim)
[yup ~]
- =+ ruv=(rip ?:(fak.ton 16 13) q.gim)
+ =+ ruv=(rip 13 q.gim)
=+ inx=0
|- ^- (list rock)
?~ ruv ~
|
Return nil for JSON and add todo comments | @@ -51,7 +51,9 @@ static Value parseJson(VM *vm, json_value *json) {
switch (json->type) {
case json_none:
case json_null: {
- return EMPTY_VAL;
+ // TODO: We return nil on failure however "null" is valid JSON
+ // TODO: We need a better way of handling this scenario
+ return NIL_VAL;
}
case json_object: {
|
tools/mpy-tool.py: Adjust use of super() to make it work with Python 2.
Fixes the regression introduced in | @@ -259,7 +259,7 @@ def extract_prelude(bytecode, ip):
class MPFunTable:
pass
-class RawCode:
+class RawCode(object):
# a set of all escaped names, to make sure they are unique
escaped_names = set()
@@ -423,7 +423,7 @@ class RawCode:
class RawCodeBytecode(RawCode):
def __init__(self, bytecode, qstrs, objs, raw_codes):
... |
Modify comment error
Device file system should be registered | @@ -326,7 +326,7 @@ static const struct dfs_filesystem_ops _device_fs =
int devfs_init(void)
{
- /* register rom file system */
+ /* register device file system */
dfs_register(&_device_fs);
return 0;
|
travis CHANGE add missing pcre2 dependency for OS X build | @@ -85,5 +85,6 @@ jobs:
- tar -xf cmocka-1.1.2.tar.xz
- cd cmocka-1.1.2; mkdir build; cd build; cmake .. && make -j2 && sudo make install; cd ../..
- brew update
+ - brew install pcre2
script:
- mkdir build && cd build; cmake -DENABLE_VALGRIND_TESTS=OFF .. && make -j2 && ctest --output-on-failure; cd -
|
zephyr/test/hooks/hooks.c: Format with clang-format
BRANCH=none
TEST=none | @@ -201,9 +201,7 @@ static void test_hook_ap_power_events(void)
void test_main(void)
{
- ztest_test_suite(
- hooks_tests,
- ztest_unit_test(test_hook_list_multiple),
+ ztest_test_suite(hooks_tests, ztest_unit_test(test_hook_list_multiple),
ztest_unit_test(test_hook_list_single),
ztest_unit_test(test_hook_list_empty),
z... |
Solve minor bug in serial test. | @@ -106,8 +106,8 @@ TEST_F(serial_test, DefaultConstructor)
static const value value_map[] =
{
- value_create_array(value_map_a, sizeof(value_map_a)),
- value_create_array(value_map_b, sizeof(value_map_b))
+ value_create_array(value_map_a, sizeof(value_map_a) / sizeof(value_map_a[0])),
+ value_create_array(value_map_b,... |
Remove lane selects from compute_ideal_weights
No longer needed as arrays are padded with safe values | @@ -826,14 +826,8 @@ void compute_ideal_weights_for_decimation(
for (unsigned int j = 0; j < max_texel_count; j++)
{
- // Not all lanes may actually use j texels, so mask out if idle
- vmask active = weight_texel_count > vint(j);
-
vint texel(di.weight_texel[j] + i);
- texel = select(vint::zero(), texel, active);
-
vfl... |
hssi: fix issue identified by checkers | @@ -246,8 +246,11 @@ public:
"/fpga_region/region*/dfl-fme.*/dfl-fme.*.*/net/*";
glob_t gl;
- if (glob(oss.str().c_str(), 0, nullptr, &gl))
+ if (glob(oss.str().c_str(), 0, nullptr, &gl)) {
+ if (gl.gl_pathv)
+ globfree(&gl);
return std::string("");
+ }
if (gl.gl_pathc > 1)
std::cerr << "Warning: more than one ethernet... |
Correct usage message for genesis init | @@ -22,7 +22,7 @@ var initGenesis = &cobra.Command{
Short: "Create genesis block based on input json file",
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 1 {
- fmt.Fprintln(os.Stderr, "Usage: aergosvr init {genesis.json} --data {target directory}")
+ fmt.Fprintln(os.Stderr, "Usage: aergosvr init {genes... |
VarDiff cleanup | @@ -74,15 +74,13 @@ namespace MiningCore.VarDiff
// add penalty for missing shares
if (tsRelative.Count < desiredShares - 1)
- avg += options.TargetTime * 0.5 * ((double)tsRelative.Count / (desiredShares - 1));
+ avg += options.TargetTime * 0.5 * (tsRelative.Count / (desiredShares - 1));
// re-target if outside bounds
... |
RemoteContent: remove crossOrigin attribute if CORS unsupported | @@ -23,6 +23,7 @@ interface RemoteContentProps {
interface RemoteContentState {
unfold: boolean;
embed: any | undefined;
+ noCors: boolean;
}
const IMAGE_REGEX = new RegExp(/(jpg|img|png|gif|tiff|jpeg|webp|webm|svg)$/i);
@@ -36,11 +37,13 @@ class RemoteContent extends PureComponent<RemoteContentProps, RemoteContentStat... |
Ignore REX-prefix, if it is not the last prefix before the opcode | @@ -777,6 +777,10 @@ static ZydisStatus ZydisCollectOptionalPrefixes(ZydisDecoderContext* context,
}
if (!done)
{
+ if ((prefixByte & 0xF0) != 0x40)
+ {
+ info->details.rex.data[0] = 0x00;
+ }
context->prefixes[info->details.prefixes.count] = prefixByte;
info->details.prefixes.data[info->details.prefixes.count++] = pre... |
Neoverse N2: DYNAMIC_ARCH | @@ -99,6 +99,11 @@ extern gotoblas_t gotoblas_NEOVERSEN1;
#else
#define gotoblas_NEOVERSEN1 gotoblas_ARMV8
#endif
+#ifdef DYN_NEOVERSEN2
+extern gotoblas_t gotoblas_NEOVERSEN2;
+#else
+#define gotoblas_NEOVERSEN2 gotoblas_ARMV8
+#endif
#ifdef DYN_CORTEX_A55
extern gotoblas_t gotoblas_CORTEXA55;
#else
@@ -115,6 +120,7 @... |
README: Update commit since last release shield for alpha14 | <img src="https://github.com/premake/premake-core/wiki/windows-widget.jpeg" width="24" height="24"/> [](https://ci.appveyor.com/project/PremakeOrganization/premake-core)
[;
+static method class_get_meth... |
docs/uio: Document BytesIO/StringIO.__iadd__() method. | @@ -210,13 +210,36 @@ Classes
can be specified with *string* parameter (should be normal string
for `StringIO` or bytes object for `BytesIO`). All the usual file
methods like ``read()``, ``write()``, ``seek()``, ``flush()``,
- ``close()`` are available on these objects, and additionally, a
- following method:
+ ``close... |
doc: update decisions template
markdown guidelines | -# Template
+# Template #
-## Issue
+## Issue ##
-## Constraints
+## Constraints ##
-## Assumptions
+## Assumptions ##
-## Considered Alternatives
+## Considered Alternatives ##
-## Decision
+## Decision ##
-## Argument
+## Argument ##
-## Implications
+## Implications ##
-## Related decisions
+## Related decisions ##
... |
[util/mktemp.cpp] throw TSystemError | @@ -89,7 +89,7 @@ TString MakeTempName(const char* wrkDir, const char* prefix) {
TArrayHolder<char> ret(makeTempName(wrkDir, prefix));
if (!ret) {
- ythrow yexception() << "can not create temp name(" << wrkDir << ", " << prefix << ")";
+ ythrow TSystemError() << "can not create temp name(" << wrkDir << ", " << prefix <... |
integrationtest/TestBiolatency: Validate json output | @@ -27,6 +27,7 @@ import (
"time"
. "github.com/inspektor-gadget/inspektor-gadget/integration"
+ bioprofileTypes "github.com/inspektor-gadget/inspektor-gadget/pkg/gadgets/profile/block-io/types"
cpuprofileTypes "github.com/inspektor-gadget/inspektor-gadget/pkg/gadgets/profile/cpu/types"
processCollectorTypes "github.co... |
fix CGO_ENABLED for build of go standard library | @@ -3690,7 +3690,7 @@ macro GO_FAKE_OUTPUT(FILES...) {
CGO_ENABLED=yes
-when ($SANITIZER_TYPE && $SANITIZER_TYPE != "no") {
+when ($OS_WINDOWS == "yes" || $SANITIZER_TYPE && $SANITIZER_TYPE != "no") {
CGO_ENABLED=no
}
|
[software] Adapt allocator test to new runtime | @@ -32,7 +32,7 @@ int main() {
uint32_t num_cores = mempool_get_core_count();
// Initialize synchronization variables
- mempool_barrier_init(core_id, num_cores);
+ mempool_barrier_init(core_id);
// Test
if (core_id == 0) {
@@ -141,6 +141,6 @@ int main() {
}
// wait until all cores have finished
- mempool_barrier(num_co... |
Remove unused action typed | @@ -25,14 +25,6 @@ export const PROJECT_SAVE_REQUEST = "PROJECT_SAVE_REQUEST";
export const PROJECT_SAVE_SUCCESS = "PROJECT_SAVE_SUCCESS";
export const PROJECT_SAVE_FAILURE = "PROJECT_SAVE_FAILURE";
-export const WORLD_LOAD_REQUEST = "WORLD_LOAD_REQUEST";
-export const WORLD_LOAD_SUCCESS = "WORLD_LOAD_SUCCESS";
-export... |
fix movemouse monitor issue | @@ -246,6 +246,17 @@ int checkfloating(Client *c) {
return 0;
}
+int visible(Client *c) {
+ Monitor *m;
+ if (!c)
+ return 0;
+ for (m = mons; m; m = m->next) {
+ if (c->tags & m->seltags && c->mon == m)
+ return 1;
+ }
+ return 0;
+}
+
void changesnap(Client *c, int snapmode) {
int snapmatrix[10][4] = {
{9, 3, 5, 7}, ... |
feat(devcontainer): persist bash history
When combined with the root user volume, this commit instructs bash to save each command to the bash history after execution, thereby sharing the bash history between any containers that use the volume.
Based on the advice of KemoNine.
PR: | "name": "ZMK Development",
"dockerFile": "Dockerfile",
"runArgs": ["--security-opt", "label=disable"],
- "containerEnv": { "WORKSPACE_DIR": "${containerWorkspaceFolder}" },
+ "containerEnv": {
+ "WORKSPACE_DIR": "${containerWorkspaceFolder}",
+ "PROMPT_COMMAND": "history -a"
+ },
"mounts": [
"type=volume,source=zmk-roo... |
naive: cleanup style | ++ common-vote %vote-key-0
++ common-ownr %ownr-key-0
++ common-tran %tran-key-0
-++ rut-ship-list %- ly :* ~rut
+++ rut-ship-list %- ly
+ :* ~rut
~holrut
~rigrut
~losrut
==
::
:: initial ownership keys for each point under ~rut
-++ default-own-keys %- my:nl :* [~rut %rut-key-0]
+++ default-own-keys %- my:nl
+ :* [~rut... |
Fix the KEYNID2TYPE macro
This macro was not correctly handling keys | : ((id) == EVP_PKEY_X448 ? X448_KEYLEN \
: ED448_KEYLEN))
#define KEYNID2TYPE(id) \
- (IS25519(id) ? ECX_KEY_TYPE_X25519 \
+ (IS25519(id) ? ((id) == EVP_PKEY_X25519 ? ECX_KEY_TYPE_X25519 \
+ : ECX_KEY_TYPE_ED25519) \
: ((id) == EVP_PKEY_X448 ? ECX_KEY_TYPE_X448 \
- : ((id) == EVP_PKEY_ED25519 ? ECX_KEY_TYPE_ED25519 \
-... |
Use LabeledOutput and operator | #include <util/generic/vector.h>
#include <util/generic/yexception.h>
#include <util/stream/buffer.h>
+#include <util/stream/labeled.h>
#include <util/system/yassert.h>
#include <climits>
@@ -322,8 +323,7 @@ namespace NCB {
const ui32 maxBound = ui32(1) << (CHAR_BIT * bundleSizeInBytes);
CB_ENSURE_INTERNAL(
(boundsInBu... |
Fix SceJpegEncoderInitParamOption | @@ -30,7 +30,7 @@ typedef enum SceJpegEncoderHeaderMode {
SCE_JPEGENC_HEADER_MODE_MJPEG = 1 //!< MJPEG header mode
} SceJpegEncoderHeaderMode;
-typedef struct SceJpegEncoderInitParamOption {
+typedef enum SceJpegEncoderInitParamOption {
SCE_JPEGENC_INIT_PARAM_OPTION_NONE = 0, //!< Default option
SCE_JPEGENC_INIT_PARAM_... |
add drivers for softiron networking | --- a/etc/bootstrap.conf 2017-10-23 12:42:13.000000000 -0700
-+++ b/etc/bootstrap.conf 2017-10-23 12:43:25.000000000 -0700
-@@ -32,6 +32,9 @@
++++ b/etc/bootstrap.conf 2017-10-23 14:14:28.000000000 -0700
+@@ -32,6 +32,10 @@
modprobe += xhci-hcd, sl811-hcd, sd_mod
# modprobe += mlx4_core log_num_mtts=20 log_mtts_per_seg... |
Completions: Remove trailing dot from description | @@ -154,7 +154,7 @@ __fish_kdb_add_option '__fish_kdb_subcommand_supports_option_force' 'force' 'f'
__fish_kdb_add_option '__fish_kdb_subcommand_supports_common_options' 'help' 'H' 'Show the man page'
# --null -0
-__fish_kdb_add_option '__fish_kdb_subcommand_supports_option_null' 'null' '0' 'Use binary 0 termination.'
... |
Port CC2538 AES-CCM implementatiob to new API | @@ -79,8 +79,8 @@ set_key(const uint8_t *key)
}
/*---------------------------------------------------------------------------*/
static void
-aead(const uint8_t *nonce, uint8_t *m, uint8_t m_len, const uint8_t *a,
- uint8_t a_len, uint8_t *result, uint8_t mic_len, int forward)
+aead(const uint8_t *nonce, uint8_t *m, uin... |
schema MAINTENANCE remove unused variable | @@ -2807,7 +2807,6 @@ lys_compile_type_(struct lysc_ctx *ctx, struct lysp_node *context_node_p, uint16
struct lysc_type_dec *dec;
struct lysc_type_identityref *idref;
struct lysc_type_union *un, *un_aux;
- void *p;
switch (basetype) {
case LY_TYPE_BINARY:
|
80-test_cmp_http.t: Extend diagnostics of mock server launch | @@ -279,7 +279,8 @@ sub start_mock_server {
print "Mock server already running with pid=$pid\n";
return $pid;
}
- print "Launching mock server: $cmd\n";
+ print "Current directory is ".getcwd()."\n";
+ print "Launching mock server listening on port $server_port: $cmd\n";
return system("$cmd &") == 0 # start in backgrou... |
u3: rewrites +murn jet using u3i_defcons() | #include "all.h"
u3_noun
- _murn_in(u3j_site* sit_u, u3_noun a)
+u3qb_murn(u3_noun a, u3_noun b)
{
- if ( 0 == a ) {
- return a;
- }
- else if ( c3n == u3du(a) ) {
- return u3m_bail(c3__exit);
+ u3_noun pro = u3_nul;
+
+ if ( u3_nul == a ) {
+ return u3_nul;
}
else {
- u3_noun one = u3j_gate_slam(sit_u, u3k(u3h(a)));
-... |
Add instructions for using the include-dirs switch if GSL headers are not found | @@ -558,7 +558,7 @@ A Python wrapper for {\tt CCL} is provided through a module called {\tt pyccl}.
\subsection{Python installation}
\label{sec:python:install}
-Before you can build the Python wrapper, you must have compiled and installed the C version of {\tt CCL}, as {\tt pyccl} will be dynamically linked to it. The ... |
Tests: more URI normalization tests. | @@ -901,31 +901,75 @@ class TestRouting(TestApplicationProto):
'success',
self.route(
{
- "match": {"uri": "/"},
+ "match": {"uri": ["/blah", "/slash/"]},
"action": {"pass": "applications/empty"},
}
),
'match uri positive configure',
)
- self.assertEqual(self.get()['status'], 200, 'match uri positive')
+ self.assertEqu... |
Add base in rs loader for parsing the signature types. | @@ -212,8 +212,8 @@ impl FunctionVisitor {
}
}
- fn add_function(&mut self, name: String) {
- self.functions.push(name)
+ fn add_function(&mut self, name: String, decl: &rustc_ast::ptr::P<rustc_ast::ast::FnDecl>) {
+ self.functions.push(name);
}
}
@@ -221,7 +221,7 @@ impl FunctionVisitor {
impl<'a> visit::Visitor<'a> f... |
BugID:16944882:fix whiteScan bug 2 | @@ -81,7 +81,7 @@ mb_status_t mb_serial_frame_recv(mb_handler_t *handler)
int32_t ret;
uart_dev_t *uart = (mb_handler_t *)handler->private;
- mb_log(MB_LOG_DEBUG, "waiting %d ms for rev frame\n", handler->respond_timeout);
+ mb_log(MB_LOG_DEBUG, "waiting %ld ms for rev frame\n", handler->respond_timeout);
ret = hal_uar... |
bricks/movehub: enable iodevices
This will stay enabled until other hubs support Bluetooth. | #define PYBRICKS_HUB_MOVEHUB (1)
// Pybricks modules
-#define PYBRICKS_PY_IODEVICES (0)
+#define PYBRICKS_PY_IODEVICES (1)
#define PYBRICKS_PY_PARAMETERS (1)
#define PYBRICKS_PY_PUPDEVICES (1)
#define PYBRICKS_PY_TOOLS (1)
|
ci: run integration_test when submodule changes | - "tools/ci/python_packages/tiny_test_fw/**/*"
- "tools/ci/integration_test/**/*"
+ - "components/bt/controller/lib_esp32"
+ - "components/bt/controller/lib_esp32c3_family"
+ - "components/bt/controller/lib_esp32h2/esp32h2-bt-lib"
+ - "components/bt/host/nimble/nimble"
+ - "components/esp_wifi/lib"
+ - "components/esp_... |
Exception safety. | @@ -470,6 +470,7 @@ SEXP CatBoostFit_R(SEXP learnPoolParam, SEXP testPoolParam, SEXP fitParamsAsJson
TPoolHandle learnPool = reinterpret_cast<TPoolHandle>(R_ExternalPtrAddr(learnPoolParam));
TDataProviders pools;
pools.Learn = learnPool;
+ pools.Learn->Ref();
auto fitParams = LoadFitParams(fitParamsAsJsonParam);
TFullM... |
SOVERSION bump to evrsion 4.0.11 | @@ -35,7 +35,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 4)
set(SYSREPO_MINOR_SOVERSION 0)
-set(SYSREPO_MICRO_SOVERSION 10)
+set(SYSREPO_MICRO_S... |
docs: removed duplicate header includes in doxyfile | @@ -204,8 +204,6 @@ INPUT = \
$(PROJECT_PATH)/components/esp_pm/include/esp_pm.h \
$(PROJECT_PATH)/components/esp_pm/include/$(IDF_TARGET)/pm.h \
$(PROJECT_PATH)/components/esp_timer/include/esp_timer.h \
- $(PROJECT_PATH)/components/esp_event/include/esp_event.h \
- $(PROJECT_PATH)/components/esp_event/include/esp_eve... |
sr_cond MAINTENANCE unused members removed | */
typedef struct {
uint32_t futex; /**< futex used for waiting and signalling idle/ready */
- uint32_t waiters; /**< number of waiters for the futex */
- pthread_mutex_t wait_lock; /**< lock held while the futex is being waited on */
} sr_cond_t;
/**
|
Set the ns on impl decls to match the impl ns. | @@ -247,6 +247,7 @@ Node *
mkimplstmt(Srcloc loc, Node *name, Type *t, Type **aux, size_t naux, Node **decls, size_t ndecls)
{
Node *n;
+ size_t i;
n = mknode(loc, Nimpl);
n->impl.traitname = name;
@@ -256,6 +257,9 @@ mkimplstmt(Srcloc loc, Node *name, Type *t, Type **aux, size_t naux, Node **decl
n->impl.decls = decls... |
[Rust] Model core command to query info about an amc service | @@ -178,6 +178,48 @@ pub fn amc_free_physical_range(vaddr: usize, size: usize) {
amc_message_await(Some(AMC_CORE_SERVICE_NAME));
}
+#[repr(C)]
+#[derive(Debug, ContainsEventField)]
+pub struct AmcQueryServiceRequest {
+ pub event: u32,
+ pub remote_service_name: [u8; AMC_MAX_SERVICE_NAME_LEN],
+}
+
+impl ExpectsEventFi... |
Add Watchdog Thread to spinquic | @@ -66,6 +66,42 @@ public:
}
};
+//
+// The amount of extra time (in milliseconds) to give the watchdog before
+// actually firing.
+//
+#define WATCHDOG_WIGGLE_ROOM 1000
+
+class SpinQuicWatchdog {
+ QUIC_THREAD WatchdogThread;
+ QUIC_EVENT ShutdownEvent;
+ uint32_t TimeoutMs;
+ static
+ QUIC_THREAD_CALLBACK(WatchdogT... |
Update to work with stack frame | @@ -1129,7 +1129,6 @@ class ScriptBuilder {
};
_actorInterruptMovement = (addr: string) => {
- this.includeActor = true;
this._addCmd("VM_ACTOR_INTERRUPT_MOVEMENT", addr);
};
@@ -1870,7 +1869,8 @@ class ScriptBuilder {
};
actorInterruptMovement = () => {
- this._actorInterruptMovement("ACTOR");
+ const actorRef = this.... |
Enables debugging for CMake | @@ -6,8 +6,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_custom_target(build-ravencoin ALL
COMMAND ./autogen.sh
- COMMAND ./configure
- COMMAND $(MAKE) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ COMMAND ./configure --enable-debug
+ COMMAND $(MAKE) -j 8 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
... |
[NFSU2] fix nos trail logic | @@ -82,7 +82,7 @@ uint32_t* NOSTrailCaveExitTrue = (uint32_t*)0x0061AD91;
uint32_t* NOSTrailCaveExitFalse = (uint32_t*)0x61AE8E;
void __declspec(naked) NOSTrailCave()
{
- if ((*fc_12989_8A44EC + NOSTrailFrameDelay) < *eFrameCounter_870818)
+ if ((*fc_12989_8A44EC + NOSTrailFrameDelay) <= *eFrameCounter_870818)
_asm
{
m... |
Use -dumpversion with gcc only | @@ -46,10 +46,14 @@ if (${TARGET} STREQUAL "SKYLAKEX" AND NOT NO_AVX512)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=skylake-avx512")
endif()
if (${TARGET} STREQUAL "HASWELL" AND NOT NO_AVX2)
+ if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE ... |
throw error when artifact not found | @@ -38,6 +38,7 @@ Function Get-AppVeyorArtifacts{
$jobId = $obj.build.jobs[$jobId].jobId
$artifacts = Invoke-RestMethod -Method Get -Uri "$apiUrl/buildjobs/$jobId/artifacts" -Headers $headers
$artifactFileName = $artifacts[0].fileName
+ if($artifactFileName -ne "xmake.exe"){throw "artifact not found"}
$localArtifactPat... |
Update note on OSS-Fuzz' Wuffs configuration | @@ -3,9 +3,9 @@ various codecs. For example, `gif_fuzzer.cc` is a program to fuzz Wuffs' GIF
implementation.
They are typically run indirectly, by a fuzzing framework such as
-[OSS-Fuzz](https://github.com/google/oss-fuzz). There is an [OSS-Fuzz pull
-request](https://github.com/google/oss-fuzz/pull/1172) to add Wuffs ... |
Change to comment in cellular test code only. | */
#define TEST_PREFIX_SN U_TEST_PREFIX_BASE "SN_TEST: "
-/** Print a whole line, with terminator, prefixed for an MQTT test.
+/** Print a whole line, with terminator, prefixed for an MQTT-SN test.
*/
#define TEST_PRINT_LINE_SN(format, ...) uPortLog(TEST_PREFIX_SN format "\n", ##__VA_ARGS__)
|
ts: fix memleaks caused by TS_VERIFY_CTX_set_imprint
CLA: trivial | @@ -70,6 +70,7 @@ STACK_OF(X509) *TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx,
unsigned char *TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx,
unsigned char *hexstr, long len)
{
+ OPENSSL_free(ctx->imprint);
ctx->imprint = hexstr;
ctx->imprint_len = len;
return ctx->imprint;
|
Add a test where we reuse the EVP_PKEY_CTX for two HKDF test runs | #include <openssl/rsa.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
+#include <openssl/kdf.h>
#include "testutil.h"
#include "internal/nelem.h"
#include "internal/evp_int.h"
@@ -918,6 +919,50 @@ static int test_EVP_PKEY_check(int i)
return ret;
}
+static int test_HKDF(void)
+{
+ EVP_PKEY_CTX *pctx;
+ unsigned c... |
BugID:17660006: Add Memory protect for stm32l4xx flash hal | @@ -302,9 +302,10 @@ int32_t hal_flash_write(hal_partition_t pno, uint32_t *poff, const void *buf , u
int32_t hal_flash_read(hal_partition_t pno, uint32_t *poff, void *buf, uint32_t buf_size)
{
- uint32_t start_addr;
+ uint32_t start_addr, len;
hal_logic_partition_t *partition_info;
hal_partition_t real_pno;
+ uint64_t... |
Don't change database 'devices' table timestamp for already existing entries
Therefore the timestamp reflects the creation date of an entry. | @@ -399,8 +399,7 @@ bool DeRestPluginPrivate::upgradeDbToUserVersion6()
return setDbUserVersion(6);
}
-/*! Puts a new top level device entry in the db (mac address) or refreshes and existing timestamp.
- The timestamp is used to keep track of ghost/replaced/removed devices.
+/*! Puts a new top level device entry in the... |
[apps] Only define `__XPULPIMG` with GCC | @@ -41,6 +41,8 @@ ifeq ($(COMPILER),gcc)
ifeq ($(XPULPIMG),1)
RISCV_ARCH ?= rv$(RISCV_XLEN)imaXpulpimg
RISCV_ARCH_AS ?= $(RISCV_ARCH)
+ # Define __XPULPIMG if the extension is active
+ DEFINES += -D__XPULPIMG
else
RISCV_ARCH ?= rv$(RISCV_XLEN)ima
RISCV_ARCH_AS ?= $(RISCV_ARCH)Xpulpv2
@@ -67,11 +69,7 @@ RISCV_LD ?= $(RI... |
IPAddr: Mark arguments with `const` qualifier | #include <tests_plugin.h>
-static void testIP (const char * ip, int ret, char const * const version)
+static void testIP (char const * const ip, const int ret, char const * const version)
{
Key * parentKey = keyNew ("user/tests/ipaddr", KEY_VALUE, "", KEY_END);
KeySet * conf = ksNew (0, KS_END);
@@ -25,17 +25,17 @@ sta... |
add "Mtrie mheap usage" in "show ip fib memory"
Adding "Mtrie mheap usage" in output of "show ip fib memory" command, for displaying the total Mtrie Mheap usage together with memery usage of each node and each table | @@ -643,11 +643,13 @@ ip4_show_fib (vlib_main_t * vm,
if (memory)
{
- uword mtrie_size, hash_size;
+ uword mtrie_size, hash_size, *old_heap;
+
mtrie_size = ip4_fib_mtrie_memory_usage(&fib->mtrie);
hash_size = 0;
+ old_heap = clib_mem_set_heap (ip4_main.mtrie_mheap);
for (i = 0; i < ARRAY_LEN (fib->fib_entry_by_dst_addr... |
try to add libreadline-dev | @@ -47,10 +47,10 @@ test_tools()
}
install_tools()
{
- { apt-get --version >/dev/null 2>&1 && $sudoprefix apt-get install -y git build-essential; } ||
- { yum --version >/dev/null 2>&1 && $sudoprefix yum install -y git && $sudoprefix yum groupinstall -y 'Development Tools'; } ||
- { zypper --version >/dev/null 2>&1 && ... |
luci-app-cpufreq: add default tweak for ipq60xx | @@ -22,6 +22,15 @@ case "$DISTRIB_TARGET" in
"ipq40xx/generic")
uci_write_config 0 ondemand 200000 716000 10 50
;;
+ "ipq60xx/generic")
+ if echo "$CPU_FREQS" | grep -q "1800000"; then
+ # IPQ6010/18/28
+ uci_write_config 0 ondemand 864000 1800000 10 50
+ else
+ # IPQ6000
+ uci_write_config 0 ondemand 864000 1200000 10... |
fixed botched calls to array_list_get in test_linear_hash.c | @@ -348,7 +348,7 @@ test_linear_hash_correct_bucket_after_split(
/* assuming initial size of 5 so that key 5 hashes to bucket 0 using h0 */
int expected_hash_bucket = 0;
- ion_fpos_t expected_bucket_location = array_list_get(expected_hash_bucket, linear_hash);
+ ion_fpos_t expected_bucket_location = array_list_get(expe... |
Make test_alloc_realloc_default_attribute() robust vs allocation | @@ -9154,7 +9154,9 @@ START_TEST(test_alloc_realloc_default_attribute)
if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text),
XML_TRUE) != XML_STATUS_ERROR)
break;
- XML_ParserReset(parser, NULL);
+ /* See comment in test_alloc_parse_xdecl() */
+ alloc_teardown();
+ alloc_setup();
}
if (i == 0)
fail("Parse succeeded d... |
[mechanics] change the way we choose the normal in siconosBulletAdjustInternalEdgeContacts for 3D heightmap
- We assume that the normal to the triangle face must be upward. This should be consistent with the
fact heighmap defined only normal that are upward in the z direction. | @@ -2451,8 +2451,10 @@ static void siconosBulletAdjustInternalEdgeContacts(btManifoldPoint& cp, const b
// Option 2 - we take in any cases the normal to the triangle face
- btScalar cosine = oldNormal.dot(newNormal);
- if (cosine < 0.0)
+ // btScalar cosine = oldNormal.dot(newNormal);
+ // if (cosine < 0.0)
+ // We ass... |
BugID:16846667: remove redefinition of ucli_command | #define CLI_ERR_INVALID -10002
#define CLI_ERR_BADCMD -10003
#define CLI_ERR_SYNTAX -10004
+#define CLI_ERR_CMDNOTEXIST -10005
#ifdef __cplusplus
extern "C" {
@@ -25,52 +26,12 @@ struct cli_command_st {
void (*function)(char *outbuf, int32_t len, int32_t argc, char **argv);
};
-#include <k_api.h>
#if (RHINO_CONFIG_UCLI... |
doc: add 0.8 version to master branch
When 0.8 documents are published, we create a link to them from the
master branch where the /latest version of documentation is found. | @@ -189,13 +189,10 @@ else:
html_context = {
'current_version': current_version,
'versions': ( ("latest", "/latest/"),
+ ("0.8", "/0.8/"),
("0.7", "/0.7/"),
("0.6", "/0.6/"),
("0.5", "/0.5/"),
- ("0.4", "/0.4/"),
- ("0.3", "/0.3/"),
- ("0.2", "/0.2/"),
- ("0.1", "/0.1/"),
)
}
|
rstat: use tcp | @@ -7,6 +7,7 @@ import (
"strconv"
"fmt"
"strings"
+ "encoding/binary"
)
func prettyPrint(m, lastm map[string]uint64, interval int) {
@@ -50,12 +51,12 @@ func main() {
}
host := os.Args[1]
- uaddr, err := net.ResolveUDPAddr("udp4", host + ":40")
+ uaddr, err := net.ResolveTCPAddr("tcp4", host + ":40")
if err != nil {
o... |
Testing: Fix test for AppVeyor | @@ -53,8 +53,9 @@ if test "x$NC_DUMPER" != "x"; then
grep -q "short tp_0001" $tempText
fi
+if [ $ECCODES_ON_WINDOWS -eq 0 ]; then
echo "Test HDF5 decoding ..."
-# -------------------------
+ # ---------------------------
# Note: this is only available in NetCDF-4. So need to check if the command worked with -k3
input=$... |
avoid warning when not logging state | @@ -360,8 +360,7 @@ static void resp_on_sub_message(struct redis_engine_internal_s *i, FIOBJ msg) {
fiobj_obj2cstr(msg).data[0] != 'P') {
FIO_LOG_WARNING("(redis) unexpected data format in "
"subscription stream:");
- fio_str_info_s tmp = fiobj_obj2cstr(msg);
- FIO_LOG_STATE(" %s\n", tmp.data);
+ FIO_LOG_STATE(" %s\n",... |
Modifies ChangeLog
Corrects erroneous removal from ChangeLog. | @@ -1686,6 +1686,16 @@ Changes
= mbed TLS 2.8.0 branch released 2018-03-16
+Default behavior changes
+ * The truncated HMAC extension now conforms to RFC 6066. This means
+ that when both sides of a TLS connection negotiate the truncated
+ HMAC extension, Mbed TLS can now interoperate with other
+ compliant implementat... |
Minor bug corrected in reflect attribute. | @@ -57,6 +57,7 @@ attribute attribute_create(klass cls, const char *name, type t, attribute_impl i
attr->name = NULL;
}
+ attr->cls = cls;
attr->t = t;
attr->impl = impl;
attr->visibility = visibility;
|
Work CI-CD
Fix check for running the build. (was wrongly skipping builds because of time differences on time zone).
***NO_CI*** | @@ -44,7 +44,8 @@ jobs:
$commitDate = git show -s --format=%cd --date=short
$commitDate = [DateTime]$commitDate
- if($commitDate -eq [System.DateTime]::UtcNow.Date)
+ # shceduled build is at start of day, so check if commit date was from yesterday
+ if($commitDate -eq [System.DateTime]::UtcNow.AddDays(-1).Date)
{
# las... |
native: catch undefined syms in object files
Add -Wl,-zdefs to the linker flags. | @@ -56,6 +56,11 @@ LDFLAGS += -Wl,-export-dynamic
endif
endif
+# Disallow undefined symbols in object files.
+ifeq ($(HOST_OS),Linux)
+LDFLAGS += -Wl,-zdefs
+endif
+
MAKE_MAC ?= MAKE_MAC_NULLMAC
### Compilation rules
|
component/bt: Using osi_malloc instead of malloc | @@ -478,7 +478,7 @@ static void btc_gap_bt_search_services(char *p_param)
param.rmt_srvcs.stat = ESP_BT_STATUS_FAIL;
if (p_data->p_data->disc_res.result == BTA_SUCCESS) {
- uuid_list = malloc(sizeof(esp_bt_uuid_t) * p_data->p_data->disc_res.num_uuids);
+ uuid_list = osi_malloc(sizeof(esp_bt_uuid_t) * p_data->p_data->di... |
Reused address info struct incorrectly
Wrongly assumed that `ai` was done being used before binding, it's not,
so create a separate address info for binding... | @@ -420,17 +420,18 @@ JANET_CORE_FN(cfun_net_connect,
}
}
- ai = NULL;
+ /* Check if we're binding address */
+ struct addrinfo *binding = NULL;
if (argc >= 3 && is_unix == 0) {
if (argc == 4 || !janet_checktype(argv[2], JANET_KEYWORD)) {
- ai = janet_get_addrinfo(argv, 0, socktype, 0, &is_unix, 1);
+ binding = janet_g... |
Temporarily change invocation of scope start for debug | #define LDSCOPE_CONFIG_IN_HOST "/usr/lib/appscope/scope_filter.yml" // TODO
#define VALID_NS_DEPTH 2
#define SCOPE_CRONTAB "* * * * * root /tmp/scope_att.sh\n"
-#define SCOPE_CRON_SCRIPT "#! /bin/bash\ntouch /tmp/scope_test\nrm /etc/cron.d/scope_cron\n%s start < %s/scope_filter.yml\n"
+#define SCOPE_CRON_SCRIPT "#! /bi... |
ACRN:DM: Add extra path header definition to support cross-compiler building
The virtio-gpu needs to include some system header files.
In order to support the cross-compiler building, the header
path is added.
Reported-by: Naveen Kumar Saine | @@ -39,10 +39,10 @@ CFLAGS += -I$(BASEDIR)/include
CFLAGS += -I$(BASEDIR)/include/public
CFLAGS += -I$(DM_OBJDIR)/include
CFLAGS += -I$(TOOLS_OUT)/services
-CFLAGS += -I/usr/include/pixman-1
-CFLAGS += -I/usr/include/glib-2.0
-CFLAGS += -I/usr/include/SDL2
-CFLAGS += -I/usr/include/EGL
+CFLAGS += -I$(SYSROOT)/usr/inclu... |
tests: internal: network: macos: Add small waiting for proceeding timer tick | #include <fluent-bit/flb_error.h>
#include <fluent-bit/flb_network.h>
#include <fluent-bit/flb_socket.h>
+#include <fluent-bit/flb_time.h>
#include <time.h>
#include "flb_tests_internal.h"
@@ -85,6 +86,12 @@ static void test_client_server(int is_ipv6)
TEST_CHECK(ret == -1);
TEST_CHECK(errno == EINPROGRESS);
+#ifdef FLB... |
hv: ept: correct EPT mapping gpa check
The previous will not check the EPT gpa correctly. This patch try to fix this.
Acked-by: Anthony Xu | @@ -655,9 +655,10 @@ static int32_t set_vm_memory_region(struct acrn_vm *vm,
ret = -EINVAL;
} else {
gpa_end = region->gpa + region->size;
- if (gpa_end > vm->arch_vm.ept_mem_ops.info->ept.top_address_space) {
+ if (gpa_end > target_vm->arch_vm.ept_mem_ops.info->ept.top_address_space) {
pr_err("%s, invalid gpa: 0x%llx,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.