message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Add installation of runtime include headers for LibTCC. | @@ -77,6 +77,7 @@ set(LIBTCC_TARGET libtcc-depends)
set(LIBTCC_COMMIT_SHA "da11cf651576f94486dbd043dbfcde469e497574")
set(LIBTTC_LIBRARY_NAME "${CMAKE_SHARED_LIBRARY_PREFIX}tcc${CMAKE_SHARED_LIBRARY_SUFFIX}")
set(LIBTTC_LIBRARY_PATH "${PROJECT_OUTPUT_DIR}/${LIBTTC_LIBRARY_NAME}")
+set(LIBTTC_RUNTIME_INCLUDE_PATH "${LIB... |
ExtendedServices: Remove legacy ETW lookup | * trigger editor
*
* Copyright (C) 2011-2015 wj32
+ * Copyright (C) 2020 dmex
*
* This file is part of Process Hacker.
*
*/
#include "extsrv.h"
+#include <hndlinfo.h>
typedef struct _ES_TRIGGER_DATA
{
@@ -370,53 +372,6 @@ VOID EsDestroyServiceTriggerContext(
PhFree(Context);
}
-PPH_STRING EspLookupEtwPublisherName(
- _... |
extmod/modlwip: Fix case where concurrency lock isn't released on error. | @@ -536,6 +536,15 @@ STATIC mp_uint_t lwip_udp_receive(lwip_socket_obj_t *socket, byte *buf, mp_uint_
} \
assert(socket->pcb.tcp);
+// Version of above for use when lock is held
+#define STREAM_ERROR_CHECK_WITH_LOCK(socket) \
+ if (socket->state < 0) { \
+ *_errno = error_lookup_table[-socket->state]; \
+ MICROPY_PY_LW... |
Disable tests/tls_e2e on RHEL temporarily, since it sometimes hangs on RHEL. | @@ -72,8 +72,13 @@ if (UNIX
if (NOT USE_SNMALLOC)
add_subdirectory(memory)
endif ()
+ # Disable tls_e2e on RHEL. For some reasons it may hang on RHEL.
+ # https://github.com/openenclave/openenclave/issues/3508
+ find_file(REDHAT_FOUND redhat-release redhat-release.conf PATHS /etc)
+ if (NOT REDHAT_FOUND)
add_subdirecto... |
recover SSO code from history
"revert eyrelearning" didn't quite get everything | document.location = url
}
urb.redir = function(ship){
+ if(ship){
var location = new URL(document.location)
location.pathname = location.pathname.replace(/^\/~~|\/~\/as\/any/,'/~/as/~'+ship)
urb.redirTo(location)
}
+ else urb.redirTo(
+ document.location.hash.match(/#[^?]+/)[0].slice(1) +
+ document.location.pathname.r... |
Add building the manuals to the regression suite. | #
# Eric Brugger, Mon Dec 21 09:11:31 PST 2020
# Update cmakeCmd to use CMake 3.14.7, required by new VTKm.
+#
+# Eric Brugger, Fri Jan 8 11:12:04 PST 2021
+# I modified the script to also make the manuals before making the package
+# since the manuals are now required to make the package.
#
# Determine the users name ... |
Implement UPDATE_MARK_CHECK_AI. | @@ -21026,7 +21026,7 @@ void check_ai()
{
if(self->nextthink <= _time && !endgame)
{
- self->update_mark |= 2; //mark it
+ self->update_mark |= UPDATE_MARK_CHECK_AI; //mark it
// take actions
if(self->takeaction)
{
|
Log output needs to be split into lines as ImGuiListClipper is designed to work with mostly-uniform items | @@ -396,7 +396,13 @@ bool Overlay::IsEnabled() const
void Overlay::Log(const std::string& acpText)
{
std::lock_guard<std::recursive_mutex> _{ m_outputLock };
- m_outputLines.emplace_back(acpText);
+ std::istringstream lines(acpText);
+ std::string line;
+
+ while (std::getline(lines, line))
+ {
+ m_outputLines.emplace_... |
zephyr: Add better errors
Only one of the backends for the shell can be enabled at once, so add
BRANCH=None
TEST=zmake testall
Tested-by: Jeremy Bettis | #include <device.h>
#include <drivers/uart.h>
#include <shell/shell.h>
-#ifdef CONFIG_SHELL_BACKEND_DUMMY
-#include <shell/shell_dummy.h>
+#ifdef CONFIG_SHELL_BACKEND_DUMMY /* nocheck */
+#include <shell/shell_dummy.h> /* nocheck */
#endif
#include <shell/shell_uart.h>
#include <stdbool.h>
#include "usb_console.h"
#inc... |
is_likely_same_log(): take const pointer instead of 4128 byte copy | @@ -2605,16 +2605,16 @@ process_log (GLogItem * logitem) {
* Returns 1 if the content is likely the same or no data to compare
* Returns 0 if it has different content */
static int
-is_likely_same_log (GLog * glog, GLastParse lp) {
+is_likely_same_log (GLog * glog, const GLastParse * lp) {
size_t size = 0;
- if (!lp.si... |
serf: switches to new new crud | @@ -444,11 +444,13 @@ _serf_sure(u3_serf* sef_u, c3_w pre_w, u3_noun par)
static u3_noun
_serf_make_crud(u3_noun job, u3_noun dud)
{
- u3_noun now, ovo, wir, cad, new;
+ u3_noun now, ovo, new;
u3x_cell(job, &now, &ovo);
- u3x_cell(ovo, &wir, &cad);
- new = u3nt(u3i_vint(u3k(now)), u3k(wir), u3nt(c3__crud, dud, u3k(cad)... |
Actors to left of overlay no longer hidden | @@ -856,7 +856,7 @@ void SceneRenderActors_b()
x = ACTOR_X(ptr) - SCX_REG;
y = ACTOR_Y(ptr) - SCY_REG;
- if (ACTOR_ENABLED(ptr) && (win_pos_y == MENU_CLOSED_Y || y < win_pos_y + 16))
+ if (ACTOR_ENABLED(ptr) && (win_pos_y == MENU_CLOSED_Y || (y < win_pos_y + 16 || x < win_pos_x + 8)))
{
move_sprite(s, x, y);
move_sprit... |
added pix() bounds check if you are reading a pixel color | @@ -77,7 +77,9 @@ static inline void setPixelFast(tic_core* core, s32 x, s32 y, u8 color)
static u8 getPixel(tic_core* core, s32 x, s32 y)
{
- return tic_api_peek4((tic_mem*)core, y * TIC80_WIDTH + x);
+ return x < 0 || y < 0 || x >= TIC80_WIDTH || y >= TIC80_HEIGHT
+ ? 0
+ : tic_api_peek4((tic_mem*)core, y * TIC80_WID... |
reenable segment cache and fix initial segment commit | @@ -348,7 +348,7 @@ static mi_segment_t* mi_segment_cache_pop(size_t segment_size, mi_segments_tld_t
static bool mi_segment_cache_full(mi_segments_tld_t* tld)
{
- if (tld->count == 1 && tld->cache_count==0) return false; // always cache at least the final segment of a thread
+ // if (tld->count == 1 && tld->cache_count... |
qlog: support the retire_connection_id frame type | @@ -164,6 +164,18 @@ def handle_quictrace_recv_ack(event):
"frame_type": "ack",
}
+def handle_retire_connection_id_receive(event):
+ return {
+ "frame_type": "retire_connection_id",
+ "sequence_number": event["sequence"]
+ }
+
+def handle_retire_connection_id_send(event):
+ return {
+ "frame_type": "retire_connection_i... |
Prototype check_blockpain() | @@ -2807,6 +2807,7 @@ int check_bind_override(entity *ent, e_binding_overriding overriding);
int check_blocking_chance(entity *ent);
int check_blocking_conditions(entity *ent, entity *other, s_collision_attack *attack);
int check_blocking_eligible(entity *ent, entity *other, s_collision_attack *attack);
+int check_bloc... |
Reserve OPAL API number for opal_handle_hmi2 function.
Requested-by: Benjamin Herrenschmidt | #define OPAL_SENSOR_GROUP_ENABLE 163
#define OPAL_PCI_GET_PBCQ_TUNNEL_BAR 164
#define OPAL_PCI_SET_PBCQ_TUNNEL_BAR 165
-#define OPAL_LAST 165
+#define OPAL_HANDLE_HMI2 166
+#define OPAL_LAST 166
#define QUIESCE_HOLD 1 /* Spin all calls at entry */
#define QUIESCE_REJECT 2 /* Fail all calls with OPAL_BUSY */
|
fix checkbox label prop | @@ -29,12 +29,11 @@ export default class ToggleButton extends React.Component {
return (
<Checkbox
id={id}
- label={meta && meta.description}
+ label={(meta && meta.description) || label}
checked={this.state.checked}
onCheck={this.handleCheck}
style={{ display: 'inline-block', width: 'auto', position: 'relative', top: ... |
When a generic mesh model message is received "bt_mesh_generic_server_cb_evt_to_btc" copies the
ctx values to cb_params for the mesh stack.
recv_rssi was not copied.
This means the rssi could not be read when receiving generic server messages using ble_mesh. | @@ -742,6 +742,7 @@ void bt_mesh_generic_server_cb_evt_to_btc(u8_t evt_type,
cb_params.ctx.recv_ttl = ctx->recv_ttl;
cb_params.ctx.recv_op = ctx->recv_op;
cb_params.ctx.recv_dst = ctx->recv_dst;
+ cb_params.ctx.recv_rssi = ctx->recv_rssi;
if (val && len) {
length = (len <= sizeof(cb_params.value)) ? len : sizeof(cb_par... |
Remove 'const' qualifier from temporary for mpi_montmul() | @@ -1572,12 +1572,10 @@ static void mpi_montg_init( mbedtls_mpi_uint *mm, const mbedtls_mpi *N )
* (T->n >= 2 * N->n + 1).
* Its initial content is unused and
* its final content is indeterminate.
- * Note that unlike the usual convention in the library
- * for `const mbedtls_mpi*`, the content of T can change.
*/
stat... |
extmod/vfs_posix_file: Unconditionally ignore EINVAL on fsync().
It may happen with tty's, pipes, dup'ed fd's, etc. Checking for STDIN_FILENO,
etc. makes no sense. Now the handling matches Unix port. | @@ -174,8 +174,7 @@ STATIC mp_uint_t vfs_posix_file_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_
case MP_STREAM_FLUSH: {
int ret;
MP_HAL_RETRY_SYSCALL(ret, fsync(o->fd), {
- if (err == EINVAL
- && (o->fd == STDIN_FILENO || o->fd == STDOUT_FILENO || o->fd == STDERR_FILENO)) {
+ if (err == EINVAL) {
// fsync(stdin/st... |
Allow short server initial if resuming path | @@ -1520,7 +1520,8 @@ int picoquic_incoming_server_initial(
break;
}
}
- if (ack_needed) {
+ if (ack_needed && cnx->retry_token_length == 0) {
+ /* perform the test on new paths, but not if resuming an existing path */
picoquic_log_app_message(cnx, "Server initial too short (%zu bytes)", packet_length);
ret = PICOQUIC_... |
sdl/vulkan: add links to documentation | @@ -66,6 +66,7 @@ import (
)
// VulkanLoadLibrary dynamically loads a Vulkan loader library.
+// (https://wiki.libsdl.org/SDL_Vulkan_LoadLibrary)
func VulkanLoadLibrary(path string) error {
var ret C.int
if path == "" {
@@ -82,16 +83,19 @@ func VulkanLoadLibrary(path string) error {
}
// VulkanGetVkGetInstanceProcAddr ... |
test: Add ethereum InitEthWalletGenerationKey | @@ -460,6 +460,26 @@ START_TEST(test_002InitWallet_0012InitEthWalletSuccess)
}
END_TEST
+START_TEST(test_002InitWallet_0013InitEthWalletGenerationKey)
+{
+ BoatEthWallet *rtnVal;
+ BoatEthWalletConfig walletConfig;
+
+ walletConfig.prikeyCtx_config.prikey_genMode = BOAT_WALLET_PRIKEY_GENMODE_INTERNAL_GENERATION;
+ wall... |
unix/main: Allow to build with MICROPY_ENABLE_COMPILER == 0. | @@ -115,13 +115,16 @@ STATIC int execute_from_lexer(int source_kind, const void *source, mp_parse_inpu
nlr_buf_t nlr;
if (nlr_push(&nlr) == 0) {
// create lexer based on source kind
+ #if MICROPY_ENABLE_COMPILER
mp_lexer_t *lex;
+ #endif
mp_obj_t module_fun;
if (source_kind == LEX_SRC_RAW_CODE) {
mp_raw_code_t *raw_cod... |
py/runtime: Fix incorrect test for MICROPY_PORT_DEINIT_FUNC. | @@ -133,7 +133,7 @@ void mp_deinit(void) {
//mp_map_deinit(&MP_STATE_VM(mp_loaded_modules_map));
// call port specific deinitialization if any
-#ifdef MICROPY_PORT_INIT_FUNC
+#ifdef MICROPY_PORT_DEINIT_FUNC
MICROPY_PORT_DEINIT_FUNC;
#endif
}
|
fix repeated slider in judgement | @@ -118,7 +118,7 @@ class Check:
slider_leniency = min(36, osu_d["duration"] / 2)
if (osr[3] - osu_d["time"]) / slider_d["repeated slider"] > osu_d["duration"]:
- slider_d["repeated slider"] += 1
+ slider_d["repeated slider"] = math.ceil((osr[3] - osu_d["time"]) / osu_d["duration"])
going_forward = slider_d["repeated s... |
Fix Espressif OTA config | /**
* @brief The number of words allocated to the stack for the OTA agent.
*/
-#define otaconfigSTACK_SIZE 4000U
+#define otaconfigSTACK_SIZE 6000U
/**
* @brief Log base 2 of the size of the file data block message (excluding the header).
*
* 10 bits yields a data block size of 1KB.
*/
-#define otaconfigLOG2_FILE_BLOCK... |
Uncrustify: Update link | @@ -29,7 +29,7 @@ jobs:
- name: Run Uncrustify
run: |
- python3 -c "$(/usr/bin/curl https://raw.githubusercontent.com/acidanthera/ocbuild/unc-build/uncstrap/uncstrap.py)" ./Uncrustify.yml || exit 1
+ python3 -c "$(/usr/bin/curl https://raw.githubusercontent.com/acidanthera/ocbuild/master/uncstrap/uncstrap.py)" ./Uncrus... |
Manually disable a few miniaudio features; | @@ -36891,6 +36891,7 @@ MA_API ma_uint32 ma_lpf_get_latency(const ma_lpf* pLPF)
}
+#if 0
/**************************************************************************************************************************************************************
High-Pass Filtering
@@ -38186,7 +38187,7 @@ MA_API ma_uint32 ma_hishelf... |
zuse: flip bytes in sig
gross! | %^ rev 3 32
(mod (add k (mul e d)) n.domain.c)
:: ?> (schnorrsig-verify pp message sig)
- sig
+ (rev 3 64 sig)
++ schnorrsig-verify
:: ~/ %sove
|= *
|
ur: updates ur_bsw_t comparison tests to memcmp() buffers (failing) | @@ -222,12 +222,6 @@ _bsw_cmp_check(const char* cap, uint8_t val, uint8_t off, uint8_t len, ur_bsw_t
ret = 0;
}
- if ( a->bytes[0] != b->bytes[0] ) {
- fprintf(stderr, "%s: val 0x%02x off %u len %u: bytes fail (0x%02x, 0x%02x)\r\n",
- cap, val, off, len, a->bytes[0], b->bytes[0]);
- ret = 0;
- }
-
if ( a->off != b->off... |
star: update touchpad dimension
TEST=no "[1.305775 *** TP mismatch!]" when boot
BRANCH=trogdor
Tested-by: Ting Shen | #elif defined(BOARD_STAR)
#define CONFIG_USB_HID_KEYBOARD_VIVALDI
#define CONFIG_USB_HID_KB_NUM_TOP_ROW_KEYS 10
-
-/* TODO: update correct parameters */
#define HAS_I2C_TOUCHPAD
#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 3282
#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1793
#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_... |
Add a table of content | **CL**ever **A**udio **P**lugin.
+- [Learn about CLAP](#learn-about-clap)
+ - [Entry point](#entry-point)
+ - [Extensions](#extensions)
+ - [Fundamental extensions](#fundamental-extensions)
+ - [GUI extensions](#gui-extensions)
+ - [Extra extensions](#extra-extensions)
+- [Resources](#resources)
+ - [Programming Langua... |
Update CONTRIBUTING.md
Add comment on seeking consensus form the team | @@ -7,6 +7,9 @@ If you want to make changes to CCL, please follow the procedures listed here
to make sure that they conform to our coding standards, and that all of the
necessary files, wrappers etc. are properly updated.
+Developers should seek consensus with the CCL team as needed about new features
+being incorporat... |
docker_exec.sh: Fail the docker subprocess returns nonzero. | @@ -32,8 +32,18 @@ function docker_exec {
docker exec --user=dockeruser --workdir="$DIR/.." -i $IMAGE bash -c "echo \"\$\$\" > $PIDFILE; eval $*" &
PID=$!
wait $PID
+ RESULT=$?
+ if [ ! $RESULT -ne 0 ]
+ then
+ exit $RESULT
+ fi
trap - TERM INT
wait $PID
+ RESULT=$?
+ if [ $RESULT -ne 0 ]
+ then
+ exit $RESULT
+ fi
}
d... |
pybricks/common/ColorLight.animate: use new Color type | @@ -111,7 +111,7 @@ STATIC mp_obj_t common_ColorLight_internal_animate(size_t n_args, const mp_obj_t
mp_obj_iter_buf_t iter_buf;
mp_obj_t colors_iter = mp_getiter(colors_in, &iter_buf);
for (int i = 0; i < colors_len; i++) {
- pb_obj_get_hsv(mp_iternext(colors_iter), &cells[i]);
+ cells[i] = *pb_type_Color_get_hsv(mp_i... |
[RAFT] fix bug : block factory generates work of same height.
- change jobQueue channel to unbuffered channel
- when reseting block factory, remove all pushed items from jobQueue | @@ -159,7 +159,7 @@ func New(cfg *config.Config, hub *component.ComponentHub, cdb consensus.ChainWAL
bf := &BlockFactory{
ComponentHub: hub,
ChainWAL: cdb,
- jobQueue: make(chan interface{}, slotQueueMax),
+ jobQueue: make(chan interface{}),
workerQueue: make(chan *Work),
bpTimeoutC: make(chan interface{}, 1),
quit: ma... |
chat: restore 'copied' notice on copy
Fixes | @@ -60,6 +60,15 @@ const renderWithSigil = (props, timestamp) => {
name = cite(props.msg.author);
}
+ let nameSpan = null;
+
+ const copyNotice = (saveName) => {
+ nameSpan.innerText = 'Copied';
+ setTimeout(() => {
+ nameSpan.innerText = saveName;
+ }, 800);
+ };
+
return (
<div className="flex w-100">
<OverlaySigil
@... |
Make sure that token is initialized before requesting randomness
If ulRand is the first time PKCS module is used, make sure that
the token has been initialized. | @@ -578,11 +578,11 @@ static CK_RV prvSocketsGetCryptoSession( SemaphoreHandle_t * pxSessionLock,
if( CKR_OK == xResult )
{
- xResult = xInitializePKCS11();
+ xResult = xInitializePkcs11Token();
}
/* Get the crypto token slot count. */
- if( ( CKR_OK == xResult ) || ( CKR_CRYPTOKI_ALREADY_INITIALIZED == xResult ) )
+ i... |
[doc] macOS ST-Link-v1 detection
Added documentation on how to solve a failed detection of the ST-Link-v1
programmer in macOS v10.11 and later.
(Closes | @@ -13,6 +13,70 @@ This option accepts decimal (128k), octal 0200k, or hex 0x80k.
Obviously leaving the multiplier out is equally valid, for example: `--flash=0x20000`.
The size may be followed by an optional "k" or "m" to multiply the given value by 1k (1024) or 1M respectively.
+
+## Solution to common problems
+### ... |
gpstate: Avoid calling primary_mirror_mode.
Lot more cleanup needs to happen of code in gpstate, this is just
small initial attempt to fix the currently borken tests in walrep
schedule. | @@ -38,21 +38,6 @@ class GpSegStatusProgram:
self.__options = options
self.__pool = None
- def getStatusUsingTransition(self, seg, statusRequest, currentPMPidData):
- """
- The data as from GpSegStatusProgram.getPidRunningStatus
- """
- if currentPMPidData is not None and \
- (currentPMPidData['pidValue'] == 0 or not c... |
github: Improve test targets build
Don't fail on first error but try to build all targets.
Also, make build less spammy, we care about errors only anyway. | @@ -42,4 +42,4 @@ jobs:
newt upgrade --shallow=1
ln -s .github/targets ci_targets
- name: Build targets
- run: newt build `ls ci_targets/`
+ run: ls ci_targets | xargs -n1 sh -c 'echo "Testing $0"; newt build -q $0'
|
network: modify comment style | @@ -526,7 +526,7 @@ static void flb_net_getaddrinfo_callback(void *arg, int status, int timeouts,
context->result = flb_net_translate_ares_addrinfo(res);
if (NULL == context->result) {
- // Currently, translation fails when malloc error occured.
+ /* Currently, translation fails when malloc error occured. */
context->r... |
power/icelake.c: Format with clang-format
BRANCH=none
TEST=none | #define GPIO_SET_LEVEL(signal, value) \
gpio_set_level_verbose(CC_CHIPSET, signal, value)
#else
-#define GPIO_SET_LEVEL(signal, value) \
- gpio_set_level(signal, value)
+#define GPIO_SET_LEVEL(signal, value) gpio_set_level(signal, value)
#endif
/* The wait time is ~150 msec, allow for safety margin. */
@@ -171,7 +170,6... |
You don't need the host when querying for a plugin descriptor | @@ -202,7 +202,7 @@ struct clap_plugin_entry {
* Returns null in case of error.
* The descriptor does not need to be freed.
* [thread-safe] */
- const clap_plugin_descriptor *(*get_plugin_descriptor)(clap_host *host, int32_t index);
+ const clap_plugin_descriptor *(*get_plugin_descriptor)(int32_t index);
/* Create a cl... |
Remove obsolete call to perlExec() for stand-alone expire command.
This was missed in | @@ -141,7 +141,6 @@ main(int argListSize, const char *argList[])
// -----------------------------------------------------------------------------------------------------------------
case cfgCmdExpire:
{
- perlExec();
cmdExpire();
break;
}
|
Match cnames in ipset | @@ -138,11 +138,12 @@ ipset_add_rrset_data(struct ipset_env *ie, struct mnl_socket *mnl,
static int
ipset_check_zones_for_rrset(struct module_env *env, struct ipset_env *ie,
struct mnl_socket *mnl, struct ub_packed_rrset_key *rrset,
- const char *setname, int af)
+ struct query_info qinfo, const char *setname, int af)
... |
Fix shared build target | @@ -204,11 +204,11 @@ if not headers_only
link_whole: libc_sublibs,
install: true)
- static_library('dl', 'libdl/src/dummy.cpp', install: true)
- static_library('pthread', 'libpthread/src/dummy.cpp', install: true)
- static_library('rt', 'librt/src/dummy.cpp', install: true)
- static_library('util', 'libutil/src/dummy.... |
board/volteer/sensors.c: Format with clang-format
BRANCH=none
TEST=none | @@ -84,17 +84,13 @@ static struct tcs3400_rgb_drv_data_t g_tcs3400_rgb_data = {
};
/* Rotation matrix for the lid accelerometer */
-static const mat33_fp_t lid_standard_ref = {
- { FLOAT_TO_FP(1), 0, 0},
+static const mat33_fp_t lid_standard_ref = { { FLOAT_TO_FP(1), 0, 0 },
{ 0, FLOAT_TO_FP(-1), 0 },
- { 0, 0, FLOAT_T... |
Fix installation of xinetd configuration file for cups-lpd
Fix --with-xinetd=/etc/xinetd.d not installing the cups-ldp xinetd
configuration file. | @@ -199,7 +199,8 @@ install-data:
$(INSTALL_DATA) org.cups.cupsd.socket $(BUILDROOT)$(SYSTEMD_DIR); \
$(INSTALL_DATA) org.cups.cups-lpdAT.service $(BUILDROOT)$(SYSTEMD_DIR)/org.cups.cups-lpd@.service; \
$(INSTALL_DATA) org.cups.cups-lpd.socket $(BUILDROOT)$(SYSTEMD_DIR); \
- elif test "x$(XINETD)" != x; then \
+ fi
+ i... |
Moved the NANs and INFs global constant string tables to function
local scope.
This is really a workaround for an unknown issue that appears
only with hsa-native: The static qualifiers made hsa-native
kernel compilation fail due to the symbols not getting in the
final binary. | @@ -76,15 +76,15 @@ DEFINE_PRINT_INTS (ulong, int64_t, uint64_t)
/**************************************************************************/
-static const char *NANs[2] = { "nan", "NAN" };
-static const char *INFs[2] = { "inf", "INF" };
-
/* Note: NANs are printed always positive.
* This is required to pass 1.2 confor... |
gcov: fix typo preventing libc coverage report | @@ -13,7 +13,7 @@ LCOV_EXCLUDE += $(LIBC_TEST:%=%.c) $(LIBC_DUALLIB_TEST:%=%.c) $(LIBC_DUALLIB_TES
.PHONY : libc-check libc-coverage
libc-check: $(LIBC_TEST:%=%-check) $(LIBC_DUALLIB_TEST:%=%-check)
-lib-coverage: $(LIBC_TEST:%=%-gcov-run) $(LIBC_DUALLIB_TEST:%=%-gcov-run)
+libc-coverage: $(LIBC_TEST:%=%-gcov-run) $(LI... |
pid: fix combined pid change for indec_factor | @@ -503,8 +503,14 @@ int change_pid_value(int increase) {
#endif
newPID = current_pid_term_pointer[current_pid_axis] + ((float)PID_TUNING_INCDEC_FACTOR * multiplier);
- if (newPID > 0)
+ if (newPID > 0) {
current_pid_term_pointer[current_pid_axis] = newPID;
+#ifdef COMBINE_PITCH_ROLL_PID_TUNING
+ if (current_pid_axis =... |
Add missing asserts.
These interface functions did not exist when the Storage object was created but they are now required. | @@ -58,7 +58,9 @@ storageNew(
ASSERT(strSize(path) >= 1 && strPtr(path)[0] == '/');
ASSERT(driver != NULL);
ASSERT(interface.exists != NULL);
+ ASSERT(interface.info != NULL);
ASSERT(interface.list != NULL);
+ ASSERT(interface.infoList != NULL);
ASSERT(interface.newRead != NULL);
ASSERT(interface.newWrite != NULL);
ASS... |
Process a "di" filter in requests to oic/res | @@ -158,17 +158,27 @@ oc_core_discovery_handler(oc_request_t *request, oc_interface_mask_t interface,
void *data)
{
(void)data;
- char *rt = NULL;
- int rt_len = 0, matches = 0, device;
+ char *rt = NULL, *di = NULL;
+ oc_uuid_t dev_id;
+ int rt_len = 0, matches = 0, di_len = 0, device;
if (request->query_len) {
rt_len... |
PEERDIR contrib/libs/platform/linux 4 all linux
Pull-request for branch users/heretic/fix-peerdir-platform-linux | @@ -316,6 +316,7 @@ NO_GPL_FLAG=
when ($NO_GPL == "yes") {
NO_GPL_FLAG=--no-gpl
}
+NEED_PLATFORM_PEERDIRS=yes
module BASE_UNIT {
.EXTS=.*
@@ -416,7 +417,7 @@ module BASE_UNIT {
}
}
- when ($COMPILER_PLATFORM && $NOPLATFORM != "yes") {
+ when ($COMPILER_PLATFORM && $NEED_PLATFORM_PEERDIRS == "yes") {
PEERDIR+=$COMPILER_... |
Misuse of regular expressions in init_file of feature test. | # limitations under the License.
#mask code line numbers
-- start_matchsubs
-m/\(.*c[p]+:\d+\)/
-s/\(.*c[p]+:\d+\)/(file_and_line)/
+m/\(.*c[p]*:\d+\)/
+s/\(.*c[p]*:\d+\)/(file_and_line)/
-- end_matchsubs
|
nimble/ll: Update LL features list to 5.3 | @@ -267,10 +267,14 @@ extern STATS_SECT_DECL(ble_ll_stats) ble_ll_stats;
#define BLE_LL_FEAT_CIS_SLAVE (0x0020000000)
#define BLE_LL_FEAT_ISO_BROADCASTER (0x0040000000)
#define BLE_LL_FEAT_SYNC_RECV (0x0080000000)
-#define BLE_LL_FEAT_ISO_HOST_SUPPORT (0x0100000000)
+#define BLE_LL_FEAT_CIS_HOST (0x0100000000)
#define ... |
hotfix R and Python pool problems with missing values in CatFeaturesHashToString hashmap | @@ -478,11 +478,12 @@ class TCPUModelTrainer : public IModelTrainer {
obliviousTrees = builder.Build();
}
- for (auto& oheFeature : obliviousTrees.OneHotFeatures) {
- for (const auto& value : oheFeature.Values) {
- oheFeature.StringValues.push_back(learnPool.CatFeaturesHashToString.at(value));
- }
- }
+// TODO(kirillov... |
efuse: Fix unused variable warning when NDEBUG
Merges:
Closes: | @@ -104,6 +104,7 @@ void esp_efuse_write_random_key(uint32_t blk_wdata0_reg)
} else { // 3/4 Coding Scheme
bootloader_fill_random(raw, sizeof(raw));
esp_err_t r = esp_efuse_apply_34_encoding(raw, buf, sizeof(raw));
+ (void) r;
assert(r == ESP_OK);
}
|
Change twist velocity index name | @@ -200,8 +200,8 @@ bool Turtlebot3MotorDriver::controlMotor(const float wheel_radius, const float w
float wheel_velocity_cmd[2];
- float lin_vel = value[LEFT];
- float ang_vel = value[RIGHT];
+ float lin_vel = value[0];
+ float ang_vel = value[1];
wheel_velocity_cmd[LEFT] = lin_vel - (ang_vel * wheel_separation / 2);
... |
Updated compile docs to include LX2160A support | @@ -116,6 +116,22 @@ If it's the first install, you also need:
sudo systemctl restart systemd-binfmt
```
+#### for LX2160A
+
+Using a 64bits OS:
+
+```
+git clone https://github.com/ptitSeb/box64
+cd box64
+mkdir build; cd build; cmake .. -DLX2160A=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
+make -j$(nproc)
+sudo make install... |
fix(behavior): Properly break in decision switch statement. | @@ -413,10 +413,13 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap,
switch (hold_tap->config->flavor) {
case FLAVOR_HOLD_PREFERRED:
decide_hold_preferred(hold_tap, decision_moment);
+ break;
case FLAVOR_BALANCED:
decide_balanced(hold_tap, decision_moment);
+ break;
case FLAVOR_TAP_PREFERRED:
decide_tap_... |
align bitstream for 32bit dma transfer and fix ghosting issue | @@ -50,7 +50,8 @@ constexpr uint32_t ROW_BYTES = 12;
constexpr uint32_t BCD_FRAMES = 15; // includes fet discharge frame
constexpr uint32_t BITSTREAM_LENGTH = (ROW_COUNT * ROW_BYTES * BCD_FRAMES);
-uint8_t bitstream[BITSTREAM_LENGTH] = {0};
+// must be aligned for 32bit dma transfer
+alignas(4) uint8_t bitstream[BITSTR... |
boolean: use strcasecmp | #include "boolean.h"
-#include <ctype.h>
#include <kdberrors.h>
#include <kdbhelper.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#define DEFAULT_TRUE_VALUE "1"
@@ -66,62 +66,13 @@ int elektraBooleanClose (Plugin * handle ELEKTRA_UNUSED, Key * errorKey ELEKTRA_
return 1; // success... |
In CONNECT tunnels, the `datagram_flow_id` is `UINT64_MAX`, take that into account | @@ -394,10 +394,12 @@ static void destroy_tunnel(struct st_h2o_http3_server_stream_t *stream)
/* remove stream from datagram flow list */
struct st_h2o_http3_server_conn_t *conn = get_conn(stream);
+ if (stream->tunnel->datagram_flow_id != UINT64_MAX) {
khiter_t iter = kh_get(stream, conn->datagram_flows, stream->tunne... |
external/wakaama : fix bug parsing int64_t type
This commit fixes an unresolved wakaama server issue.
When executing to create client resource, returns error
COAP_400_BAD_REQUEST. To solve this problem, It's necessary to change
the input data type to 64 bits. | @@ -642,7 +642,8 @@ static void prv_create_client(char * buffer,
{
lwm2m_data_t * dataP;
- if (1 != sscanf(buffer, "%d", &value))
+ value = 0;
+ if (1 != sscanf(buffer, "%"PRId64, &value))
{
fprintf(stdout, "Invalid value !");
return;
|
use addr_is_multicast | @@ -196,7 +196,6 @@ void conf_init( void ) {
// Set default if setting was not set and validate settings
void conf_check( void ) {
- uint8_t node_id[SHA1_BIN_LENGTH];
if( gconf->af == 0 ) {
gconf->af = AF_INET;
@@ -206,11 +205,6 @@ void conf_check( void ) {
gconf->query_tld = strdup( QUERY_TLD_DEFAULT );
}
- if( gconf-... |
build: adding script to run all examples | @@ -36,3 +36,14 @@ bench:
- benchmark.json
expire_in: 1 month
+examples:
+ stage: test
+ script:
+ - make -j4 examples
+ - ls examples/*_example | sed "s#examples#./examples#g" > run_examples.sh
+ - /bin/sh run_examples.sh
+ artifacts:
+ paths:
+ - run_examples.sh
+ expire_in: 1 month
+
|
tests: call venv module directly
This avoids
ModuleNotFoundError: No module named 'virtualenv.seed.embed.via_app_data'
Type: fix | @@ -124,7 +124,7 @@ PAPI_WIPE_DIST=$(WS_ROOT)/src/vpp-api/vapi/__pycache__ \
$(PIP_TOOLS_INSTALL_DONE):
@rm -rf $(VENV_PATH)
@mkdir -p $(VENV_RUN_DIR)
- @virtualenv $(VENV_PATH) -p $(PYTHON_INTERP)
+ @$(PYTHON_INTERP) -m venv $(VENV_PATH)
# pip version pinning
@bash -c "source $(VENV_PATH)/bin/activate && \
$(PYTHON_IN... |
Plain leptidea topology flatbuffer | @@ -80,6 +80,10 @@ namespace NPrivate {
return TIterator(Value - b);
}
+ constexpr bool operator<(const TIterator& b) const noexcept {
+ return Value < b.Value;
+ }
+
private:
T Value;
};
|
kukui: Do not sink LED power on init
Enable LED color would start consuming power even if the
led brightness is zero.
TEST=make buildall
BRANCH=kukui | @@ -118,7 +118,7 @@ static void krane_led_init(void)
{
const enum mt6370_led_dim_mode dim = MT6370_LED_DIM_MODE_PWM;
const enum mt6370_led_pwm_freq freq = MT6370_LED_PWM_FREQ1000;
- mt6370_led_set_color(LED_MASK_RED | LED_MASK_GREEN | LED_MASK_BLUE);
+ mt6370_led_set_color(0);
mt6370_led_set_dim_mode(LED_RED, dim);
mt6... |
Add SceMtpIfDriver::SceMtpIf NIDs | @@ -5126,3 +5126,25 @@ modules:
scePromoterUtilityPromotePkgWithRif: 0x86641BC6
scePromoterUtilityGetState: 0xABEC74D2
scePromoterUtilityGetResult: 0x49B473F0
+ SceMtpIfDriver:
+ nid: 0xEA885947
+ libraries:
+ SceMtpIf:
+ kernel: false
+ nid: 0x5EFA4138
+ functions:
+ sceMtpIfStartPort: 0x1624280E
+ sceMtpIfWaitConnect... |
Add Markdown code format to file names | @@ -9,14 +9,14 @@ See https://github.com/contiki-ng/contiki-ng/wiki/Tutorial:-RPL-border-router
The embedded border router runs on a node. It is connected to the host via SLIP.
The host simply runs a tun gateway (`tunslip6`). To use, program a node, and
then start `tunslip6` on the host via the make command `connect-ro... |
Fixes a minor typo in script | @@ -264,10 +264,10 @@ function kokkos(){
cd $HOME/$kokkos_build_dir
ARGS="--timeout 120" update_logs cmd make test
else
- echo "Error: Raja build directory not found." >> $log_dir/raja.log 2>&1
+ echo "Error: Kokkos build directory not found." >> $log_dir/kokkos.log 2>&1
fi
else
- echo "Error: Raja make was not success... |
Set dry-run before updating options in config test harness.
This is the same order that is used in cfgLoad() so apply it here as well.
Also remove vestigial HRN_FEATURE_STORAGE define. | @@ -29,18 +29,21 @@ harnessCfgLoadRaw(unsigned int argListSize, const char *argList[])
storageHelperFree();
configParse(storageLocal(), argListSize, argList, false);
+
+ // Parse config
+ configParse(storageLocal(), argListSize, argList, false);
+
+ // Set dry-run mode for storage and logging
+ harnessLogDryRunSet(cfgO... |
Remove unistd include | @@ -101,7 +101,6 @@ bcrypt_initsalt(int log_rounds, uint8_t *salt, size_t saltbuflen)
return -1;
}
#elif defined(__GLIBC__)
- #include <unistd.h>
if (syscall(SYS_getrandom, csalt, sizeof(csalt), 0) == -1) {
return -1;
}
|
[components][net] dhcpd Support LWIP2.0 and LWIP1.4 | @@ -222,11 +222,12 @@ static void dhcpd_thread_entry(void *parameter)
{
#if (LWIP_VERSION) >= 0x02000000U
ip4_addr_t addr;
+ ip4addr_aton(DHCPD_SERVER_IP, &addr);
#else
struct ip_addr addr;
+ ipaddr_aton(DHCPD_SERVER_IP, &addr);
#endif /* LWIP_VERSION */
- ip4addr_aton(DHCPD_SERVER_IP, &addr);
DHCPD_SERVER_IPADDR0 = (n... |
Zoul: test-servo.c was defined as project multiple times | @@ -3,7 +3,7 @@ CONTIKI_PROJECT += test-bmp085-bmp180 test-motion test-rotation-sensor
CONTIKI_PROJECT += test-grove-light-sensor test-grove-loudness-sensor
CONTIKI_PROJECT += test-weather-meter test-grove-gyro test-lcd test-iaq
CONTIKI_PROJECT += test-pm10-sensor test-vac-sensor test-aac-sensor
-CONTIKI_PROJECT += tes... |
Set timeout for all tests: 10 minutes | @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
- timeout-minutes: 5
+ timeout-minutes: 10
strategy:
fail-fast: false
@@ -48,7 +48,7 @@ jobs:
build-mac:
runs-on: macos-latest
- timeout-minutes: 5
+ timeout-minutes: 10
steps:
- uses: actions/checkout@v1
@@ -71,7 +71,7 @@ jobs:
build-wi... |
fix windows debug build at MI_DEBUG=2 | @@ -45,7 +45,7 @@ static bool mi_heap_visit_pages(mi_heap_t* heap, heap_page_visitor_fun* fn, void
}
-#if MI_DEBUG>=3
+#if MI_DEBUG>=2
static bool mi_heap_page_is_valid(mi_heap_t* heap, mi_page_queue_t* pq, mi_page_t* page, void* arg1, void* arg2) {
UNUSED(arg1);
UNUSED(arg2);
|
sosreport: cast data type | @@ -294,7 +294,7 @@ int flb_sosreport(struct flb_config *config)
ins_out = mk_list_entry(head, struct flb_output_instance, _head);
printf("[OUTPUT] Instance\n");
printf(" Name\t\t%s (%s, id=%" PRIu64 ")\n", ins_out->name, ins_out->p->name,
- ins_out->id);
+ (uint64_t) ins_out->id);
printf(" Match\t\t%s\n", ins_out->mat... |
workflow/unlock: remove use of workflow_stack
`workflow_unlock_and_handle_error()` is only used in password_check(),
which is blocking. So an async status display here does nothing. It
might be a leftover from when this function was called when unlocking
in u2f, where async is very important; but u2f is already using r... | #include <hardfault.h>
#include <keystore.h>
#include <string.h>
-#include <ui/workflow_stack.h>
#include <stdio.h>
@@ -41,7 +40,7 @@ keystore_error_t workflow_unlock_and_handle_error(const char* password)
} else {
snprintf(msg, sizeof(msg), "Wrong password\n%d tries remain", remaining_attempts);
}
- workflow_stack_sta... |
revert part of "ignore compiler warnings"; fixed on master | @@ -141,7 +141,7 @@ endforeach
# For some reason, the test for -Wno-foo always succeeds with gcc, even if the
# option is not supported. Hence, check for -Wfoo instead.
-foreach a : ['non-virtual-dtor', 'missing-field-initializers', 'format-truncation', 'pointer-arith', 'unused-variable']
+foreach a : ['non-virtual-dto... |
admin/ganglia: revert to base distro rrdtool | @@ -42,7 +42,7 @@ Patch4: disk_monitoring.patch
%if 0%{?systemd}
BuildRequires: systemd
%endif
-BuildRequires: rrdtool-devel > 1.4.7
+BuildRequires: rrdtool-devel
BuildRequires: libpng-devel
BuildRequires: libart_lgpl-devel
BuildRequires: libconfuse-devel
@@ -78,7 +78,7 @@ well-defined XML format.
Summary: Ganglia Web ... |
Move utf8proc to feature in Vcpkg manifest. | "license": "BSD-3-Clause",
"dependencies": [
"stb",
- "utf8proc",
{
"name": "vcpkg-cmake",
"host": true
"png",
"sdl",
"tests",
+ "unicode",
"zlib"
],
"features": {
}
]
},
+ "unicode": {
+ "description": "Support for interpreting non-ASCII characters. Required for text printing functions",
+ "dependencies": [
+ "utf8pro... |
Remove incorrect constant-time claim from doc for mbedtls_mpi_core_add_if() | @@ -236,8 +236,8 @@ mbedtls_mpi_uint mbedtls_mpi_core_sub( mbedtls_mpi_uint *X,
size_t limbs );
/**
- * \brief Constant-time conditional addition of two known-size large unsigned
- * integers, returning the carry.
+ * \brief Conditional addition of two known-size large unsigned integers,
+ * returning the carry.
*
* Fu... |
ec: Document how to use twister for coverage
Replace zmake test with ./twister in the documentation.
BRANCH=None
TEST=Ran commands
Tested-by: Jeremy Bettis | @@ -38,31 +38,29 @@ appear to be caused in part by using relative paths instead of absolute paths.)
To build the Zephyr unit tests for code coverage run:
-`zmake test --host-tests-only --coverage`
-`genhtml -q -o build/zephyr/coverage_rpt/ build/zephyr/all_tests.info`
+`./twister -v -i --coverage -p native_posix -p uni... |
stm32/powerctrl: Don't configure clocks if already at desired frequency.
Configuring clocks is a critical operation and is best to avoid when
possible. If the clocks really need to be reset to the same values then
one can pass in a slightly higher value, eg Hz to get 168MHz. | @@ -128,6 +128,14 @@ STATIC uint32_t calc_apb_div(uint32_t wanted_div) {
}
int powerctrl_set_sysclk(uint32_t sysclk, uint32_t ahb, uint32_t apb1, uint32_t apb2) {
+ // Return straightaway if the clocks are already at the desired frequency
+ if (sysclk == HAL_RCC_GetSysClockFreq()
+ && ahb == HAL_RCC_GetHCLKFreq()
+ && ... |
hv: vlapic: minor fix about dereference vcpu from vlapic
Since vcpu if remove from vlapic, we could not dereference it directly. | @@ -1689,8 +1689,8 @@ vlapic_reset(struct acrn_vlapic *vlapic, const struct acrn_apicv_ops *ops, enum
}
/**
- * @pre vlapic-...->vm != NULL
- * @pre vlapic-...->vcpu->vcpu_id < MAX_VCPUS_PER_VM
+ * @pre vlapic2vcpu(vlapic)->vm != NULL
+ * @pre vlapic2vcpu(vlapic)->vcpu_id < MAX_VCPUS_PER_VM
*/
void
vlapic_init(struct a... |
usb mux: add comment describing mux_state_t
It is a combination of flags and also represents typec_mux enum.
BRANCH=none
TEST=none | #include "usb_charge.h"
#include "usb_pd.h"
-/* USB-C mux state */
+/*
+ * USB-C mux state
+ *
+ * A bitwise combination of the USB_PD_MUX_* flags.
+ * The bottom 2 bits also correspond to the typec_mux enum type.
+ */
typedef uint8_t mux_state_t;
/* Packing and Unpacking defines used with CONFIG_USB_PD_TCPM_TCPCI_MUX_... |
Fix AppVeyor/VC build failure
..\test\asn1_internal_test.c(96): warning C4113: 'int (__cdecl *)()'
differs in parameter lists from 'int (__cdecl *)(void)' | #include "../crypto/asn1/tbl_standard.h"
-static int test_tbl_standard()
+static int test_tbl_standard(void)
{
const ASN1_STRING_TABLE *tmp;
int last_nid = -1;
@@ -62,7 +62,7 @@ static int test_tbl_standard()
#include "internal/asn1_int.h"
#include "../crypto/asn1/standard_methods.h"
-static int test_standard_methods()... |
naive: add time for next L2 batch to state | :: finding: raw-tx-hash reverse lookup for sending map
:: next-nonce: next l1 nonce to use
:: nas: predicted naive state
+ :: next-batch: when then next l2 batch will be sent
::
pending=(list pend-tx)
::
finding=(map keccak $?(%confirmed %failed l1-tx-pointer))
next-nonce=@ud
nas=^state:naive
+ next-batch=time
::
:: pk... |
circle bugs * 2 sir | @@ -83,7 +83,17 @@ for x in range(len(my_info)):
start_index = int(my_info[x].time/1000 * rate)
- if x < len(beatmap_info) and "slider" in beatmap_info[x]["type"] and beatmap_info[x]["repeated"] > 1:
+
+ if x < len(beatmap_info) and "circle" in beatmap_info[x]["type"]:
+ if my_info[x].hitresult == None:
+ continue
+ el... |
Add `make clean` rule to makefile | CPPFLAGS:=-I./lua/src
CFLAGS:=--std=c99 -g -Wall -O2 -fPIC -shared
-.PHONY: all lua
+.PHONY: all lua clean
all: lua runtime/tcore.o
@@ -10,3 +10,7 @@ lua:
runtime/tcore.o: runtime/tcore.c runtime/tcore.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
+
+clean:
+ cd lua/src; make clean
+ rm -f ./runtime/*.o
|
[core] chunkqueue perf: skip opening 0-length file | @@ -473,8 +473,10 @@ void http_response_send_file (server *srv, connection *con, buffer *path) {
/*(Note: O_NOFOLLOW affects only the final path segment,
* the target file, not any intermediate symlinks along path)*/
- const int fd = fdevent_open_cloexec(path->ptr, con->conf.follow_symlink, O_RDONLY, 0);
- if (fd < 0) ... |
Implement SHA handler in sample app. | @@ -389,7 +389,10 @@ int main(int argc, char **argv)
/*
* Enable SHA-1
*/
+#if 0
+//FIXME: this algorithm is un-tested. Waiting on server implementation to test it
rv = acvp_enable_hash_cap(ctx, ACVP_SHA256, &app_sha_handler);
+#endif
/*
* Now that we have a test session, we register with
@@ -854,6 +857,54 @@ static AC... |
external/dhcpc: add additional log to dhcpc
add additional log to dhcpc | @@ -140,14 +140,14 @@ void dhcp_client_stop(const char *intf)
return;
}
-int dhcp_client_sethostname(const char *intf, const char *hostname)
+
{
int ret = -1;
struct req_lwip_data req;
int sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if (sockfd < 0) {
- printf("socket() failed with errno: %d\n", errno);
+ printf("socket() ... |
doc: compile
small corrections/clarifications/beautifications | @@ -157,8 +157,8 @@ same fashion for `BINDINGS` and `TOOLS`.
Read about available plugins [here](/src/plugins/).
Because the core of elektra is minimal, plugins are needed to
-actually read and write to configuration files (storage plugins),
-commit the changes (resolver plugin, also takes care about how
+actually read... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.