message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Applied namespace renaming and formatting to Ruby. | %module tinysplineruby
-// std::vector<ts::rational> to ruby array
-%typemap(out) std::vector<ts::rational> * {
+// Map std::vector<tinyspline::rational> to Ruby array.
+%typemap(out) std::vector<tinyspline::rational> * {
const size_t size = $1->size();
$result = rb_ary_new2(size);
for (int i = 0; i < size; i++) {
}
}
... |
add depends to avoid file not found | @@ -50,18 +50,18 @@ if(GEN_FILES)
${CMAKE_CURRENT_SOURCE_DIR}/../include/psa/crypto_values.h
${CMAKE_CURRENT_SOURCE_DIR}/../include/psa/crypto_extra.h
)
+
+else()
+ foreach(file ${base_generated_data_files})
+ link_to_source(${file})
+ endforeach()
+endif()
# CMake generate sub-makefile for each target and call it in s... |
hexnumber: remove elektraArrayGetStrings from kdbease.h | @@ -20,7 +20,6 @@ const char * elektraKeyGetRelativeName (Key const * cur, Key const * parentKey);
KeySet * elektraArrayGet (const Key * arrayParent, KeySet * keys);
Key * elektraArrayGetNextKey (KeySet * arrayKeys);
-ssize_t elektraArrayGetStrings (const Key * arrayParent, KeySet * keys, char *** strings);
keyswitch_t... |
Fix mac build for http aggregation changes. | @@ -26,7 +26,7 @@ $(PCRE2_AR):
cd contrib/pcre2/build && cmake ..
cd contrib/pcre2/build && make
-libscope.so: src/wrap.c src/state.c src/httpstate.c src/report.c src/plattime.c src/fn.c os/$(OS)/os.c src/cfgutils.c src/cfg.c src/transport.c src/log.c src/mtc.c src/circbuf.c src/linklist.c src/evtformat.c src/ctl.c src... |
release: add option to not publish source package | @@ -47,6 +47,11 @@ properties([
description: 'True if the statistics and hashsums should be automatically inserted into release notes and moved to final name.',
name: 'populate_release_notes'
),
+ booleanParam(
+ defaultValue: true,
+ description: 'True if the source package should be published. Disable when rebuilding... |
docs: update centos repos for 8.2; use latex logical for xcat | -In addition to the \OHPC{} package repository, the {\em master} host also
-requires access to the standard base OS distro repositories in order to resolve
-necessary dependencies. For \baseOS{}, the requirements are to have access to
-the BaseOS, Appstream, Extras, PowerTools, and EPEL repositories for which mirrors a... |
update MLNDevTool to '0.1.3' | Pod::Spec.new do |s|
s.name = 'MLNDevTool'
- s.version = '0.1.1'
+ s.version = '0.1.3'
s.summary = 'Debug Tool of MLN.'
# This description is used to generate tags and improve search results.
|
* Removed unused var | @@ -750,7 +750,6 @@ static bool _jql_match_regexp(
JQVAL *left, JQP_OP *jqop, JQVAL *right,
iwrc *rcp
) {
- size_t rci;
struct iwre *rx;
char nbuf[JBNUMBUF_SIZE];
static_assert(JBNUMBUF_SIZE >= IWFTOA_BUFSIZE, "JBNUMBUF_SIZE >= IWFTOA_BUFSIZE");
|
Add new fields for ODO to INS status | @@ -145,8 +145,30 @@ definitions:
type: u32
desc: Status flags
fields:
- - 8-31:
+ - 29-31:
+ desc: INS Type
+ values:
+ - 0: Smoothpose Loosely Coupled
+ - 1: Other Loosely Coupled
+ - 2: Reserved
+ - 3: Reserved
+ - 4: Reserved
+ - 5: Reserved
+ - 6: Reserved
+ - 7: Reserved
+ - 11-28:
desc: Reserved
+ - 10:
+ desc: ... |
Add default values for trigger position/dimensions | @@ -63,10 +63,10 @@ function mapStateToProps(state, props) {
sceneId === props.sceneId &&
entityId === props.id;
return {
- x,
- y,
- width,
- height,
+ x: x || 0,
+ y: y || 0,
+ width: width || 1,
+ height: height || 1,
selected
};
}
|
Fix function pointer formatting. | @@ -267,6 +267,7 @@ const fallbackfmt = {sb, params, tyenc, ap : valist# -> void
var l_val : int64, ul_val : uint64
var z_val : size
var p_val : byte#
+ var f_val : intptr[2]
var c_val : char
var s_val : byte[:]
var f32_val : flt32, f64_val : flt64
@@ -354,13 +355,16 @@ const fallbackfmt = {sb, params, tyenc, ap : vali... |
libcupsfilters(): In mupdftoraster() do not copy data structure
Copying the filter data structure is no needed here. | @@ -409,7 +409,6 @@ mupdftoraster (int inputfd, /* I - File descriptor input stream */
ppd_file_t *ppd = NULL;
struct sigaction sa;
cm_calibration_t cm_calibrate;
- filter_data_t curr_data;
filter_logfunc_t log = data->logfunc;
void *ld = data->logdata;
filter_iscanceledfunc_t iscanceled = data->iscanceledfunc;
@@ -475... |
Properly decrypt VN data. | @@ -828,6 +828,8 @@ int picoquic_parse_header_and_decrypt(
}
}
else {
+ /* Clear text packet. Copy content to decrypted data */
+ memmove(decrypted_data->data, bytes, length);
*consumed = length;
}
}
|
esp32s3-devkit: Initialize EFUSE driver | #include <nuttx/video/fb.h>
#endif
+#ifdef CONFIG_ESP32S3_EFUSE
+# include "esp32s3_efuse.h"
+#endif
+
#include "esp32s3-devkit.h"
/****************************************************************************
@@ -86,6 +90,14 @@ int esp32s3_bringup(void)
{
int ret;
+#if defined(CONFIG_ESP32S3_EFUSE)
+ ret = esp32s3_efus... |
dumpconfig command line option | @@ -24,6 +24,7 @@ namespace MiningForce
private static AutofacServiceProvider serviceProvider;
private static ILogger logger;
private static readonly List<StratumServer> servers = new List<StratumServer>();
+ private static CommandOption dumpConfigOption;
static void Main(string[] args)
{
@@ -34,11 +35,22 @@ namespace ... |
py/bc: Remove comments referring to obsolete currently_in_except_block.
It was made obsolete in | @@ -77,10 +77,10 @@ typedef struct _mp_bytecode_prelude_t {
// Exception stack entry
typedef struct _mp_exc_stack_t {
const byte *handler;
- // bit 0 is saved currently_in_except_block value
+ // bit 0 is currently unused
// bit 1 is whether the opcode was SETUP_WITH or SETUP_FINALLY
mp_obj_t *val_sp;
- // Saved except... |
[util/generic] Dropping Split(s, vector). | @@ -461,11 +461,6 @@ struct TSimplePusher {
T* C;
};
-template <class T>
-static inline void Split(char* buf, T* res) {
- Split(buf, '\t', res);
-}
-
template <class T>
static inline void Split(char* buf, char ch, T* res) {
res->resize(0);
|
packetforge: fix order of dst/src address of mac
In the defination of mac node, the order of dst and src address is
reversed. Swap their order in this patch.
Type: fix | "name" : "mac",
"layout" : [
{
- "name" : "src",
+ "name" : "dst",
"size" : "48",
"format" : "mac",
"default" : "00:00:00:00:00:01"
},
{
- "name" : "dst",
+ "name" : "src",
"size" : "48",
"format" : "mac",
"default" : "00:00:00:00:00:02"
|
Remove extra line break from PhGetMappedImagePogoEntry | @@ -3241,15 +3241,17 @@ BOOLEAN PhGetMappedImagePogoEntryByName(
{
ULONG debugEntryLength;
PIMAGE_DEBUG_POGO_SIGNATURE debugEntry;
+ PIMAGE_DEBUG_POGO_ENTRY debugPogoEntry;
- if (NT_SUCCESS(PhGetMappedImageDebugEntryByType(
+ if (!NT_SUCCESS(PhGetMappedImageDebugEntryByType(
MappedImage,
IMAGE_DEBUG_TYPE_POGO,
&debugEn... |
usbd: supress "statement is unreachable" warning on ARMCC | #define CFG_TUD_TASK_QUEUE_SZ 16
#endif
+#ifdef __ARMCC_VERSION
+// Supress "statement is unreachable" warning
+#pragma diag_suppress 111
+#endif
+
//--------------------------------------------------------------------+
// Device Data
//--------------------------------------------------------------------+
|
Update the GP7 PR pipeline for image resource
Authored-by: Ning Wu | @@ -27,12 +27,18 @@ resources:
- name: gpdb7-rhel8-build
type: registry-image
source:
- repository: gcr.io/data-gpdb-public-images/gpdb7-rhel8-build
+ repository: gcr.io/data-gpdb-private-images/gpdb7-rhel8-build
+ tag: latest
+ username: _json_key
+ password: ((data-gpdb-private-images-container-registry-readonly-serv... |
helps to have it build the docs | @@ -36,7 +36,7 @@ script:
- make coverage
after_success:
- - if [ "$TRAVIS_BRANCH" = "master" ]; then source .ci/build-docs.sh; fi
+ #- if [ "$TRAVIS_BRANCH" = "master" ]; then source .ci/build-docs.sh; fi
- if [ "$TRAVIS_BRANCH" = "master" ]; then bash <(curl -s https://codecov.io/bash); fi
- # source .ci/build-docs.s... |
resolved nit comments | @@ -16,7 +16,7 @@ LOGMANAGER_INSTANCE
@implementation ODWLogManager
-static BOOL initialized = false;
+static BOOL _initialized = false;
+(nullable ODWLogger *)loggerWithTenant:(nonnull NSString *)tenantToken
{
@@ -27,7 +27,7 @@ static BOOL initialized = false;
source:(nonnull NSString *)source
{
// If log manager is n... |
options/posix: Fix readdir_r | @@ -77,9 +77,11 @@ int readdir_r(DIR *dir, struct dirent *entry, struct dirent **result) {
if(int e = mlibc::sys_read_entries(dir->__handle, dir->__ent_buffer, 2048, &dir->__ent_limit); e)
__ensure(!"mlibc::sys_read_entries() failed");
dir->__ent_next = 0;
- if(!dir->__ent_limit)
+ if(!dir->__ent_limit) {
+ *result = N... |
test/evp_extra_test.c: Add EVP_PKEY comparisons in test_EC_priv_pub() | @@ -980,6 +980,20 @@ static int test_EC_priv_pub(void)
if (!test_selection(params_and_keypair, EVP_PKEY_KEYPAIR))
goto err;
+ /* Try key equality */
+ if (!TEST_int_gt(EVP_PKEY_parameters_eq(just_params, just_params), 0)
+ || !TEST_int_gt(EVP_PKEY_parameters_eq(just_params, params_and_pub),
+ 0)
+ || !TEST_int_gt(EVP_P... |
fix issue by elric: SubstGlobalRet -> SubstGlobalCopy | @@ -36,7 +36,7 @@ size_t SubstGlobal(TUtf32String& text, wchar32 what, wchar32 with, size_t from =
// TODO(yazevnul):
// - rename `SubstGlobal` to `ReplaceAll` for convenience
-// - add `SubstGlobalRet(TStringBuf)` for convenience
+// - add `SubstGlobalCopy(TStringBuf)` for convenience
// - add `RemoveAll(text, what, f... |
Remove "pc.linux" from cmake metadata | @@ -12,6 +12,9 @@ foreach(vendor IN LISTS vendors)
file(APPEND "${cmake_supported_boards_file}" " boards:\n")
afr_get_vendor_boards("${vendor}" boards)
foreach(board IN LISTS boards)
+ if("${board}" STREQUAL "linux")
+ continue()
+ endif()
file(APPEND "${cmake_supported_boards_file}" " - boardName: ${board}\n")
include... |
Make hdf5 depend on mpich if building parallel hdf5 and mpich | @@ -36,6 +36,9 @@ function bv_hdf5_depends_on
if [[ "$DO_ZLIB" == "yes" ]] ; then
depends_on="$depends_on zlib"
fi
+ if [[ -n "$PAR_COMPILER" && "$DO_MOAB" == "yes" && "$DO_MPICH" == "yes" ]]; then
+ depends_on="$depends_on mpich"
+ fi
echo $depends_on
fi
|
dotprod[sse4]: adding copy() method for rrrf type (not tested) | /*
- * Copyright (c) 2007 - 2021 Joseph Gaeddert
+ * Copyright (c) 2007 - 2022 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -130,6 +130,24 @@ dotprod_rrrf dotprod_rrrf_recreate(dotprod_... |
feat(fabric test):
add fabric nodes discover test case "Discover_Fail_nodesCfg_nodeUrl_ERR" | @@ -257,6 +257,33 @@ START_TEST(test_003NodesDiscover_0004Discover_Fail_nodesCfg_tlsCert_ERR)
}
END_TEST
+START_TEST(test_003NodesDiscover_0005Discover_Fail_nodesCfg_nodeUrl_ERR)
+{
+ BSINT32 rtnVal;
+ BoatHlfabricTx tx_ptr;
+ BoatHlfabricWallet *g_fabric_wallet_ptr = NULL;
+ BoatHlfabricWalletConfig wallet_config = ge... |
docs: fix flash_encryption key generation command | @@ -196,7 +196,7 @@ Flash encryption keys are 32 bytes of random data. You can generate a random key
Alternatively, if you're using :doc:`secure boot <secure-boot>` and have a secure boot signing key then you can generate a deterministic SHA-256 digest of the secure boot private signing key and use this as the flash en... |
docs: update a link | @@ -218,7 +218,7 @@ The SDK provides the following tools to generate the corresponding C interface c
|\<SDKRoot\>/tools/platoneSolidity2c.py |Generate C calling code according to PlatONE (Solidity) ABI |
|\<SDKRoot\>/tools/platoneWASM2c.py |Generate C calling code according to PlatONE (WASM) ABI |
-Contract programming... |
OcAppleBootPolicyLib: Make logging more obvious | @@ -350,8 +350,8 @@ InternalGetBooterFromPredefinedNameList (
if (!EFI_ERROR (Status)) {
DEBUG ((
DEBUG_BULK_INFO,
- "OCBP: Predefined [%s] %s was found\n",
- Prefix != NULL ? Prefix : L"",
+ "OCBP: Predefined %s %s was found\n",
+ Prefix != NULL ? Prefix : L"<nil>",
PathName
));
if (DevicePath != NULL) {
@@ -377,8 +37... |
doc: add dllexport attribute to custom main.
The attribute is necessary for BoxFort to work on Windows.
Fixes | @@ -61,7 +61,21 @@ Example main
#include <criterion/criterion.h>
- int main(int argc, char *argv[]) {
+ /* This is necessary on windows, as BoxFort needs the main to be exported
+ in order to find it. */
+ #if defined (_WIN32) || defined (__CYGWIN__)
+ # if defined (_MSC_VER)
+ # define DLLEXPORT __declspec(dllexport)
... |
Enable Python coding style tests
Change travis.yml to install dependencies to support python coding style
tests.
Include test-codingstyle-py.sh in the build steps. | language: c
compiler: gcc
+install:
+ - pip install --user pylint
+ - pip install --user pycodestyle
+
script:
- - scripts/test-build.sh
- scripts/test-codingstyle.sh
+ - scripts/test-codingstyle-py.sh
+ - scripts/test-build.sh
addons:
apt:
packages:
- libboost-all-dev
- libjson-c-dev
- uuid-dev
-
|
Avoid branch for adjjustibg prefetch pointer | @@ -316,13 +316,7 @@ if (libxsmm_target_archid == LIBXSMM_X86_AVX512_MIC ||
ifm1 = imgifm1%handle->blocksifm;
input_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(5, input_nopad, img, ifm1, 0, 0, 0, handle->blocksifm, handle->ifhp, handle->ifwp, handle->ifmblock);
copy_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(5, ... |
NSLocale's localeIdentifier does not return a locale tag, nor does it provide a helper for that. | @@ -41,7 +41,8 @@ LOGMANAGER_INSTANCE
// Obtain semantics values
NSBundle* bundle = [NSBundle mainBundle];
- std::string strUserLocale = std::string([[[NSLocale currentLocale] localeIdentifier] UTF8String]);
+ std::string strUserLocale = std::string([[NSString stringWithFormat:@"%@-%@", [[NSLocale currentLocale] langua... |
tests/motors: Fix test runner for pybricksdev updates.
This was broken by | @@ -11,7 +11,9 @@ import os
import pathlib
import shutil
-from pybricksdev.connections import PybricksHub, REPLHub
+from pybricksdev.connections.pybricks import PybricksHub
+from pybricksdev.connections.lego import REPLHub
+
from pybricksdev.ble import find_device
|
misc: update config script in IKEv2 test
Type: fix | @@ -32,7 +32,7 @@ ikev2 profile set pr1 tunnel ipip0
ip route add table 1 192.168.5.0/24 via ipip0
set interface unnumbered ipip0 use pipe0.1
-nat44 enable sessions 10
+nat44 plugin enable
nat44 add address 192.168.10.2
set interface nat44 in pipe0.0 out host-vpp
nat44 add static mapping udp local 10.0.0.2 500 external... |
Implement preliminary titan entry point | @@ -212,7 +212,7 @@ generate_program = function(prog, modname)
RET = ret_ctype,
NAME = titan_entry_point_name,
ARGS = table.concat(args, ", "),
- BODY = [[/*TODO*/ return 42;]]
+ BODY = generate_stat(tl_node.block)
})
)
@@ -355,6 +355,53 @@ generate_program = function(prog, modname)
return pretty.reindent_c(code)
end
+... |
Made manual driver registration only ever happen once | @@ -86,7 +86,8 @@ void survive_verify_FLT_size(uint32_t user_size) {
if (sizeof(FLT) != user_size) {
fprintf(stderr, "FLT type incompatible; the shared library libsurvive has FLT size %lu vs user program %u\n",
(unsigned long)sizeof(FLT), user_size);
- fprintf(stderr, "Add '#define FLT %s' before including survive.h or... |
cdp: disable failing tests for python3
scapy in python3 does not seem to allow creating invalid protocol
packets. Suggest the maintainer rewrite the invalid tests so they
also work for python3. In the mean time they are disabled.
Type: fix | @@ -13,6 +13,8 @@ from re import compile
from time import sleep
from util import ppp
import platform
+import sys
+import unittest
""" TestCDP is a subclass of VPPTestCase classes.
@@ -96,9 +98,13 @@ class TestCDP(VppTestCase):
self.assert_equal(system[:length], self.device_id[:length],
"CDP received invalid device id")... |
Detect boards automatically in the build-all script | # To invoke the building for a specific platform, run:
# $ PLATFORMS=zoul ./build.sh
#
+CONTIKI_NG_TOP_DIR="../.."
+EXAMPLES_DIR=$CONTIKI_NG_TOP_DIR/examples
if [[ "$PLATFORMS" == "" ]]
then
- PLATFORMS=`ls ../../arch/platform`
+ PLATFORMS=`ls $CONTIKI_NG_TOP_DIR/arch/platform`
fi
if [[ "$MAKEFILES" == "" ]]
then
- MAK... |
Handle ctrl-c interruption | @@ -24,6 +24,15 @@ ALL_COLOUR_NAMES=(action bytes control core default error expected extern field
# --------------------------------------------------------------------
# Helpers
+function ctrl_c_handler() {
+ (>&2 echo -e "\nInterrupted, exiting...")
+ ERROR_CODE=254
+ exit_program
+}
+
+trap 'ctrl_c_handler' INT
+
+... |
Add message about alternative functions. | @@ -34,7 +34,7 @@ void esp_vfs_dev_uart_register(void);
*
* @param mode line endings expected on UART
*/
-void esp_vfs_dev_uart_set_rx_line_endings(esp_line_endings_t mode) __attribute__((deprecated));
+void esp_vfs_dev_uart_set_rx_line_endings(esp_line_endings_t mode) __attribute__((deprecated("Please use esp_vfs_dev_... |
sysdeps/managarm: Add more error returns to sys_openat to account for the PathResolver refactor | @@ -3167,6 +3167,11 @@ int sys_openat(int dirfd, const char *path, int flags, int *fd) {
return ENOENT;
}else if(resp.error() == managarm::posix::Errors::ALREADY_EXISTS) {
return EEXIST;
+ }else if(resp.error() == managarm::posix::Errors::NOT_A_DIRECTORY) {
+ return ENOTDIR;
+ }else if(resp.error() == managarm::posix::... |
Lexer: Add `\/` escape character.
This expands to the path separator of the current platform. | @@ -497,6 +497,8 @@ static char scan_escape(lily_lex_state *lexer, char **source_ch)
ret = '\b';
else if (*ch == 'a')
ret = '\a';
+ else if (*ch == '/')
+ ret = LILY_PATH_CHAR;
else if (*ch >= '0' && *ch <= '9') {
/* It's a numeric escape. Keep swallowing up numeric values until either
3 are caught in total OR there is... |
Fix CI_GROUP for PY3 programs and tests | @@ -3250,7 +3250,7 @@ module CI_GROUP: _BARE_UNIT {
.RESTRICTED=SRCS
.USE_PEERS_LATE_OUTS=yes
MODULE_SUFFIX=.ci.pkg.fake
- PEERDIR_TAGS=CPP_PROTO PY3 PY3_NATIVE YQL_UDF_SHARED __EMPTY__ DOCSBOOK JAR_RUNNABLE DLL
+ PEERDIR_TAGS=CPP_PROTO PY3 PY3_NATIVE PY3_BIN PY3TEST_PROGRAM YQL_UDF_SHARED __EMPTY__ DOCSBOOK JAR_RUNNAB... |
android_ip:add parentheses around !expr and casts
Tested-by: IoTivity Jenkins | @@ -341,7 +341,8 @@ configure_mcast_socket(int mcast_sock, int sa_family)
}
for (interface = ifs; interface != NULL; interface = interface->ifa_next) {
/* Ignore interfaces that are down and the loopback interface */
- if (!interface->ifa_flags & IFF_UP || interface->ifa_flags & IFF_LOOPBACK) {
+ if (!(interface->ifa_f... |
test_sd: merge emmc SDR/DDR test cases of 4-bit mode | @@ -133,20 +133,19 @@ TEST_CASE("probe SD, slot 1, 1-bit", "[sd][test_env=UT_T1_SDMODE]")
}
#ifdef WITH_EMMC_TEST
-TEST_CASE("probe eMMC, slot 0, 4-bit, DDR", "[sd][test_env=EMMC]")
-{
- probe_sd(SDMMC_HOST_SLOT_0, 4, SDMMC_FREQ_HIGHSPEED, 1);
-}
-
TEST_CASE("probe eMMC, slot 0, 4-bit", "[sd][test_env=EMMC]")
{
+ //Tes... |
Get rid of NUL character in PS1
The first grep in the original script will return "binary file matches" if there are NUL characters in PS1, e.g, emojis.
The added line gets rid of NUL characters. | tmpfile=$(mktemp /tmp/st-cmd-output.XXXXXX)
trap 'rm "$tmpfile"' 0 1 15
sed -n "w $tmpfile"
+sed -i 's/\x0//g' "$tmpfile"
ps1="$(grep "\S" "$tmpfile" | tail -n 1 | sed 's/^\s*//' | cut -d' ' -f1)"
chosen="$(grep -F "$ps1" "$tmpfile" | sed '$ d' | tac | dmenu -p "Copy which command's output?" -i -l 10 | sed 's/[^^]/[&]/... |
Bug in WS protocol fixed | @@ -202,7 +202,8 @@ int ws_attach_server_mem(int s, int flags, char *resource, size_t resourcelen,
while(1) {
char name[256];
char value[256];
- rc = http_recvfield(s, name, sizeof(name), value, sizeof(value), -1);
+ rc = http_recvfield(s, name, sizeof(name), value, sizeof(value),
+ deadline);
if(rc < 0 && errno == EPI... |
docs/library/machine.UART: Remove conditional docs for wipy port.
The UART.init() method is now included unconditionally and its wording
adjusted to better describe ports other than the cc3200.
UART.irq() is also included unconditionally, but this is currently only
available on the WiPy target. | @@ -43,21 +43,27 @@ Constructors
Methods
-------
-.. only:: port_wipy
-
- .. method:: UART.init(baudrate=9600, bits=8, parity=None, stop=1, \*, pins=(TX, RX, RTS, CTS))
+.. method:: UART.init(baudrate=9600, bits=8, parity=None, stop=1, \*, ...)
Initialise the UART bus with the given parameters:
- - ``baudrate`` is the ... |
fix(draw_label): radius Mask doesn't work in Specific condition | @@ -549,7 +549,10 @@ LV_ATTRIBUTE_FAST_MEM static void draw_letter_normal(lv_coord_t pos_x, lv_coord_
fill_area.y1 = row_start + pos_y;
fill_area.y2 = fill_area.y1;
#if LV_DRAW_COMPLEX
- bool mask_any = lv_draw_mask_is_any(&fill_area);
+ lv_area_t mask_area;
+ lv_area_copy(&mask_area, &fill_area);
+ mask_area.y2 = mask... |
adding motivational usescases fo Skate | @@ -130,6 +130,41 @@ generation of Schema documentation.
The source code for Skate can be found in \texttt{SOURCE/tools/skate}.
+\section{Use cases}
+
+We envision the following non exhausting list of possible use cases for Skate:
+
+\begin{itemize}
+ \item A programmer is writing PCI discovery code or a device driver.... |
mmapstorage: kdb default storage revert | /** To be used if you want the currently
* build-in default storage, whatever it is. */
-#define KDB_STORAGE "mmapstorage"
+#define KDB_STORAGE "storage"
/** To be used if you want the currently
* build-in default resolver, whatever it is. */
|
Utilities: Do not pass empty request headers in macrecovery
closes acidanthera/bugtracker#1371 | @@ -79,7 +79,7 @@ def mlb_from_eeee(eeee):
return '00000000000' + eeee + '00'
-def get_session():
+def get_session(args):
headers = {
'Host' : 'osrecovery.apple.com',
'Connection': 'close',
@@ -88,6 +88,11 @@ def get_session():
headers, output = run_query('http://osrecovery.apple.com/', headers)
+ if args.verbose:
+ pr... |
Remove unused appendFact code path | @@ -66,12 +66,6 @@ func (z *facts) appendFact(fact *a.Expr) {
}
switch fact.Operator() {
- case 0:
- for _, x := range *z {
- if op, other := otherHandSide(x, fact); op == t.IDXBinaryEqEq {
- z.appendFact(other)
- }
- }
case t.IDXBinaryAnd:
z.appendFact(fact.LHS().AsExpr())
z.appendFact(fact.RHS().AsExpr())
|
Add the correct return code for when there are no goals to be deleted | @@ -2220,6 +2220,7 @@ DeleteRegionsGoalConfigs(
} else {
pRelatedDimms[Index]->PcdSynced = TRUE;
SetObjStatusForDimm(pCommandStatus, pRelatedDimms[Index], NVM_ERR_REGION_GOAL_NO_EXISTS_ON_DIMM);
+ Rc = EFI_INVALID_PARAMETER;
}
}
|
Always create array types | @@ -1181,19 +1181,7 @@ heap_create_with_catalog(const char *relname,
* during initdb). We do not create them where the use of a relation as
* such is an implementation detail: toast tables, sequences and indexes.
*/
-
- /*
- * PipelineDB note: this predicate previously would return false if
- * IsUnderPostmaster was fa... |
Add test for EVP_PKEY_sign_init_ex with RSA PSS padding | #include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/provider.h>
-#ifndef OPENSSL_NO_DEPRECATED_3_0
#include <openssl/rsa.h>
-#endif
#include <openssl/core_names.h>
#include "testutil.h"
#include "internal/nelem.h"
@@ -818,6 +816,43 @@ static int test_pkey_export(void)
return ret;
}
+static int test_rsa_... |
plugins: dpdk: ipsec: fix l3 offset
Changes the source of the l3 offset to a more
proper one, same as | @@ -476,8 +476,7 @@ dpdk_esp_decrypt_post_node_fn (vlib_main_t * vm,
esp_replay_advance(sa0, seq);
}
- /* FIXME ip header */
- ih4 = (ip4_header_t *) (b0->data + sizeof(ethernet_header_t));
+ ih4 = (ip4_header_t *) (b0->data + vnet_buffer(b0)->l3_hdr_offset);
vlib_buffer_advance (b0, sizeof (esp_header_t) + iv_size);
b... |
[kernel] fix asserts in Topology::removeDynamicalSystem() | @@ -338,8 +338,9 @@ void Topology::removeDynamicalSystem(SP::DynamicalSystem ds,
{
DEBUG_PRINTF("removeDynamicalSystem : %p\n", &*ds);
+ assert(_DSG[0]->edges_number() == _IG[0]->size());
__removeDynamicalSystemFromIndexSet(ds, removeInteractions);
- assert(_DSG[0]->size() == _IG[0]->edges_number());
+ assert(_DSG[0]->... |
fixed usb transfer method. | @@ -238,14 +238,14 @@ void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum)
* @param hpcd: PCD handle
* @retval None
*/
-extern void CDC_Itf_TxISR(void);
+extern void CDC_Itf_SofISR(void);
void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd)
{
USBD_LL_SOF(hpcd->pData);
// for USB CDC
- CDC_Itf_TxISR();
... |
Fixed issue where vive pro would enumerate as tr0 and then have the wrong acc_bias applied | @@ -152,6 +152,7 @@ typedef struct {
SurviveObject *so;
vive_pose_t imu_pose;
vive_pose_t head;
+ int device_class;
} scratch_space_t;
static scratch_space_t scratch_space_init(SurviveObject *so) { return (scratch_space_t){.so = so}; }
@@ -278,6 +279,14 @@ static int process_jsontok(scratch_space_t *scratch, char *d, s... |
Per-component benchmark for shutdown times | @@ -45,15 +45,20 @@ namespace ARIASDK_NS_BEGIN {
onStop = [this](void)
{
uint32_t timeoutInSec = m_config.GetTeardownTime();
+
+ bool result = true;
+ int64_t stopTimes[5] = { 0, 0, 0, 0, 0 };
+
if (timeoutInSec > 0)
{
+ // perform uploads if required
+ stopTimes[0] = GetUptimeMs();
LOG_TRACE("Shutdown timer started...... |
Tools: Improve messages | @@ -96,7 +96,7 @@ static int process_file(const char* filename)
printf("Checking file %s\n", filename);
while ((h = grib_handle_new_from_file(0, in, &err)) != NULL) {
- int is_reduced = 0, is_regular = 0, grid_ok = 0;
+ int is_reduced_gaussian = 0, is_regular_gaussian = 0, grid_ok = 0;
long edition = 0, N = 0, Nj = 0, ... |
Finalized implementation of minOverlap for Velocyto counting. | @@ -144,6 +144,11 @@ void Transcriptome::classifyAlign (Transcript **alignG, uint64 nAlignG, ReadAnno
aG.alignGenes.insert(trGene[tr1]);//genes for each alignment
};
+ if (P.pSolo.featureYes[SoloFeatureTypes::Velocyto]) {
+
+ //6 is the hard code minOverlapMinusOne, to agree with velocyto's MIN_FLANK=5
+ aStatus=alignT... |
lv_conf_internal: Check for LV_CONF_INCLUDE_SIMPLE before defining it. | #if defined __has_include
# if __has_include("lv_conf.h")
+# ifndef LV_CONF_INCLUDE_SIMPLE
# define LV_CONF_INCLUDE_SIMPLE
# endif
# endif
+#endif
/*If lv_conf.h is not skipped include it*/
#if !defined(LV_CONF_SKIP) && !defined(CONFIG_LV_CONF_SKIP)
|
driver/temp_sensor/oti502.c: Format with clang-format
BRANCH=none
TEST=none | @@ -17,8 +17,8 @@ static int temp_val_object; /* Object is IR temperature */
static int oti502_read_block(const int offset, uint8_t *data, int len)
{
- return i2c_read_block(I2C_PORT_THERMAL, OTI502_I2C_ADDR_FLAGS,
- offset, data, len);
+ return i2c_read_block(I2C_PORT_THERMAL, OTI502_I2C_ADDR_FLAGS, offset,
+ data, le... |
Fix Error: chip/sam_tc.c:922:30: error: format specifies type 'long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat] | @@ -919,7 +919,7 @@ static int sam_tc_mcksrc(uint32_t frequency, uint32_t *tcclks,
uint32_t fnext;
int ndx = 0;
- tmrinfo("frequency=%ld\n", frequency);
+ tmrinfo("frequency=%" PRId32 "\n", frequency);
/* Satisfy lower bound. That is, the value of the divider such that:
*
|
BugID:24039335:Fix for netmgr build warning | @@ -86,7 +86,7 @@ static void netmgr_connect_fail_event(hal_wifi_module_t *m, int err, void *arg)
#ifdef CONFIG_AOS_MESH
static void mesh_delayed_action(void *arg)
{
- umesh_set_mode((uint8_t)arg);
+ umesh_set_mode((node_mode_t)arg);
umesh_stop();
umesh_start(NULL);
}
|
LED_2 defined to use a GPIO not used on either the DA1469x mother or daugther board, but one that is brought out to an expansion header allowing an external LED to be easily connected. | @@ -39,7 +39,7 @@ extern uint8_t _ram_start;
/* LED pins */
#define LED_1 (33) /* P1_1 */
-#define LED_2 (33) /* P1_1 */
+#define LED_2 (43) /* P1_11 */
#define LED_BLINK_PIN LED_1
/* Button pin */
|
Update external test README for running krb5 | @@ -98,3 +98,37 @@ Test failures and suppressions
Some tests target older (<=1.0.2) versions so will not run. Other tests target
other crypto implementations so are not relevant. Currently no tests fail.
+
+krb5 test suite
+===============
+
+Much like the PYCA/Cryptography test suite, this builds and runs the krb5
+te... |
fix build after r3817077 | @@ -164,7 +164,7 @@ Y_UNIT_TEST_SUITE(SerializationTests) {
}
const auto expectedQuantizationSchema = MakeQuantizationSchema();
- const auto quantizationSchema = NCB::LoadQuantizationSchema(path.GetPath());
+ const auto quantizationSchema = NCB::LoadQuantizationSchemaFromPool(path.GetPath());
TString diff;
UNIT_ASSERT_... |
trace: fix for python3
xrange does not exist in py3. | @@ -483,10 +483,10 @@ BPF_PERF_OUTPUT(%s);
def _format_message(self, bpf, tgid, values):
# Replace each %K with kernel sym and %U with user sym in tgid
- kernel_placeholders = [i for i in xrange(0, len(self.types))
- if self.types[i] == 'K']
- user_placeholders = [i for i in xrange(0, len(self.types))
- if self.types[i... |
Solve minor bug in lua scripts cmake project. | #
# Check if this loader is enabled
-if(NOT OPTION_BUILD_SCRIPTS OR NOT OPTION_BUILD_SCRIPTS_JS)
+if(NOT OPTION_BUILD_SCRIPTS OR NOT OPTION_BUILD_SCRIPTS_LUA)
return()
endif()
|
khan: thinking intensifies | @@ -94,13 +94,36 @@ _khan_conn_cb(uv_stream_t* sem_u, c3_i tas_i)
// 3. peek, arvo
// 4. poke, arvo
//
- // For 1, we support a few simple text commands:
- // ok - says "ok" (basic health test)
- // dump - dumps runtime stat counters in simple machine/human-readable format
+ // For 1, the driver itself parses and respo... |
Fix NULL pointer checks in blas_memory_alloc | @@ -2921,7 +2921,7 @@ void *blas_memory_alloc(int procpos){
func = &memoryalloc[0];
- while ((func != NULL) && (map_address == (void *) -1)) {
+ while ((*func != NULL) && (map_address == (void *) -1)) {
map_address = (*func)((void *)base_address);
@@ -3032,7 +3032,7 @@ allocation2:
func = &memoryalloc[0];
- while ((fun... |
fix link error on linux when use qt4 | @@ -39,7 +39,11 @@ function _link(target, linkdirs, framework, qt_sdkver)
if qt_sdkver:ge("5.0") then
framework = "Qt" .. qt_sdkver:major() .. framework:sub(3) .. (is_mode("debug") and debug_suffix or "")
else -- for qt4.x, e.g. QtGui4.lib
+ if target:is_plat("windows") or target:is_plat("mingw") then
framework = "Qt" ... |
[io] take into account inertia as a vector of principal inertia | @@ -794,6 +794,12 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
assert (given_inertia is not None)
inertia = given_inertia
+ if inertia is not None:
+ if np.shape(inertia) == (3,):
+ inertia = np.diag(inertia)
+ elif np.shape(inertia) != (3,3):
+ print('Wrong shape of inertia')
+
body = body_cl... |
Do not track config.json | @@ -114,3 +114,5 @@ logs/
src/multihash-native/**/*.o
recovered-shares.json
+
+src/MiningCore/config.json
\ No newline at end of file
|
Update test to handle changed error code
Update test to handle changed error code from psa_key_derivation_output_key | @@ -4262,7 +4262,7 @@ PSA key derivation: HKDF-SHA-256, bad key type, key output
depends_on:PSA_WANT_ALG_HKDF:PSA_WANT_ALG_SHA_256
# Whether we get NOT_PERMITTED or BAD_STATE for the output is an implementation
# detail.
-derive_input:PSA_ALG_HKDF(PSA_ALG_SHA_256):PSA_KEY_DERIVATION_INPUT_SALT:PSA_KEY_TYPE_NONE:"":PSA_... |
ExtendedTools: Fix error message showing for empty object directories | @@ -57,7 +57,7 @@ PPH_STRING EtGetSelectedTreeViewPath(
{
HTREEITEM treeItem;
PPH_STRING treePath = NULL;
- WCHAR buffer[_MAX_FNAME] = L"";
+ WCHAR buffer[MAX_PATH] = L"";
treeItem = Context->SelectedTreeItem;
@@ -120,7 +120,7 @@ HTREEITEM EtTreeViewFindItem(
treeItem.hItem = TreeView_GetNextSibling(TreeViewHandle, tre... |
changes: note the deprecation of RAND_METHOD APIs | @@ -23,6 +23,13 @@ OpenSSL 3.0
### Changes between 1.1.1 and 3.0 [xx XXX xxxx]
+* The RAND_METHOD APIs have been deprecated. The functions deprecated are:
+ RAND_OpenSSL(), RAND_get_rand_method(), RAND_set_rand_engine() and
+ RAND_set_rand_method(). Provider based random number generators should
+ be used instead via E... |
schema tree DOC update schema flags bits | @@ -639,10 +639,10 @@ struct lysp_deviation {
* 1 1 1 1 1 1 1 1 1 1 2 2 2 2
* bit name 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
* ---------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- * 1 LYS_CONFIG_W |x|x|x|x|x|x|x| | | | | | | | | | |x| |x| | | |
+ * 1 LYS_CONFIG_W |x|x|x|x|x|x| | | | | | | | | ... |
add some error hints | @@ -137,6 +137,37 @@ int bpf_get_next_key(int fd, void *key, void *next_key)
return syscall(__NR_bpf, BPF_MAP_GET_NEXT_KEY, &attr, sizeof(attr));
}
+void bpf_print_hints(char *log)
+{
+ if (log == NULL)
+ return;
+
+ // The following error strings will need maintenance to match LLVM.
+
+ // stack busting
+ if (strstr(l... |
target:delete device node from devs before reopen device | @@ -250,6 +250,7 @@ done:
* cmdproc thread to reopen all these in parallel.
*/
list_for_each_safe(&tpg->devs, rdev, tmp_rdev, recovery_entry) {
+ list_del(&rdev->recovery_entry);
ret = __tcmu_reopen_dev(rdev->dev, false, -1);
if (ret) {
tcmu_dev_err(rdev->dev, "Could not reinitialize device. (err %d).\n",
|
add fsanitize=address | @@ -53,7 +53,7 @@ Build_UBSan:
image: debian:testing
stage: build
script:
- - CFLAGS="-O3 -ffast-math -fsanitize=undefined" make
+ - CFLAGS="-O3 -ffast-math -fsanitize=undefined -fsanitize=address" make
artifacts:
paths:
- bart
@@ -130,7 +130,7 @@ Unit_Test_UBSan:
image: debian:testing
stage: test1
script:
- - AUTOCLEA... |
tests: internal: upstream: init evl on testing thread | @@ -318,6 +318,7 @@ void test_upstream_http_get()
struct thread_arg{
struct flb_upstream *upstream;
+ struct flb_config *config;
int interval_nsec;
pthread_mutex_t *mutex;
};
@@ -329,6 +330,9 @@ void *http_get_thread(void *args)
int ret;
struct timespec tm;
+ flb_engine_evl_init();
+ flb_engine_evl_set(t_arg->config->e... |
added make install & install-jpm-git to readme | @@ -89,6 +89,8 @@ cd somewhere/my/projects/janet
make
make test
make repl
+make install
+make install-jpm-git
```
Find out more about the available make targets by running `make help`.
@@ -103,6 +105,8 @@ cd somewhere/my/projects/janet
make CC=gcc-x86
make test
make repl
+make install
+make install-jpm-git
```
### Free... |
Remove CustomSDLMain from OSX source | @@ -634,16 +634,9 @@ void TCOD_sys_update_char(int asciiCode, int fontx, int fonty, TCOD_image_t img,
any_ascii_updated=true;
}
-#ifdef TCOD_MACOSX
-void CustomSDLMain();
-#endif
-
void TCOD_sys_startup(void) {
if (has_startup) return;
sdl = SDL_implementation_factory();
-#ifdef TCOD_MACOSX
- CustomSDLMain();
-#endif
#... |
I added conversions from VTK to VTKm for zonal fields with unsigned char
and unsigned int types. This was to propogate ghost zone information, but
my VTKm build doesn't support those types, so it was for naught. | @@ -426,6 +426,53 @@ ConvertVTKToVTKm(vtkDataSet *data)
vtkm::cont::Field(array->GetName(),
vtkm::cont::Field::Association::CELL_SET, fieldArray));
}
+ else if (array->GetDataType() == VTK_UNSIGNED_CHAR)
+ {
+ vtkIdType nVals = array->GetNumberOfTuples();
+ unsigned char *vals =
+ vtkUnsignedCharArray::SafeDownCast(arr... |
vm: Fix incorrect comment about registers having types.
It's been a long time since values have included types. | @@ -431,17 +431,10 @@ void lily_value_tag(lily_vm_state *vm, lily_value *v)
* |___/
*/
-/** Lily is a register-based vm. This means that each call has a block of values
- that belong to it. Upon a call's entry, the types of the registers are set,
- and values are put into the registers. Each register has a type that it... |
naive: import /lib/naive-transactions in aggregator | :: - it's a bit weird how we just assume the raw and tx in raw-tx to match...
::
/- *aggregator
-/+ naive, default-agent, ethereum, dbug, verb
-/= ttttt /tests/lib/naive ::TODO use new lib
+/+ naive, default-agent, ethereum, dbug, verb, lib=naive-transactions
::
::TODO /sur file for public types
|%
++ try-apply
|= [nas... |
board/arcada_ish/board.c: Format with clang-format
BRANCH=none
TEST=none | @@ -42,11 +42,9 @@ static struct stprivate_data g_lis2dh_data;
static struct lis2mdl_private_data lis2mdl_a_data;
/* Matrix to rotate lid sensor into standard reference frame */
-const mat33_fp_t lid_rot_ref = {
- { FLOAT_TO_FP(-1), 0, 0},
+const mat33_fp_t lid_rot_ref = { { FLOAT_TO_FP(-1), 0, 0 },
{ 0, FLOAT_TO_FP(-1... |
test/recipes/02_test_errstr.t: Make it less fragile
Change it to split the error string returned by `openssl errstr` in a
more robust manner, and ensure it's the reason code we look at. | @@ -104,18 +104,31 @@ foreach my $errname (@posix_errors) {
my @oerr = run(app([ qw(openssl errstr), sprintf("2%06x", $errnum) ]),
capture => 1);
$oerr[0] =~ s|\R$||;
- $oerr[0] =~ s|.*system library:||g; # The actual message is last
-
- ok($oerr[0] eq $perr, "($errnum) '$oerr[0]' == '$perr'");
+ @oerr = split_error($o... |
Compile actor bounds based on spritesheet used | @@ -406,6 +406,34 @@ export const compileSceneHeader = (scene: any, sceneIndex: number) =>
`// Scene: ${sceneName(scene, sceneIndex)}`
);
+export const compileBounds = ({
+ boundsX,
+ boundsY,
+ boundsWidth,
+ boundsHeight,
+}: {
+ boundsX?: number;
+ boundsY?: number;
+ boundsWidth?: number;
+ boundsHeight?: number;
+... |
Fix dead assignment in ConnectionFX3 | @@ -557,10 +557,9 @@ int ConnectionFX3::FinishDataReading(char *buffer, uint32_t length, int contextH
*/
void ConnectionFX3::AbortReading(int ep)
{
- ep = 0x81;
#ifndef __unix__
for (int i = 0; i < MAX_EP_CNT; i++)
- if (InEndPt[i] && InEndPt[i]->Address == ep)
+ if (InEndPt[i] && InEndPt[i]->Address == 0x81)
InEndPt[i... |
balloon: Add missing spin lock release to error path
Commit wrapped the virtqueue operations in BalloonTellHost()
with a lock but didn't fix up the early return. This commit fixes a
potential deadlock. | @@ -289,6 +289,7 @@ BalloonTellHost(
if (virtqueue_add_buf(vq, &sg, 1, 0, devCtx, NULL, 0) < 0)
{
TraceEvents(TRACE_LEVEL_ERROR, DBG_HW_ACCESS, "<-> %s :: Cannot add buffer\n", __FUNCTION__);
+ WdfSpinLockRelease(devCtx->InfDefQueueLock);
return;
}
do_notify = virtqueue_kick_prepare(vq);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.