message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Let wifi init not depend on INVOCATION_ID from systemd (not available in Jessie) | @@ -261,14 +261,6 @@ void DeRestPluginPrivate::initWiFi()
return;
}
- // deCONZ is startet from a systemd unit?
- // -- deconz.service or deconz-gui.service
- QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
- if (!env.contains(QLatin1String("INVOCATION_ID")))
- {
- return;
- }
-
if (gwWifiState == W... |
do not delay eager commit for the main thread | @@ -579,7 +579,8 @@ static mi_segment_t* mi_segment_init(mi_segment_t* segment, size_t required, mi_
mi_assert_internal(segment_size >= required);
// Initialize parameters
- const bool eager_delayed = (page_kind <= MI_PAGE_MEDIUM && tld->count < (size_t)mi_option_get(mi_option_eager_commit_delay));
+ const bool eager_d... |
Add plugin support for header column totals | @@ -215,6 +215,20 @@ BOOLEAN PhCmForwardMessage(
plugin = column->Plugin;
}
break;
+ case TreeNewGetHeaderText:
+ {
+ PPH_TREENEW_COLUMN tlColumn = Parameter1;
+ PPH_CM_COLUMN column;
+
+ if (tlColumn->Id < Manager->MinId)
+ return FALSE;
+
+ column = tlColumn->Context;
+ pluginMessage.SubId = column->SubId;
+ pluginMe... |
[kernel] allow unlink() calls outside updateInteractions() to reset OSNS matrices
motivation: removing interactions via collision manager removeBody()
(i.e. remove contact interactions) results in unlink() calls outside
of updateInteractions() that did not trigger updateIndexSets(),
leaving bad references in indexSet(1... | @@ -468,8 +468,7 @@ void Simulation::unlink(SP::Interaction inter)
void Simulation::updateInteractions()
{
// Update interactions if a manager was provided
- if (_interman) {
- _linkOrUnlink = false;
+ if (_interman)
_interman->updateInteractions(shared_from_this());
if (_linkOrUnlink) {
@@ -479,15 +478,14 @@ void Simu... |
[doc] create-mime.conf.pl improve case handling
make create-mime.conf.pl more resilient to questionable edits
to /etc/mime.types
non-vnd.* subtype takes precedence over vnd.* subtype
(type/subtype, e.g. text/plain)
x-ref:
"lighttpd: does not start with media-types 1.1.0" | @@ -120,7 +120,6 @@ sub add {
}
# non-vnd.* subtype wins over vnd.* subtype
- if ($type eq $have_type) {
my $have_vnd = ($have_subtype =~ /^vnd\./);
if (($subtype =~ /^vnd\./) ^ $have_vnd) {
if ($have_vnd) {
@@ -130,7 +129,6 @@ sub add {
return; # ignore
}
}
- }
print STDERR "Duplicate mimetype: '${extension}' => '${mi... |
Fix precision of mips dsdot | @@ -41,8 +41,11 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y)
while(i < n)
{
-
+#if defined(DSDOT)
+ dot += (double)(y[iy] * (double)x[ix] ;
+#else
dot += y[iy] * x[ix];
+#endif
ix += inc_x ;
iy += inc_y ;
i++ ;
|
[cmake] make it possible to compile an individual component as static | @@ -91,11 +91,13 @@ macro(LIBRARY_PROJECT_SETUP)
# and for headers of external libraries
include_directories(${SICONOS_INCLUDE_DIRECTORIES})
- if(NOT BUILD_SHARED_LIBS)
- add_library(${COMPONENT} STATIC ${${COMPONENT}_SRCS})
- else()
+ if(BUILD_SHARED_LIBS AND NOT BUILD_${COMPONENT}_STATIC)
add_library(${COMPONENT} SHA... |
Added verbose setting for dis | #include <stdlib.h>
#include <string.h>
-#define DEBUG_TB(...) SV_VERBOSE(1000, __VA_ARGS__)
+#define DEBUG_TB(...) \
+ SV_VERBOSE(((Global_Disambiguator_data_t *)d->so->ctx->disambiguator_data)->verbosity, __VA_ARGS__)
//#define DEBUG_TB(...)
/**
* The lighthouses go in the following order:
@@ -163,10 +164,12 @@ typed... |
roller: don't crash if nonce not in queue | :: print error if there was one
::
~? ?=(%| -.result) [dap.bowl %send-error +.p.result]
+ :: if this nonce was removed from the queue by a
+ :: previous resend-with-higher-gas thread, it's done
+ ::
+ ?. (has:ors:dice sending [address nonce])
+ ~? lverb [dap.bowl %done-sending [address nonce]]
+ `state
=/ =send-tx (got... |
extconf: do not build libgit2 tests or CLI
It takes extra time for something we're not going to use and in at least one
case it looks like the CLI might have some issues linking correctly. | @@ -14,6 +14,8 @@ $CFLAGS << " -O3" unless $CFLAGS[/-O\d/]
$CFLAGS << " -Wall -Wno-comment"
cmake_flags = [ ENV["CMAKE_FLAGS"] ]
+cmake_flags << "-DBUILD_CLI=OFF"
+cmake_flags << "-DBUILD_TESTS=OFF"
cmake_flags << "-DREGEX_BACKEND=builtin"
cmake_flags << "-DUSE_SHA1DC=ON" if with_config("sha1dc")
cmake_flags << "-DUSE_... |
change macros to be more prover-friendly | @@ -20,12 +20,12 @@ protoop_id_t PROTOOP_ID_FEC_GENERATE_REPAIR_SYMBOLS = { .id = "fec_generate_repa
#define DEFAULT_FEC_SCHEME "xor"
#define for_each_source_symbol(fb, ____ss) \
- for (int ____i = 0, ____keep = 1; ____keep && ____i < fb->total_source_symbols; ____i++, ____keep = !____keep ) \
- for (____ss = fb->sourc... |
baseboard/honeybuns/usb_pd_policy.c: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | @@ -469,7 +469,8 @@ static int svdm_response_svids(int port, uint32_t *payload)
const uint32_t vdo_dp_modes[1] = {
VDO_MODE_DP(/* Must support C and E. D is required for 2 lanes */
- MODE_DP_PIN_C | MODE_DP_PIN_D | MODE_DP_PIN_E, 0, /* DFP pin
+ MODE_DP_PIN_C | MODE_DP_PIN_D | MODE_DP_PIN_E,
+ 0, /* DFP pin
cfg
support... |
Release: Update Yan LR error message | @@ -107,10 +107,10 @@ The following section lists news about the [modules](https://www.libelektra.org/
the plugin currently prints an error message that looks like this:
```
- config.yaml:2:1: mismatched input '- ' expecting MAP_END
+ config.yaml:2:1: mismatched input '- ' expecting end of map
- element 2 # Incorrect I... |
option to turn of consistency check | @@ -496,6 +496,7 @@ int main_twixread(int argc, char* argv[argc])
bool linectr = false;
bool partctr = false;
bool mpi = false;
+ bool check_read = true;
long dims[DIMS];
md_singleton_dims(DIMS, dims);
@@ -515,6 +516,7 @@ int main_twixread(int argc, char* argv[argc])
OPT_SET('L', &linectr, "use linectr offset"),
OPT_SE... |
OpenCanopy: Fix right-click issue | @@ -110,12 +110,7 @@ InternalAppleEventNotification (
Context = NotifyContext;
- //
- // Should not happen but just in case.
- //
- if ((Information->EventType & APPLE_ALL_MOUSE_EVENTS) == 0) {
- return;
- }
+ ASSERT ((Information->EventType & APPLE_ALL_MOUSE_EVENTS) != 0);
EventType = Information->EventData.PointerEve... |
Remove the dependency of transport_interface.h from BLE. | @@ -18,14 +18,6 @@ afr_set_lib_metadata(IS_VISIBLE "true")
set(src_dir "${CMAKE_CURRENT_LIST_DIR}/src")
set(inc_dir "${CMAKE_CURRENT_LIST_DIR}/include")
set(test_dir "${CMAKE_CURRENT_LIST_DIR}/test")
-if( EXISTS ${AFR_MODULES_DIR}/coreMQTT/source )
- set(transport_interface_dir "${AFR_MODULES_DIR}/coreMQTT/source/inter... |
downstream: retain the original event mask when injecting the wakeup
event to prevent the subsequent `_mk_event_del` call from trying to
delete the wrong type of event from the underlying event loop. | @@ -451,7 +451,7 @@ int flb_downstream_conn_timeouts(struct mk_list *list)
if (connection->event.status != MK_EVENT_NONE) {
mk_event_inject(connection->evl,
&connection->event,
- MK_EVENT_READ | MK_EVENT_WRITE,
+ connection->event.mask,
FLB_TRUE);
}
|
Changelog note for PR Declare lz_enter_rr_into_zone() static,
it's only used in this file, by fobser. | +20 March 2020: George
+ - Merge PR #198 from fobser: Declare lz_enter_rr_into_zone() static, it's
+ only used in this file.
+
20 March 2020: Wouter
- Merge PR #197 from fobser: Make log_ident_revert_to_default() a
proper prototype.
|
Add default message error level in configuration when no CMAKE_BUILD_TYPE has been defined. | @@ -219,6 +219,8 @@ function(configurations_write config_dir config_path)
set(CONFIGURATION_GLOBAL "${CONFIGURATION_GLOBAL}\n\t\"log_level\":\"Debug\"")
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
set(CONFIGURATION_GLOBAL "${CONFIGURATION_GLOBAL}\n\t\"log_level\":\"Error\"")
+ else()
+ set(CONFIGURATION_GLOBAL "${CONFI... |
Benchmarks: Improve formatting of code | @@ -14,9 +14,11 @@ and run the same benchmarks again.
For running benchmarks you can use on Unix:
+```sh
make benchmark_<filename>_callgrind
+```
-which will run the callgrind tool of Valgrind on it.
+which will run the `callgrind` tool of Valgrind on it.
The old STATISTICS file is no longer used and will be
removed wi... |
kiln: bump %base first | vats
:: +resume: restart tracking from upstream
::
+ :: TODO: check whether kelvin is legit
+ ::
++ resume
|= lac=desk
^+ vats
++ bump-many
|= [kel=weft live=(set desk)]
^+ kiln
- =/ liv ~(tap in live)
+ :: ensure %base is always reloaded first
+/ ::
+ =/ liv
+ %+ sort ~(tap in live)
+ |= [a=desk b=desk]
+ ^- ?
+ ?: =(... |
bisect index error test. | @@ -301,6 +301,37 @@ void bisect_greater_than_last_control_point(CuTest *tc)
TS_END_TRY
}
+void bisect_invalid_index(CuTest *tc)
+{
+ tsBSpline spline = ts_bspline_init();
+ tsDeBoorNet net = ts_deboornet_init();
+ tsError err;
+ tsStatus status;
+
+ TS_TRY(try, status.code, &status)
+ /* Create arbitrary spline. */
+ ... |
BugID:17956759: Reset supports new version of event API. | #include <string.h>
#include "iot_export.h"
#include "iotx_utils.h"
+#include "iotx_system.h"
#include "awss_reset.h"
#if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */
@@ -43,7 +44,13 @@ void awss_report_reset_reply(void *pcontext, void *pclient, void *mesg)
HAL_Timer_Delete(report_reset_timer);
r... |
api: change callback prototype in test | @@ -72,10 +72,11 @@ static void signal_init()
signal(SIGTERM, &signal_handler);
}
-static void cb_queue_message(mk_mq_t *queue, void *data, size_t size)
+static void cb_queue_message(mk_mq_t *queue, void *data, size_t size, void *ctx)
{
size_t i;
char *buf;
+ (void) ctx;
(void) queue;
printf("=== cb queue message === \... |
proper initialization order __FORCE_COMMIT__ | @@ -145,7 +145,6 @@ namespace {
TSeedStream SS;
inline TDefaultTraits() {
- RNGInitAtForkHandlers();
Reset();
}
@@ -162,7 +161,11 @@ namespace {
}
static inline TDefaultTraits& Instance() {
- return *SingletonWithPriority<TDefaultTraits, 0>();
+ auto res = SingletonWithPriority<TDefaultTraits, 0>();
+
+ RNGInitAtForkHa... |
sort_sub_list(): fix memory leak | @@ -296,8 +296,14 @@ sort_sub_list (GHolder * h, GSort sort) {
add_sub_item_back (sub_list, h->module, arr[k].metrics);
h->items[i].sub_list = sub_list;
+ sub_list = NULL;
}
+
free (arr);
+ if (sub_list) {
+ delete_sub_list (sub_list);
+ sub_list = NULL;
+ }
}
}
|
Fix static code analysis warning | @@ -336,7 +336,7 @@ int byteskip_cid(bytestream * s)
int bytewrite_cstr(bytestream * s, const char * cstr)
{
- size_t l_cstr = cstr != NULL ? strlen(cstr) : 0;
+ size_t l_cstr = strlen(cstr);
int ret = bytewrite_vint(s, l_cstr);
ret |= bytewrite_buffer(s, cstr, l_cstr);
return ret;
|
[platform][qemu-virt-arm] bootstrap pci from the FDT
Look up the ECAM information out of the device tree and bootstrap the
pci bus with it. | * https://opensource.org/licenses/MIT
*/
#include <arch.h>
+#include <inttypes.h>
#include <lk/err.h>
#include <lk/debug.h>
#include <lk/trace.h>
+#include <dev/bus/pci.h>
#include <dev/interrupt/arm_gic.h>
#include <dev/timer/arm_generic.h>
#include <dev/uart.h>
@@ -98,6 +100,23 @@ static void cpucallback(uint64_t id,... |
also write not replaycount checked handshakes to cap file, because state of the art cracker are able to do nonce-error-corrections | @@ -198,7 +198,7 @@ int p;
for(p = akthccapset +1; p < hccapsets; p++)
{
zeigertest++;
- if((memcmp(zeigertest->mac_ap.addr, zeiger->mac_ap.addr, 6) == 0) && (memcmp(zeigertest->mac_sta.addr, zeiger->mac_sta.addr, 6) == 0))
+ if((memcmp(zeigertest->mac_ap.addr, zeiger->mac_ap.addr, 6) == 0) && (memcmp(zeigertest->mac_s... |
Update pq harness to play nicely with variable LSNs. | @@ -409,10 +409,10 @@ Macros for defining groups of functions that implement various queries and comma
sessionParam, walNameParam, lsnNameParam, targetLsnParam, targetReachedParam, replayLsnParam) \
{.session = sessionParam, \
.function = HRNPQ_SENDQUERY, \
- .param = \
+ .param = strPtr(strNewFmt( \
"[\"select replayL... |
readthedocs: update copyright years | @@ -21,7 +21,7 @@ sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = u'Contiki-NG'
-copyright = u'2018, Contiki-NG maintainers and contributors'
+copyright = u'2018-2022, Contiki-NG maintainers and contributors'
author = u'Contiki-NG maintai... |
No Jira ticket. Fix compile error for bletest. | @@ -115,7 +115,7 @@ bletest_send_ltk_req_reply(uint16_t handle)
return -1;
}
- if (le16toh(ack_conn_handle) != conn_handle) {
+ if (le16toh(ack_conn_handle) != handle) {
return -1;
}
return 0;
|
bugid:24107752:fix comments for krhino | @@ -111,9 +111,7 @@ kstat_t krhino_event_get(kevent_t *event, uint32_t flags, uint8_t opt,
/**
* Set a event
* opt = RHINO_AND: Clear some bit in 'event->flags', 'event->flags' &= 'flags'.
- * opt = RHINO_AND_CLEAR: Same as 'RHINO_AND'
* opt = RHINO_OR: Set some bit in 'event->flags', 'event->flags' |= 'flags', may inv... |
cmake: keep 'make test-debug' on autotools for now | @@ -21,7 +21,7 @@ STARTUP_DIR?=$(PWD)
MACHINE=$(shell uname -m)
SUDO?=sudo
-ifeq ($(findstring $(MAKECMDGOALS),verify pkg-deb pkg-rpm test),)
+ifeq ($(findstring $(MAKECMDGOALS),verify pkg-deb pkg-rpm test test-debug),)
export vpp_uses_cmake?=yes
endif
|
docs: edits for msr driver load | \begin{center}
\begin{tcolorbox}[]
\small
-By default, OpenHPC ships the Likwid performance analysis toolkit. This package
-requires the MSR driver, which is not enabled on SUSE distributions.
+OpenHPC includes the Likwid performance analysis toolkit in the {\em perf-tools} meta-package. This package
+requires the MSR ... |
Add some extra output to see clang --version, amdgcn/bitcode dir | # run_epsdb_aomp_test.sh
#
+set -x
export AOMP_GPU=`$AOMP/bin/mygpu`
echo AOMP_GPU = $AOMP_GPU
export EXTRA_OMP_FLAGS=--rocm-path=$AOMP/
+$AOMP/bin/clang --version
+ls $AOMP/amdgcn/bitcode
+
+set +x
cd ../test/smoke
EPSDB=1 ./check_smoke.sh
|
unix/modos: Support larger integer range in uos.stat fields.
On 32-bit builds these stat fields will overflow a small-int, so use
mp_obj_new_int_from_uint to construct the int object. | @@ -63,15 +63,15 @@ STATIC mp_obj_t mod_os_stat(size_t n_args, const mp_obj_t *args) {
mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(10, NULL));
t->items[0] = MP_OBJ_NEW_SMALL_INT(sb.st_mode);
- t->items[1] = MP_OBJ_NEW_SMALL_INT(sb.st_ino);
- t->items[2] = MP_OBJ_NEW_SMALL_INT(sb.st_dev);
- t->items[3] = MP_OBJ_N... |
details-gackground typo fix | @@ -53,7 +53,7 @@ The following sizing options can also be set:
*message-padding=<padding>*
Set the padding for the message.
-*details-gackground=<color>*
+*details-background=<color>*
The background color for the details.
*details-border-size=<size>*
|
Changelog note for
Merge PR ifdef RLIMIT_AS in recently added check. | +10 May 2021: Wouter
+ - Merge PR #487: ifdef RLIMIT_AS in recently added check.
+
7 May 2021: Wouter
- Fix #485: Unbound occasionally reports broken stats.
- Add ./configure --with-deprecate-rsa-1024 that turns off RSA 1024.
|
input: on marking buffer write, pass instance context | @@ -454,7 +454,9 @@ static inline void flb_input_buf_write_end(struct flb_input_instance *i)
/* Call the filter handler */
buf = i->mp_sbuf.data + i->mp_buf_write_size;
- flb_filter_do(buf, bytes, i->tag, i->tag_len, i->config);
+ flb_filter_do(i,
+ buf, bytes,
+ i->tag, i->tag_len, i->config);
}
static inline void FLB... |
Net: Implement DNS question sending | @@ -311,6 +311,53 @@ void dns_receive(packet_info_t* packet_info, dns_packet_t* packet, uint32_t pack
}
}
+void dns_send(void) {
+ dns_packet_t header = {0};
+ header.identifier = htons(0x4546);
+ /*
+ // TODO(PT): Might need to flip the order of this whole bitfield?
+ header.query_response_flag = 0;
+ header.opcode = ... |
inprove USER_PROLOG handling | @@ -40,10 +40,6 @@ cat > $TEMPFILE << EndOfMessage
#define __BUILDINFO_H__
EndOfMessage
-if [ -n "$USER_PROLOG" ]; then
- USER_PROLOG_LINE="$USER_PROLOG"\\n
-fi
-
echo "#define USER_PROLOG \""$USER_PROLOG"\"" >> $TEMPFILE
echo "#define BUILDINFO_BRANCH \""$BRANCH"\"" >> $TEMPFILE
echo "#define BUILDINFO_COMMIT_ID \""$C... |
INI: Simplify function `isSectionKey` | @@ -436,11 +436,7 @@ static int iniKeyToElektraKey (void * vhandle, const char * section, const char
static short isSectionKey (Key * key)
{
- if (!key) return 0;
- if (keyGetMeta (key, "internal/ini/section"))
- return 1;
- else
- return 0;
+ return key && keyGetMeta (key, "internal/ini/section");
}
static int iniSect... |
fixed ptk buffer | @@ -259,7 +259,7 @@ uint8_t pmk[32];
uint8_t pmkin[32];
uint8_t pkedata[102];
uint8_t pkedata_prf[2 + 98 + 2];
-uint8_t ptk[64];
+uint8_t ptk[128];
uint8_t mic[16];
if(hex2bin(pmkname, pmkin, 32) != TRUE)
@@ -267,6 +267,7 @@ if(hex2bin(pmkname, pmkin, 32) != TRUE)
fprintf(stderr, "error wrong plainmasterkey value (allo... |
chip/nrf51/gpio.c: Actually check the flag (instead of == 0)
Found by Coverity Scan
BRANCH=none
TEST=none
Tested-by: Patrick Georgi | @@ -257,7 +257,7 @@ int gpio_disable_interrupt(enum gpio_signal signal)
return EC_ERROR_INVAL;
/* If it's not shared, use INT0-INT3, otherwise use PORT. */
- if (!(g->flags && GPIO_INT_SHARED)) {
+ if (!(g->flags & GPIO_INT_SHARED)) {
for (i = 0; i < NRF51_GPIOTE_IN_COUNT; i++) {
/* Remove matching handler. */
if (gpio... |
METADATA.ini: add range to check/type | @@ -380,7 +380,7 @@ type= enum
FSType
string
status= implemented
-usedby/plugin= type
+usedby/plugin= type, range
description= defines the type of the value, as specified in CORBA
(except of 2: wchar, wstring; and 4 additions: any, empty, FSType, string).
example = any
@@ -405,11 +405,6 @@ usedby/plugin= range
descript... |
libcupsfilters: When normalizing printer model name replace '+' by "plus" | @@ -1100,6 +1100,16 @@ ieee1284NormalizeMakeAndModel(
*bufptr = sepchr;
rightsidemoved += 1;
}
+ else if (*bufptr == '+') /* Model names sometimes differ only by a '+' */
+ {
+ /* Replace with the word "plus" */
+ moverightpart(buffer, bufsize, bufptr, 3);
+ *bufptr = 'p';
+ *(bufptr + 1) = 'l';
+ *(bufptr + 2) = 'u';
... |
Simplify d2h_slow_copy | #include <omp.h>
-#include <math.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <time.h>
#include <chrono>
+#include <memory>
#define N 30000
@@ -42,7 +40,7 @@ struct timer {
};
int main() {
- float *arr = (float*)malloc(sizeof(float) * N * N);
+ int *arr = new int[N*N];
timer stopwatch("main()");
#pragma omp tar... |
finished migartion from -m 15800 to -m 2500 and -m 2501 | @@ -86,7 +86,12 @@ if(((hcxrecord->keyver & 0x3) == 1) || ((hcxrecord->keyver & 0x3) == 2))
}
else if((hcxrecord->keyver & 0x3) == 3)
{
- generatepkeprf(hcxrecord, pke_ptr);
+ pke_ptr[0] = 1;
+ pke_ptr[1] = 0;
+ pke_ptr[100] = 0x80;
+ pke_ptr[101] = 1;
+
+ generatepkeprf(hcxrecord, pke_ptr +2);
}
else
{
|
analysis workflow, add arm64 iOS test. | @@ -49,12 +49,21 @@ jobs:
# os: ubuntu-latest
# config: 'CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address" --disable-flto --disable-static'
# make_test: "yes"
- - name: Apple iPhone on iOS, armv7
+# - name: Apple iPhone on iOS, armv7
+# os: macos-latest
+# AUTOTOOLS_HOST: armv7-apple-ios
+# OPENSSL_HOST: ios-cross
+# IOS_SD... |
CDRIVER-2000 Disable GSSAPI tests for now | @@ -6346,8 +6346,7 @@ buildvariants:
- "debug-compile"
- "debug-compile-nosasl-openssl"
- ".debug-compile !.sspi .nossl"
- - ".authentication-tests .sasl"
- #- ".authentication-tests !.ssl" FIXME: Kerberos authentication doesn't seem to work
+ - ".authentication-tests .nosasl !.ssl" # Revert me: CDRIVER-2000
- ".authen... |
common/timer.c: Format with clang-format
BRANCH=none
TEST=none | #ifdef CONFIG_ZEPHYR
#include <zephyr/kernel.h> /* For k_usleep() */
#else
-extern __error("k_usleep() should only be called from Zephyr code")
-int32_t k_usleep(int32_t);
+extern __error("k_usleep() should only be called from Zephyr code") int32_t
+ k_usleep(int32_t);
#endif /* CONFIG_ZEPHYR */
#ifdef CONFIG_COMMON_RU... |
fix toggleoverlay | @@ -2177,12 +2177,12 @@ motionnotify(XEvent *e)
}
// toggle overlay gesture
- if (ev->y_root == 0 && ev->x_root >= selmon->mx + selmon->ww + - 20 - getsystraywidth()) {
+ if (ev->y_root == 0 && ev->x_root >= selmon->mx + selmon->ww - 20 - getsystraywidth()) {
if (selmon->gesture != 11) {
selmon->gesture = 11;
setoverla... |
Configurations/15-android.conf: detect NDK llvm-ar.
This excluses user from additional PATH adjustments in case NDK has
llvm-ar. | . "/$tritools-4.9/prebuilt/$host";
$user{CC} = "clang" if ($user{CC} !~ m|clang|);
$user{CROSS_COMPILE} = undef;
+ if (which("llvm-ar") =~ m|^$ndk/.*/prebuilt/([^/]+)/|) {
+ $user{AR} = "llvm-ar";
+ $user{ARFLAGS} = [ "rs" ];
+ $user{RANLIB} = ":";
+ }
} elsif (-f "$ndk/AndroidVersion.txt") { #"standalone toolchain"
my... |
fix typo in `installation.rst` | @@ -22,7 +22,7 @@ Downloading a pre-compiled binary
.. note::
1. The following approach will only work for Linux (non-OSX) systems.
-Starting with release 2.28.0, wqe provide statically-linked binaries thast should work
+Starting with release 2.28.0, we provide statically-linked binaries thast should work
right away on... |
WIP: ASM Update Actor set initial frame | @@ -39,10 +39,6 @@ _UpdateActors_b::
handle_pinned:
- ; load pos y push to stack
- ; load pos x push to stack
- ; jp move_sprite_pair
-
; Load current pos in de (only lowest bytes)
pop hl
push hl
@@ -141,6 +137,33 @@ _UpdateActors_b::
handle_rerender:
+ pop hl
+ push hl
+
+ ; Get sprite index into c
+ ld a, #9
+ _add_a... |
Add special cases for %da and %ta to +slaw
+slav calls +slaw with %da and %ta in several places across multiple
vanes. This refactors the date parsing code into its own arm so it
can be called from +slaw. | ++ crub
~+
;~ pose
- %+ cook
- |=(det/date `dime`[%da (year det)])
- ;~ plug
- %+ cook
- |=({a/@ b/?} [b a])
- ;~(plug dim:ag ;~(pose (cold | hep) (easy &)))
- ;~(pfix dot mot:ag) :: month
- ;~(pfix dot dip:ag) :: day
- ;~ pose
- ;~ pfix
- ;~(plug dot dot)
- ;~ plug
- dum:ag
- ;~(pfix dot dum:ag)
- ;~(pfix dot dum:ag)
... |
Compare `FOR` ranges to Python's `range` | @@ -1734,7 +1734,9 @@ N = 256
.Pp
You can customize the range of
.Ic FOR
-values:
+values, similarly to Python's
+.Ql range
+function:
.Bl -column "FOR V, start, stop, step"
.It Sy Code Ta Sy Range
.It Ic FOR Ar V , stop Ta Ar V No increments from 0 to Ar stop
|
Remove duplicate uart0 node. | status = "okay";
};
-&uart0 {
- compatible = "nordic,nrf-uart";
- current-speed = <115200>;
- tx-pin = <6>;
- rx-pin = <8>;
-};
-
&i2c0 {
compatible = "nordic,nrf-twi";
sda-pin = <15>;
|
out_syslog: adjust test formatter callback params | @@ -940,6 +940,7 @@ static int cb_syslog_format_test(struct flb_config *config,
struct flb_input_instance *ins,
void *plugin_context,
void *flush_ctx,
+ int event_type,
const char *tag, int tag_len,
const void *data, size_t bytes,
void **out_data, size_t *out_size)
|
feat(common.h): add u64_bitmask_t | @@ -16,6 +16,7 @@ extern "C" {
* its purpose is to facilitate identification
* and "intent of use".
* @{ */
+
/**
* @brief Unix time in milliseconds
*/
@@ -26,6 +27,15 @@ typedef uint64_t u64_unix_ms_t;
* Used in APIs such as Twitter and Discord for their unique IDs
*/
typedef uint64_t u64_snowflake_t;
+
+/**
+ * @brie... |
apps/pkcs12: Do not assume null termination of ASN1_UTF8STRING | @@ -1142,7 +1142,8 @@ void print_attribute(BIO *out, const ASN1_TYPE *av)
break;
case V_ASN1_UTF8STRING:
- BIO_printf(out, "%s\n", av->value.utf8string->data);
+ BIO_printf(out, "%.*s\n", av->value.utf8string->length,
+ av->value.utf8string->data);
break;
case V_ASN1_OCTET_STRING:
|
Add patch functionality to ldscope
allows explicitly patching 'libscope.so'
don't patch libscope.so if `lib/ld-musl-*.so.1` is present but
the default loader is `ld-linux.so` e.g.: Ubuntu with installed
`musl` package | @@ -114,11 +114,10 @@ setEnvVariable(char *env, char *value)
// modify NEEDED entries in libscope.so to avoid dependencies
static int
-set_library(void)
+set_library(const char* libpath)
{
int i, fd, found, name;
struct stat sbuf;
- const char *libpath;
char *buf;
Elf64_Ehdr *elf;
Elf64_Shdr *sections;
@@ -127,7 +126,8... |
os/arch/arm/src/stm32l4/stm32l4_idle.c: align to STM coding rule | @@ -224,8 +224,7 @@ static void up_idlepm(void)
#ifdef CONFIG_STM32L4_RTC
/* Read RTC time after wakeup */
stm32l4_rtc_getdatetime_with_subseconds(&tp2, &ns2);
- time_intval = SEC2TICK(mktime(&tp2) - mktime(&tp1))
- + NSEC2TICK(ns2 - ns1);
+ time_intval = SEC2TICK(mktime(&tp2) - mktime(&tp1)) + NSEC2TICK(ns2 - ns1);
/*... |
zork: enable usb-c FRSwap
Enabling FRSwap and removed the TODOs for enabling
TCPMv2 and FRSwap.
BRANCH=none
TEST=make buildall -j | */
#define CONFIG_USB_PID 0x5040
-#if 1
-/* TODO(b/142284905): Enable the TCPMv2 PD stack */
+/* Enable the TCPMv2 PD stack */
#define CONFIG_USB_PE_SM
#define CONFIG_USB_PRL_SM
#define CONFIG_USB_SM_FRAMEWORK
#define CONFIG_USB_TYPEC_SM
#define CONFIG_USB_TYPEC_DRP_ACC_TRYSRC
-#if 0
- /* TODO(b/146393213): Enable Fast... |
rune: add -lsgx_urts in LDFLAGS
The latest sgx_dcap_quoteverify library lacks symbols which are
defined in sgx_urts library. | package dcap // import "github.com/inclavare-containers/rune/libenclave/attestation/internal/sgx/dcap"
/*
-#cgo LDFLAGS: -lsgx_dcap_quoteverify
+#cgo LDFLAGS: -lsgx_dcap_quoteverify -lsgx_urts
#include <stdio.h>
#include <stdlib.h>
|
Fix preview when hovering on text dialogue events | @@ -9,6 +9,7 @@ import { useDispatch, useSelector } from "react-redux";
import entityActions from "store/features/entities/entitiesActions";
import { RootState } from "store/configureStore";
import { scriptEventSelectors } from "store/features/entities/entitiesState";
+import editorActions from "store/features/editor/e... |
icheck: increment version | @@ -10,7 +10,7 @@ BASE_DIR="$(pwd)"
BUILD_DIR="$BASE_DIR/build"
ICHECK_DIR="$BASE_DIR/icheck"
-CMPVERSION="0.9.2"
+CMPVERSION="0.9.3"
# XXX: updates here require update in doc/VERSION.md
FILES="src/include/kdbmeta.h src/include/kdbease.h src/include/kdbmerge.h src/include/kdbmodule.h src/include/kdbnotification.h src/i... |
[ChangeLog] continue to update ChangeLog | @@ -25,7 +25,9 @@ before it.
v4.1.0 (in development branch siconos/master)
--------------------------------------------------------------------------------
Main changes:
- * [kernel]
+ * [kernel] refactoring the initialization of classes
+ lazy initialization driven by the simulation classes.
+ move of buffer and work ... |
cd to tmp_dir first | @@ -112,6 +112,7 @@ foreach my $distro (@distros) {
foreach my $arch (@arches) {
my $dist_filename = "$dest_dir/OpenHPC-$release.$distro\_$arch.tar";
my $tar_args = "-cvf $dist_filename \\\n";
+ $tar_args .= "--cd $tmp_dir \\\n";
# exclude other arches, iso and src dirs
my @n_arches = grep { $_ ne $arch } @arches;
@@ -... |
haskell-debian-stretch: add release notes | @@ -174,6 +174,8 @@ Many problems were resolved with the following fixes:
- We fixed [internal inconsistency](https://github.com/ElektraInitiative/libelektra/pull/1761) in the CMake code of the [Augeas plugin](https://www.libelektra.org/plugins/augeas)
- We fixed various small bugs that could potentially cause the INI ... |
BugID:22083675:add VERSION for cmsis_nn component | NAME := cmsis_nn
+
$(NAME)_TYPE := third_party
+$(NAME)_VERSION := 1.0.1
+
GLOBAL_INCLUDES += \
CMSIS_5/CMSIS/Core/Include \
CMSIS_5/CMSIS/DSP/Include \
|
build: conditional build for legacy OS | @echo off
+:: In order to enable legacy OS builds use on build machine
+:: set VIRTIO_WIN_BUILD_LEGACY=win7
+:: set VIRTIO_WIN_BUILD_LEGACY=Win7,wlh (currently does not work)
+:: set VIRTIO_WIN_BUILD_LEGACY=Win7,wlh,wxp,wnet (currently does not work)
+
if "%VIRTIO_WIN_NO_ARM%"=="" call tools\build.bat virtio-win.sln Wi... |
Improve system uptime precision | * System Information CPU section
*
* Copyright (C) 2011-2016 wj32
- * Copyright (C) 2017-2020 dmex
+ * Copyright (C) 2017-2021 dmex
*
* This file is part of Process Hacker.
*
@@ -846,7 +846,13 @@ VOID PhSipUpdateCpuPanel(
NULL
)))
{
- PhPrintTimeSpan(uptimeString, timeOfDayInfo.CurrentTime.QuadPart - timeOfDayInfo.Boot... |
Do not use _Bool for boolean types, use int instead. | @@ -42,8 +42,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdbool.h>
#else
#ifndef __cplusplus
-typedef int _Bool;
-#define bool _Bool
+#define bool int
#define true 1
#define false 0
#endif /* __cplusplus */
|
ensure that there is no time underflow in picoquic_prepare_segment | @@ -2881,7 +2881,7 @@ int picoquic_prepare_segment(picoquic_cnx_t* cnx, picoquic_path_t ** path, picoq
/* Check that the connection is still alive -- the timer is asymmetric, so client will drop faster */
if ((cnx->cnx_state < picoquic_state_disconnecting &&
- (current_time - cnx->latest_progress_time) >= (PICOQUIC_MIC... |
Fix coverity complaint about commit
The coverity complained that dividing integer expressions and then
converting the integer quotient to type "double" would lose fractional
part. Typecasting one of the arguments of expression with double should
fix the report.
Author: Mahendra Singh Thalor
Discussion: | @@ -2077,7 +2077,7 @@ compute_parallel_delay(void)
VacuumCostBalanceLocal += VacuumCostBalance;
if ((shared_balance >= VacuumCostLimit) &&
- (VacuumCostBalanceLocal > 0.5 * (VacuumCostLimit / nworkers)))
+ (VacuumCostBalanceLocal > 0.5 * ((double) VacuumCostLimit / nworkers)))
{
/* Compute sleep time based on the local... |
Posix: Removed unused signal set from port | @@ -93,7 +93,6 @@ static inline Thread_t * prvGetThreadFromTask( TaskHandle_t xTask )
/*-----------------------------------------------------------*/
static pthread_once_t hSigSetupThread = PTHREAD_ONCE_INIT;
-static sigset_t xResumeSignals;
static sigset_t xAllSignals;
static sigset_t xSchedulerOriginalSignalMask;
sta... |
Fix for kvpy test failures. | @@ -449,7 +449,7 @@ wal_txn_begin(struct wal *wal, uint64_t txid, int64_t *cookie)
merr_t
wal_txn_abort(struct wal *wal, uint64_t txid, int64_t cookie)
{
- assert(cookie >= 0);
+ assert(!wal || cookie >= 0);
return wal_txn(wal, WAL_RT_TXABORT, txid, 0, &cookie);
}
@@ -457,7 +457,7 @@ wal_txn_abort(struct wal *wal, uint... |
Build: Remove reference to AWS. (PR RavenProject#915)
- AWS removed from build-raven.yml. | @@ -19,7 +19,6 @@ on:
env:
SCRIPTS: ${{ GITHUB.WORKSPACE }}/.github/scripts
- AWS_S3_ENABLE: ${{ secrets.AWS_S3_ENABLE }}
jobs:
build:
@@ -58,18 +57,6 @@ jobs:
- name: Package Up the Build
run: ${SCRIPTS}/06-package.sh ${{ MATRIX.OS }} ${{ GITHUB.WORKSPACE }} ${{ GITHUB.BASE_REF }} ${{ GITHUB.REF }}
- - name: Upload Bu... |
Document undocumented Connection URI Options | @@ -56,6 +56,7 @@ Connection Options
------------------
================ =========================================================================================================================================================================================================================
+appname The client applicati... |
Use platform specific directory separators; | @@ -199,10 +199,12 @@ int lovrFilesystemSetIdentity(const char* identity) {
}
}
+ const char* sep = PHYSFS_getDirSeparator();
+
lovrFilesystemGetAppdataDirectory(state.savePathFull, LOVR_PATH_MAX);
PHYSFS_setWriteDir(state.savePathFull);
- snprintf(state.savePathRelative, LOVR_PATH_MAX, "LOVR/%s", identity);
- snprintf... |
Add action name comment to generated code | @@ -39,6 +39,9 @@ for table in hlir.tables:
for ctl in hlir.controls:
for act in ctl.actions:
+ name = act.annotations.annotations.get('name')
+ if name:
+ #[ // action name: ${name.expr[0].value}
#{ void action_code_${act.name}(action_${act.name}_params_t parameters, SHORT_STDPARAMS) {
#[ uint32_t value32, res32, mask... |
This was not necessary | @@ -19,14 +19,12 @@ typedef struct clap_plugin_state {
// Returns true if the state was correctly restored.
// [main-thread]
bool (*load)(const clap_plugin *plugin, clap_istream *stream);
-
- // [main-thread]
- bool (*is_dirty)(const clap_plugin *plugin);
} clap_plugin_state;
typedef struct clap_host_state {
// Tell th... |
Mitigation for crashing when executing commands on Linux
Sometimes, upon entering a command, the client will terminate with Signal 28 with a buffer underflow in fgets(). Until the cause is determined, this mitigation causes the software to not crash. | @@ -391,9 +391,14 @@ static int out_balances(void) {
static int terminal(void) {
#if !defined(_WIN32) && !defined(_WIN64)
- char cmd[CHEATCOIN_COMMAND_MAX], cmd2[CHEATCOIN_COMMAND_MAX], *ptr, *lasts;
+ // char cmd[CHEATCOIN_COMMAND_MAX], cmd2[CHEATCOIN_COMMAND_MAX], *ptr, *lasts;
+ char *cmd, *cmd2, *ptr, *lasts;
int s... |
Cleaned up Mackerel explosion.
A lot of our Haskell code is *seriously* inefficient. Mackerel created arrays
n^2 in the size of the *device's address space* to check for overlapping
registers, and then walked them. End result for Solarflare card was a >1TB
virtual address space for Haskell. | module RegisterTable where
+import Data.List
import MackerelParser
import Text.ParserCombinators.Parsec
import Attr
@@ -137,8 +138,24 @@ overlap :: Rec -> Rec -> Bool
overlap r1 r2
| spc_id r1 /= spc_id r2 = False
| base r1 /= base r2 = False
+ | spc r1 == Space.NoSpace = False
+ | spc r2 == Space.NoSpace = False
+ | o... |
fixed timer | @@ -1572,6 +1572,8 @@ static void api_tick(tic_mem* tic, tic_tick_data* data)
if(tic->input == tic_mouse_input)
tic->ram.vram.vars.mask.data = 0;
+ data->start = data->counter();
+
config = getScriptConfig(code);
done = config->init(tic, code);
}
@@ -1584,8 +1586,6 @@ static void api_tick(tic_mem* tic, tic_tick_data* d... |
groups: Use presig on group join links | @@ -6,7 +6,7 @@ import {
Button,
ManagedTextInputField,
ManagedCheckboxField,
- ContinuousProgressBar,
+ ContinuousProgressBar
} from '@tlon/indigo-react';
import { Formik, Form } from 'formik';
import React, { useEffect, useState } from 'react';
@@ -20,6 +20,7 @@ import airlock from '~/logic/api';
import { joinError, ... |
improve bit range skipping in region search | @@ -186,7 +186,7 @@ static bool mi_region_commit_blocks(mem_region_t* region, size_t idx, size_t bit
// Use bit scan forward to quickly find the first zero bit if it is available
#if defined(_MSC_VER)
-#define MI_HAVE_BSF
+#define MI_HAVE_BITSCAN
#include <intrin.h>
static inline size_t mi_bsf(uintptr_t x) {
if (x==0) ... |
pkg/container-collection: Make not fatal error description more soft | @@ -123,7 +123,7 @@ func WithContainerRuntimeEnrichment(runtime *containerutils.RuntimeConfig) Conta
// Enrich already running containers
containers, err := runtimeClient.GetContainers()
if err != nil {
- log.Warnf("Runtime enricher (%s): failed to get current containers",
+ log.Warnf("Runtime enricher (%s): couldn't g... |
meta: mention default_library in README.md | @@ -29,10 +29,11 @@ The following custom meson options are accepted, in addition to the [built-in op
- `headers_only`: Only install headers; don't build `libc.so` or `ld.so`.
- `mlibc_no_headers`: Don't install headers; only build `libc.so` and `ld.so`.
-- `static`: Build `libc.a` and `ld.a` instead of `libc.so` and `l... |
in_tail: file: add structure fields for links | struct flb_tail_file {
/* Inotify */
int watch_fd;
-
/* file lookup info */
int fd;
off_t size;
@@ -42,6 +41,8 @@ struct flb_tail_file {
uint64_t inode;
#else
ino_t inode;
+ ino_t link_inode;
+ int is_link;
#endif
char *name; /* target file name given by scan routine */
#if !defined(__linux) || !defined(FLB_HAVE_INOTIF... |
margins for M2 DRCs | @@ -22,8 +22,9 @@ vlsi.inputs.mmmc_corners: [
]
# Specify clock signals
+# ASAP7 bug: period value should actually be in ps
vlsi.inputs.clocks: [
- {name: "clock", period: "20ns", uncertainty: "0.1ns"}
+ {name: "clock", period: "1000ns", uncertainty: "0.1ns"}
]
# Generate Make include to aid in flow
@@ -59,17 +60,17 @@... |
Documentation change, Wifi only: U_WIFI_STATUS_XXX -> U_WIFI_CON_STATUS_XXX | @@ -127,11 +127,11 @@ typedef void (*uWifiScanResultCallback_t) (uDeviceHandle_t devHandle,
* @param connId connection ID.
* @param status new status of connection. Please see U_WIFI_CON_STATUS_xx.
* @param channel wifi channel.
- * Note: Only valid for U_WIFI_STATUS_CONNECTED otherwise set to 0.
+ * Note: Only valid f... |
zephyr/drivers/cros_system/cros_system_it8xxx2.c: Format with clang-format
BRANCH=none
TEST=none | @@ -36,8 +36,7 @@ static uint32_t system_get_chip_id(void)
struct gctrl_it8xxx2_regs *const gctrl_base = GCTRL_IT8XXX2_REG_BASE;
return (gctrl_base->GCTRL_ECHIPID1 << 16) |
- (gctrl_base->GCTRL_ECHIPID2 << 8) |
- gctrl_base->GCTRL_ECHIPID3;
+ (gctrl_base->GCTRL_ECHIPID2 << 8) | gctrl_base->GCTRL_ECHIPID3;
}
static uint... |
correcting description for taxonomy Compiler | <description Cclass="Graphics">Graphical User Interface</description>
<description Cclass="Network">Network Stack using Internet Protocols</description>
<description Cclass="USB">Universal Serial Bus Stack</description>
- <description Cclass="Compiler">ARM Compiler Software Extensions</description>
+ <description Cclas... |
update compiler settings for sanitizers | @@ -208,14 +208,14 @@ if ("x${CMAKE_C_COMPILER_ID}" STREQUAL "xClang" OR "x${CMAKE_C_COMPILER_ID}" STR
endif ()
if (SANITIZER_ADDRESS)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -O1 -fno-omit-frame-pointer -g")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -O1 -fno-omit-frame-pointer -g")
+... |
Ccode: Do not use upper case for constants | @@ -150,9 +150,9 @@ void elektraCcodeDecode (Key * key, CCodeData * mapping)
const char * value = static_cast<const char *> (keyValue (key));
if (!value) return;
- size_t const SIZE = keyGetValueSize (key) - 1;
+ size_t const size = keyGetValueSize (key) - 1;
size_t out = 0;
- for (size_t in = 0; in < SIZE; ++in)
+ for... |
acrn-config: find 64-bit mmio for HI_MMIO_START/HI_MMIO_END
Find the 64-bit mmio window from /proc/iomem to generate HI_MMIO_START/HI_MMIO_END.
Acked-by: Victor Sun
Acked-by: Terry Zou | @@ -70,6 +70,47 @@ def parse_boot_info():
return (err_dic, sos_cmdlines, sos_rootfs, vuart0_dic, vuart1_dic, vm_types)
+def find_hi_mmio_window(config):
+
+ i_cnt = 0
+ mmio_min = 0
+ mmio_max = 0
+ is_hi_mmio = False
+
+ iomem_lines = board_cfg_lib.get_info(board_cfg_lib.BOARD_INFO_FILE, "<IOMEM_INFO>", "</IOMEM_INFO>... |
Update writingrules.rst - Reserved Words Table
Update from commit broke Markdown rendering of table -- Reformatted | @@ -23,51 +23,55 @@ keywords are reserved and cannot be used as an identifier:
.. list-table:: YARA keywords
- :widths: 10 10 10 10 10 10 10
+ :widths: 10 10 10 10 10 10 10 10
* - all
- and
- any
- ascii
- at
+ - base64
+ - base64wide
- condition
- - contains
- * - entrypoint
+ * - contains
+ - entrypoint
- false
- fil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.