message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
options/ansi: Implemented towlower() and towupper() | @@ -283,13 +283,19 @@ int toupper(int nc) {
// wchar_t conversion functions.
// --------------------------------------------------------------------------------------
-wint_t towlower(wint_t) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+wint_t towlower(wint_t wc) {
+ auto cc = mlibc::platform_wide_char... |
request mn list faster and from more peers | @@ -968,13 +968,13 @@ void ThreadCheckDarkSendPool(void* parg)
masternodePayments.CleanPaymentList();
}
- int mnRefresh = 90; //(5*5)
+ int mnRefresh = 15; //(3*5)
//try to sync the masternode list and payment list every 90 seconds from at least 3 nodes
- if(c % mnRefresh == 0 && RequestedMasterNodeList < 3){
+ if(vNod... |
fix(group): be sure the default group pointer points to a proper place | @@ -92,6 +92,9 @@ void lv_group_del(lv_group_t * group)
indev = lv_indev_get_next(indev);
}
+ /*If the group is the default group, set the default group as NULL*/
+ if(group == lv_group_get_default()) lv_group_set_default(NULL);
+
_lv_ll_clear(&(group->obj_ll));
_lv_ll_remove(&LV_GC_ROOT(_lv_group_ll), group);
lv_free(... |
Do not refresh watchdog in rtimer busy-wait macros | #include "dev/watchdog.h"
#include <stdbool.h>
+#if CONTIKI_TARGET_COOJA
+#include "lib/simEnvChange.h"
+#include "sys/cooja_mt.h"
+#endif
+
/** \brief The rtimer size (in bytes) */
#ifdef RTIMER_CONF_CLOCK_SIZE
#define RTIMER_CLOCK_SIZE RTIMER_CONF_CLOCK_SIZE
@@ -189,14 +194,24 @@ void rtimer_arch_schedule(rtimer_cloc... |
OcMachoLib: Fix expansion of images with segment size mismatch before last | @@ -1224,6 +1224,7 @@ MachoExpandImage64 (
UINT32 OriginalDelta;
UINT64 CurrentSize;
MACH_SEGMENT_COMMAND_64 *Segment;
+ MACH_SEGMENT_COMMAND_64 *FirstSegment;
MACH_SEGMENT_COMMAND_64 *DstSegment;
MACH_SYMTAB_COMMAND *Symtab;
MACH_DYSYMTAB_COMMAND *DySymtab;
@@ -1244,6 +1245,7 @@ MachoExpandImage64 (
CopyMem (Destinati... |
Update Mynewt repository.yaml for 1.9 release
Missed this update for the release. This should point Mynewt to the
latest release. | @@ -34,9 +34,10 @@ repo.versions:
"1.7.1": "v1.7.1"
"1.7.2": "v1.7.2"
"1.8.0": "v1.8.0"
+ "1.9.0": "v1.9.0"
"0-dev": "0.0.0" # main
- "0-latest": "1.8.0" # latest stable release
- "1-latest": "1.8.0" # latest stable release
+ "0-latest": "1.9.0" # latest stable release
+ "1-latest": "1.9.0" # latest stable release
- "1... |
Simplify RESET_STREAM reception code | @@ -6810,14 +6810,20 @@ static int conn_recv_reset_stream(ngtcp2_conn *conn,
return NGTCP2_ERR_FINAL_SIZE;
}
+ if (strm->flags & NGTCP2_STRM_FLAG_RECV_RST) {
+ return 0;
+ }
+
+ if (strm->rx.max_offset < fr->final_size) {
+ return NGTCP2_ERR_FLOW_CONTROL;
+ }
+
datalen = fr->final_size - strm->rx.last_offset;
- if (str... |
[numerics] NM_LU_solve: add preserve for generic mechanical test | @@ -319,7 +319,7 @@ void gmp_gauss_seidel(GenericMechanicalProblem* pGMP, double * reaction, double
for(size_t i = 0; i < curSize; ++i) sol[i] = -curProblem->q[i];
// resLocalSolver = NM_gesv(&M, sol, true);
- resLocalSolver = NM_LU_solve(&M, sol, 1);
+ resLocalSolver = NM_LU_solve(NM_preserve(&M), sol, 1);
M.matrix0 =... |
No updates if current version is newer than announced version. | @@ -359,13 +359,21 @@ void DeRestPluginPrivate::internetDiscoveryExtractVersionInfo(QNetworkReply *rep
if (!version.isEmpty())
{
- if (gwUpdateVersion != version)
+ QStringList gwUpdateVersionList = gwUpdateVersion.split('.');
+ QStringList versionList = version.split('.');
+ if (((gwUpdateVersionList[0].toInt() < vers... |
sdl/events: tidy up #ifdef checks | @@ -5,10 +5,18 @@ package sdl
#include "events.h"
#if !SDL_VERSION_ATLEAST(2,0,9)
+#if defined(WARN_OUTDATED)
+#pragma message("SDL_DISPLAYEVENT is not supported before SDL 2.0.9")
+#endif
+
#define SDL_DISPLAYEVENT (0x150)
#endif
#if !SDL_VERSION_ATLEAST(2,0,2)
+#if defined(WARN_OUTDATED)
+#pragma message("SDL_RENDER_... |
Always remove the old source when we resub a dropped /circle subscription. | |= src/source
^+ +>
=+ seq=(~(get by sequence) cir.src)
+ =/ ner/range
+ ?~ seq ran.src
+ =- `[[%ud u.seq] -]
+ ?~ ran.src ~
+ tal.u.ran.src
+ :: if our subscription changes or ends, remove
+ :: the original source.
+ =? +>.$ !=(ner ran.src)
+ (so-delta-our %config so-cir %source | src)
:: if we're past the range, don'... |
ExtendedTools: Remove legacy code | @@ -426,19 +426,6 @@ VOID NTAPI EtEtwProcessesUpdatedCallback(
runCount++;
}
-static VOID NTAPI EtpInvalidateNetworkNode(
- _In_ PVOID Parameter
- )
-{
- PPH_NETWORK_ITEM networkItem = Parameter;
- PPH_NETWORK_NODE networkNode;
-
- if (networkNode = PhFindNetworkNode(networkItem))
- TreeNew_InvalidateNode(NetworkTreeNe... |
Add tui controls to README | @@ -52,6 +52,8 @@ Run `./tool --help` to see usage info.
## Run
+### CLI interpreter
+
The CLI (`orca` binary) reads from a file and runs the orca simulation for 1 timestep (default) or a specified number (`-t` option) and writes the resulting state of the grid to stdout.
```sh
@@ -63,6 +65,26 @@ You can also make orca... |
[remove] redundant script. | @@ -7,10 +7,6 @@ objs = []
cwd = GetCurrentDir()
list = os.listdir(cwd)
-# the default version of LWIP is 2.0.2
-if not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202') and not GetDepend('RT_USING_LWIP203') and not GetDepend('RT_USING_LWIP212'):
- AddDepend('RT_USING_LWIP202')
-
for d in list:
path =... |
Check for empty asset name when creating the asset
So that undoing a deletion wouldn't trigger error if asset name is
empty.
Also delete the asset if the asset name is empty, so that it's the same
behavior as an invalid asset name. | @@ -1844,16 +1844,7 @@ AssetNode::setInternalValueInContext(
// Create the Asset object as early as possible. We may need it before
// the first compute. For example, Maya may call internalArrayCount.
-
- // When the AssetNode is first created, setInternalValueInContext()
- // will be called with default values. But we... |
Remove unused VerifyFileResult struct. | @@ -22,12 +22,6 @@ typedef enum
/***********************************************************************************************************************************
Functions
***********************************************************************************************************************************/
-typedef str... |
gall: adds verbose arg to agent scry implementation | ::
++ mo-peek
~/ %mo-peek
- |= [dap=term =routes care=term =path]
+ |= [veb=? dap=term =routes care=term =path]
^- (unit (unit cage))
::
=/ app (ap-abed:ap dap routes)
- (ap-peek:app care path)
+ (ap-peek:app veb care path)
::
++ mo-apply
|= [dap=term =routes =deal]
::
++ ap-peek
~/ %ap-peek
- |= [care=term tyl=path]
+... |
config: get "stty technique" working again on MacOS X.
Addresses GH#2167. | @@ -502,9 +502,7 @@ case "$GUESSOS" in
echo " invoke 'KERNEL_BITS=64 $THERE/config $options'."
if [ "$DRYRUN" = "false" -a -t 1 ]; then
echo " You have about 5 seconds to press Ctrl-C to abort."
- # The stty technique used elsewhere doesn't work on
- # MacOS. At least, right now on this Mac.
- sleep 5
+ (trap "stty `st... |
changed ranking of warnings | @@ -602,6 +602,24 @@ if(taglenerrorcount > 0) printf("IE TAG length error (malformed packets)..: %ld
if(essiderrorcount > 0) printf("ESSID error (malformed packets)..........: %ld\n", essiderrorcount);
eapolmsgerrorcount = eapolmsgerrorcount +eapolm1errorcount +eapolm2errorcount +eapolm3errorcount +eapolm4errorcount;
i... |
Risky: prefer consumption out of order | @@ -2472,27 +2472,7 @@ inline static uintptr_t fio_risky_hash(const void *data_, size_t len,
tmp |= ((uint64_t)data[1]) << 48;
case 1: /* overflow */
tmp |= ((uint64_t)data[0]) << 56;
-#if FIO_RISKY_CONSUME_LEFTOVER_IN_ORDER
- /* ((len & 24) >> 3) is a 0-3 value representing the next state vector */
- /* `switch` allow... |
Tweak docstring. | @@ -1403,7 +1403,7 @@ static const JanetReg os_cfuns[] = {
{
"os/realpath", os_realpath,
JDOC("(os/realpath path)\n\n"
- "Get the absolute path for a given path, resolving the relative path, following ../, ./, and symlinks. "
+ "Get the absolute path for a given path, following ../, ./, and symlinks. "
"Returns an abso... |
fixed sound on weak devices with Android | #define CLOCKRATE (255<<13)
#define TIC_DEFAULT_COLOR 15
-#define TIC_SOUND_RINGBUF_LEN 6 // in worst case, this induces ~ 6 tick delay i.e. 100 ms
+#define TIC_SOUND_RINGBUF_LEN 12 // in worst case, this induces ~ 12 tick delay i.e. 200 ms
typedef struct
{
|
Minor code formatting update on MIME/TLS changes. | @@ -2333,13 +2333,14 @@ extract_mimemajor (const char *token) {
/* official IANA registries as per https://www.iana.org/assignments/media-types/ */
- if (
- (lookfor = "application", !strncmp (token, lookfor, 11)) ||
+ if ((lookfor = "application", !strncmp (token, lookfor, 11)) ||
(lookfor = "audio", !strncmp (token, ... |
[catboost] improve exception message | #pragma once
#include "model.h"
+
#include <catboost/libs/helpers/exception.h>
+
#include <util/generic/ymath.h>
+#include <util/stream/labeled.h>
+
#include <emmintrin.h>
constexpr size_t FORMULA_EVALUATION_BLOCK_SIZE = 128;
@@ -318,7 +322,10 @@ inline void CalcGeneric(
return;
}
- CB_ENSURE(results.size() == docCount... |
parser: Add a very basic manifest loop. Not reachable by executable. | @@ -5189,6 +5189,52 @@ static void parser_loop(lily_parse_state *parser)
}
}
+static void manifest_loop(lily_parse_state *parser)
+{
+ lily_lex_state *lex = parser->lex;
+ int key_id = -1;
+
+ parser->flags |= PARSER_IN_MANIFEST;
+
+ /* This is a trick inspired by "use strict". Code files passed to manifest
+ parsing w... |
map editor fix | @@ -1749,6 +1749,7 @@ static void studioTick()
{
Map* map = impl.editor[impl.bank.index.map].map;
overline = map->overline;
+ scanline = map->scanline;
data = map;
memcpy(&tic->ram.vram.palette, &tic->cart.palette, sizeof(tic_palette));
}
|
Remove obsolete reference to io_reader.set_limit | @@ -294,13 +294,7 @@ func (g *gen) writeStatementIOBind(b *buffer, n *a.IOBind, depth uint32) error {
b.writes(");\n")
} else {
- // TODO: restrict (in the type checker or parser) that e is
- // args.foo?
- b.printf("wuffs_base__io_%s__set_limit(&%s%s, iop_%s%s,\n", cTyp, prefix, name, prefix, name)
- if err := g.write... |
Adds path to gsl libs on osx | @@ -44,6 +44,7 @@ install:
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then hash -r ; fi
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then source activate test-environment ; fi
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then export PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH ; fi
+ - if ! [[ $TRAVIS_OS_NAME == ... |
Move -dl -pthread to OPENSSL_LIBS | @@ -15,8 +15,7 @@ RUN apt-get update && \
cd ngtcp2 && autoreconf -i && \
./configure \
LIBTOOL_LDFLAGS="-static-libtool-libs" \
- LIBS="-ldl -pthread" \
- OPENSSL_LIBS="-l:libssl.a -l:libcrypto.a" \
+ OPENSSL_LIBS="-l:libssl.a -l:libcrypto.a -ldl -pthread" \
LIBEV_LIBS="-l:libev.a" \
JEMALLOC_LIBS="-l:libjemalloc.a -l... |
Jenkinsfile: increase timeout on no log output | @@ -1268,7 +1268,7 @@ def withDockerEnv(image, opts=[], cl) {
}
docker.withRegistry("https://${REGISTRY}",
'docker-hub-elektra-jenkins') {
- timeout(activity: true, time: 10, unit: 'MINUTES') {
+ timeout(activity: true, time: 15, unit: 'MINUTES') {
def cpu_count = cpuCount()
withEnv(["MAKEFLAGS='-j${cpu_count+2} -l${cp... |
Fixed missing changed file on previous commit | </ResourceCompile>
<Link>
<AdditionalLibraryDirectories>src\common\mysql\lib</AdditionalLibraryDirectories>
- <AdditionalDependencies>ws2_32.lib;wsock32.lib;libmysql.lib;%(AdditionalDependencies)</AdditionalDependencies>
+ <AdditionalDependencies>ws2_32.lib;libmysql.lib;%(AdditionalDependencies)</AdditionalDependencies... |
drum: restrict +se-blin to expected/sane blits
We only expect the two primary screen-draw blits here. | leaf+tape
::
++ se-blin :: print and newline
- |= lin=dill-blit:dill
+ |= $= lin
+ $~ [%put ~]
+ $>(?(%put %klr) dill-blit:dill)
^+ +>
:: newline means we need to redraw the prompt,
:: so update the prompt mirror accordingly.
|
[mod_openssl] use 16k static buffer instead of 64k
better match size used by openssl
(avoid unused, oversized reads) | @@ -82,7 +82,7 @@ static int ssl_is_init;
/* need assigned p->id for deep access of module handler_ctx for connection
* i.e. handler_ctx *hctx = con->plugin_ctx[plugin_data_singleton->id]; */
static plugin_data *plugin_data_singleton;
-#define LOCAL_SEND_BUFSIZE (64 * 1024)
+#define LOCAL_SEND_BUFSIZE (16 * 1024)
stati... |
Add Lambda function steps to 'Using the Library' doc | @@ -53,3 +53,19 @@ This again executes the `ps` command using the AppScope library. But here, we al
For a full list of library environment variables, execute: `./libscope.so all`
For the default settings in the sample `scope.yml` configuration file, see [Config Files](/docs/config-files), or inspect the most-recent fil... |
tools: add passphrase to GPG key in gen-gpg-testkey | @@ -17,7 +17,7 @@ gpgme_error_t passphrase_cb (void * hook ELEKTRA_GEN_GPG_TESTKEY_UNUSED, const c
const char * passphrase_info ELEKTRA_GEN_GPG_TESTKEY_UNUSED, int prev_was_bad ELEKTRA_GEN_GPG_TESTKEY_UNUSED,
int fd)
{
- gpgme_io_writen (fd, "\n", 2);
+ gpgme_io_writen (fd, "Super-Secret-Passphrase-123456\n", 33);
retu... |
add fonts packages | @@ -43,9 +43,10 @@ tlmgr install \
ulem \
ifmtarg \
unicode-math \
- mathpple \
latex-tools \
- psnfss
+ psnfss \
+ rsfs \
+ times
# Keep no backups (not required, simply makes cache bigger)
tlmgr option -- autobackup 0
|
Improve code for testing | @@ -17,16 +17,37 @@ websocket-bench broadcast ws://127.0.0.1:3000/ --concurrent 10 \
*/
+#include "spnlock.inc"
#include "websockets.h"
#include <string.h>
+#ifdef __APPLE__
+#include <dlfcn.h>
+#endif
+
FIOBJ CHANNEL_TEXT;
FIOBJ CHANNEL_BINARY;
+static size_t sub_count;
+static size_t unsub_count;
+
+static void on_we... |
core: add OSSL_INOUT_CALLBACK | @@ -212,7 +212,8 @@ extern OSSL_provider_init_fn OSSL_provider_init;
* application callback it knows about.
*/
typedef int (OSSL_CALLBACK)(const OSSL_PARAM params[], void *arg);
-
+typedef int (OSSL_INOUT_CALLBACK)(const OSSL_PARAM in_params[],
+ OSSL_PARAM out_params[], void *arg);
/*
* Passphrase callback function si... |
[hardware] Add handling of multiple sections
> Add handling of multiple sections.
> Delete keys list.
> Add argument parsing for the results folder.
[hardware] corrent lint error | -import csv
+#!/usr/bin/env python3
+
+# Copyright 2022 ETH Zurich and University of Bologna.
+# Solderpad Hardware License, Version 0.51, see LICENSE for details.
+# SPDX-License-Identifier: SHL-0.51
+
+# This script takes a set of .csv files in one of the results folders and
+# generates the average performances over... |
Backported version calculation fix. | @@ -60,16 +60,15 @@ if (NOT PUPNP_VERSION_STRING)
file (APPEND ${CMAKE_CURRENT_BINARY_DIR}/autoconfig.h.cm "#cmakedefine ${CMAKE_MATCH_1} 1\n\n")
list (APPEND WRITTEN_VARS ${CMAKE_MATCH_1})
elseif (line MATCHES "^AC_SUBST.*LT_VERSION_IXML, ([0-9]*):([0-9]*):([0-9]*).*")
- set (IXML_VERSION_MAJOR ${CMAKE_MATCH_1} CACHE ... |
out_stackdriver: use new jmsn wrapper header | #include <fluent-bit/flb_info.h>
#include <fluent-bit/flb_unescape.h>
#include <fluent-bit/flb_utils.h>
-
-#include <jsmn/jsmn.h>
+#include <fluent-bit/flb_jsmn.h>
#include <sys/types.h>
#include <sys/stat.h>
|
Specify libssl1.1 dependency on deb package | @@ -161,6 +161,7 @@ if [ "$OS" == "linux" ]; then
--name ${NAME} \
--provides ${NAME} \
--conflicts ${CONFLICTS} \
+ --depends "libssl1.1" \
--version ${VER_MAJOR}.${VER_MINOR}.${VER_PATCH} \
--description "${DESCRIPTION}" \
--vendor "${VENDOR}" \
|
Update json_tokener.h | @@ -150,6 +150,13 @@ typedef struct json_tokener json_tokener;
*/
#define JSON_TOKENER_STRICT 0x01
+/**
+ * Cause json_tokener_parse_ex() to validate that input is UTF8.
+ * If this flag is specified and validation fails, then
+ * json_tokener_get_error(tok) will return
+ * json_tokener_error_parse_utf8_string
+ *
+ * ... |
Python: supporting UNIX sockets.
This closes issue on GitHub. | @@ -30,6 +30,8 @@ static void nxt_py_asgi_close_handler(nxt_unit_request_info_t *req);
static PyObject *nxt_py_asgi_create_http_scope(nxt_unit_request_info_t *req);
static PyObject *nxt_py_asgi_create_address(nxt_unit_sptr_t *sptr, uint8_t len,
uint16_t port);
+static PyObject *nxt_py_asgi_create_ip_address(nxt_unit_sp... |
Documentation: typo in Ubuntu tutorial and additional note
Fix one typo (in a command) in the tutorial entitled "Using
Ubuntu as the Service OS".
Add a note explaining that a script may have to be adjusted
based on the HW set-up (network interface name). | @@ -267,7 +267,7 @@ For the User OS, we are using the same `Clear Linux`_ release version as the Ser
.. code-block:: none
- sudo apt-get instal iasl
+ sudo apt-get install iasl
sudo cp /usr/bin/iasl /usr/sbin/iasl
* Adjust ``launch_uos.sh``
@@ -329,6 +329,10 @@ script example shows how to set this up (verified in Ubunt... |
hw/mcu/dialog: Remove redundant PDC ack in CMAC driver
There is no need to do this, it will be acked before going to deep
sleep (where all M33 PDC entries are acked). | @@ -103,12 +103,6 @@ da1469x_cmac_pdc_signal(void)
da1469x_pdc_set(g_da1469x_pdc_sys2cmac);
}
-static inline void
-da1469x_cmac_pdc_ack(void)
-{
- da1469x_pdc_ack(g_da1469x_pdc_cmac2sys);
-}
-
static void
cmac2sys_isr(void)
{
@@ -119,8 +113,6 @@ cmac2sys_isr(void)
os_trace_isr_enter();
- da1469x_cmac_pdc_ack();
-
/* Cl... |
TSCH scanning: limit the etimer frequency to 1/CLOCK_SECOND to reduce CPU usage during the scanning | @@ -786,7 +786,7 @@ PT_THREAD(tsch_scan(struct pt *pt))
TSCH_ASN_INIT(tsch_current_asn, 0, 0);
- etimer_set(&scan_timer, CLOCK_SECOND / TSCH_ASSOCIATION_POLL_FREQUENCY);
+ etimer_set(&scan_timer, MAX(1, CLOCK_SECOND / TSCH_ASSOCIATION_POLL_FREQUENCY));
current_channel_since = clock_time();
while(!tsch_is_associated && ... |
Update SNAP-Registers.md | @@ -181,6 +181,21 @@ Address: 0x0000028
---
+#### SNAP Capability Register (SCaR)
+```
+Address: 0x0000030
+ 63..32 RO: Reserved
+ 31..16 RO: Size of attached on-card SDRAM in MB
+ 15..9 RO: Reserved
+ 8 RO: NVMe enabled
+ 7..0 RO: Card type:
+ 0x01 : FGT
+ 0x00 : KU3
+
+```
+
+---
+
#### Freerunning Timer (FRT)
```
Ad... |
Cleanup extconf.rb a bit. | @@ -25,18 +25,28 @@ else
dir_config('xml2')
end
-unless find_header('libxml/xmlversion.h',
+found_header = find_header('libxml/xmlversion.h',
'/opt/include/libxml2',
'/opt/local/include/libxml2',
'/usr/local/include/libxml2',
- '/usr/include/libxml2') &&
- find_library('xml2', 'xmlParseDoc',
+ '/usr/include/libxml2',
+... |
tests: reduce output of Cooja tests
The build phase in Cooja tests is rarely
interesting, so make the build system quiet
by default for them.
The tests will still output everything when
running in the CI since the CI variable is set
to true. | @@ -43,6 +43,20 @@ GRADLE ?= $(CONTIKI)/tools/cooja/gradlew
Q ?= @
+# The build phase ~never fails for Cooja tests, so silence the build system.
+QUIET ?= 1
+
+# Prevent make from printing "Entering/Leaving directory <..>".
+# This cannot be done in Makefile.include because MAKEFLAGS already contains
+# -w at that poin... |
RFC 8398: EAI comparison | @@ -878,8 +878,22 @@ static int do_x509_check(X509 *x, const char *chk, size_t chklen,
ASN1_STRING *cstr;
gen = sk_GENERAL_NAME_value(gens, i);
- if (gen->type != check_type)
+ if ((gen->type == GEN_OTHERNAME) && (check_type == GEN_EMAIL)) {
+ if (OBJ_obj2nid(gen->d.otherName->type_id) ==
+ NID_id_on_SmtpUTF8Mailbox) {... |
Remove redundant arity checks in XINFO
The arity in the JSON files of the subcommands reneder this
code unreachable | @@ -3838,11 +3838,6 @@ void xinfoCommand(client *c) {
/* HELP is special. Handle it ASAP. */
if (!strcasecmp(c->argv[1]->ptr,"HELP")) {
- if (c->argc != 2) {
- addReplySubcommandSyntaxError(c);
- return;
- }
-
const char *help[] = {
"CONSUMERS <key> <groupname>",
" Show consumers of <groupname>.",
@@ -3854,9 +3849,6 @@... |
test added for memcfl_register | #include "utest.h"
+#include "misc/misc.h"
#include "misc/mmio.h"
#include "misc/memcfl.h"
@@ -38,6 +39,41 @@ static bool test_memcfl_load(void)
UT_REGISTER_TEST(test_memcfl_load);
+static bool test_memcfl_register(void)
+{
+ long dims[2] = { 10, 5 };
+ complex float* x = xmalloc(io_calc_size(2, dims, sizeof(complex fl... |
Refix _sceCommonDialogSetMagicNumber hack
original patch introduced for the Vita3K, only problem in 64bit C++
compiler.
this patch is also hack, but will work on all compilers
also fill the magic value | @@ -107,9 +107,7 @@ typedef struct SceCommonDialogParam {
static inline
void _sceCommonDialogSetMagicNumber(SceCommonDialogParam *param)
{
-#ifdef __vita__
- param->magic = SCE_COMMON_DIALOG_MAGIC_NUMBER + (SceUInt32)param;
-#endif
+ param->magic = SCE_COMMON_DIALOG_MAGIC_NUMBER + *(SceUInt32*)¶m;
}
static inline
|
Travis: Set library path
Before this commit the installed version of `kdb` would not work on
Linux if we use a custom install location.
See also: Issue | @@ -56,6 +56,8 @@ before_install:
#
before_script:
- cd $TRAVIS_BUILD_DIR/..
+ - INSTALL_DIR="$PWD/install"
+ - SYSTEM_DIR="$PWD/kdbsystem"
- mkdir build && cd build
- CMAKE_OPT=()
- echo $PATH
@@ -78,11 +80,12 @@ before_script:
-DBINDINGS=ALL
-DTOOLS=ALL
-DINSTALL_SYSTEM_FILES=OFF
- -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUIL... |
[ctr/lua] small fix for error message | @@ -827,7 +827,7 @@ func LuaDeployContract(L *LState, service *C.int, contract *C.char, args *C.char
if len(code) == 0 {
l := luacUtil.NewLState()
if l == nil {
- luaPushStr(L, "[Contract.LuaDeployContract]compile error:"+err.Error())
+ luaPushStr(L, "[Contract.LuaDeployContract] get luaState error")
return -1
}
defer ... |
Remove obsolete comment
Fixes | @@ -277,7 +277,6 @@ static void ossl_lib_ctx_generic_free(void *parent_ign, void *ptr,
meth->free_func(ptr);
}
-/* Non-static so we can use it in context_internal_test */
static int ossl_lib_ctx_init_index(OSSL_LIB_CTX *ctx, int static_index,
const OSSL_LIB_CTX_METHOD *meth)
{
|
arm: fix fma for glm_vec4_muladds | @@ -590,8 +590,10 @@ glm_vec4_muladd(vec4 a, vec4 b, vec4 dest) {
CGLM_INLINE
void
glm_vec4_muladds(vec4 a, float s, vec4 dest) {
-#if defined(CGLM_SIMD)
+#if defined( __SSE__ ) || defined( __SSE2__ )
glmm_store(dest, glmm_fmadd(glmm_load(a), _mm_set1_ps(s), glmm_load(dest)));
+#elif defined(CGLM_NEON_FP)
+ glmm_store(... |
refactor: add todo | @@ -294,6 +294,7 @@ perform_request(
CURLcode ecode;
//perform the connection
+ //@todo shouldn't abort on error
ecode = curl_easy_perform(ehandle);
ASSERT_S(CURLE_OK == ecode, curl_easy_strerror(ecode));
|
Update: PriorityQueue_Test.h: this makes the test compatible with tcc float handling | @@ -44,7 +44,7 @@ void PriorityQueue_Test()
if(feedback.evicted)
{
printf("evicted item %f %ld\n", feedback.evictedItem.priority, (long)feedback.evictedItem.address);
- assert(evictions>0 || feedback.evictedItem.priority == ((double)(1.0/((double) (n_items*2)))), "the evicted item has to be the lowest priority one");
+... |
nimble/host: Allow to configure non-connectable scannable advertising | @@ -2373,7 +2373,7 @@ ble_gap_ext_adv_params_validate(const struct ble_gap_ext_adv_params *params)
}
if (params->directed) {
- if (params->scannable) {
+ if (params->scannable && params->connectable) {
return BLE_HS_EINVAL;
}
}
@@ -2793,7 +2793,7 @@ ble_gap_ext_adv_rsp_set_validate(uint8_t instance, struct os_mbuf *dat... |
board/nocturne_fp/ro_workarounds.c: Format with clang-format
BRANCH=none
TEST=./util/compare_build.sh -b fp | @@ -75,8 +75,7 @@ void wp_event(enum gpio_signal signal)
* This function is also called from system_reset to set the final save
* reset flags, before an actual planned reset.
*/
-__override
-void bkpdata_write_reset_flags(uint32_t save_flags)
+__override void bkpdata_write_reset_flags(uint32_t save_flags)
{
/* Preserve... |
fix: secure sockets regression error | @@ -399,7 +399,7 @@ int32_t SOCKETS_Connect( Socket_t xSocket,
struct sockaddr_in sa_addr = { 0 };
int ret;
-
+ sa_addr.sin_family = pxAddress->ucSocketDomain;
sa_addr.sin_addr.s_addr = pxAddress->ulAddress;
sa_addr.sin_port = pxAddress->usPort;
|
Event connection writing fixes. | @@ -46,6 +46,9 @@ nxt_conn_io_write(nxt_task_t *task, void *obj, void *data)
do {
ret = nxt_conn_io_sendbuf(task, &sb);
+ c->socket.write_ready = sb.ready;
+ c->socket.error = sb.error;
+
if (ret < 0) {
/* ret == NXT_AGAIN || ret == NXT_ERROR. */
break;
@@ -61,6 +64,8 @@ nxt_conn_io_write(nxt_task_t *task, void *obj, v... |
web-ui: fix bug when entering additional metadata | @@ -20,6 +20,9 @@ import { HANDLED_METADATA } from './utils'
const DebouncedTextField = debounce(TextField)
+const IMMEDIATE = 'IMMEDIATE'
+const DEBOUNCED = 'DEBOUNCED'
+
export default class AdditionalMetakeysSubDialog extends Component {
constructor (props, ...args) {
super(props, ...args)
@@ -77,9 +80,9 @@ export d... |
board/imxrt1050-evk: tidyup including headers in imxrt_boot.c
1. Include <stdio.h> and <stdint.h>
stdio.h for snprintf
stdint.h for uint8_t
2. Remove duplicated <tinyara/gpio.h>
There are two includings.
3. Remove unnecessary headers for imxrt1020-evk
The imxrt_boot.c under os/board/imxrt1050-evk/src folder is built
on... | #include <tinyara/config.h>
+#include <stdint.h>
+#include <stdio.h>
+
#include <tinyara/board.h>
#include <tinyara/pwm.h>
#include <tinyara/gpio.h>
#include <tinyara/spi/spi.h>
-
#include <arch/board/board.h>
-#if defined(CONFIG_ARCH_CHIP_FAMILY_IMXRT102x)
-#include "chip/imxrt102x_config.h"
-#include "imxrt1020-evk.h... |
remove generic Write method for lua version | @@ -294,6 +294,7 @@ namespace SLua
pos_++;
}
+
public void Write (ushort v)
{
Write ((short)v);
|
Disable DNS tests temporarily. | @@ -86,11 +86,11 @@ run_test test/${OS}/httpaggtest
run_test test/${OS}/selfinterposetest
if [ "${OS}" = "linux" ]; then
- SAVEVARS=$ENVARS
- ENVVARS=$ENVVARS"LD_PRELOAD=./lib/linux/libscope.so ""SCOPE_METRIC_DEST=file:///tmp/dnstest.log ""SCOPE_METRIC_VERBOSITY=9 ""SCOPE_SUMMARY_PERIOD=1 "
- run_test test/${OS}/dnstes... |
pci: actually returning with the right message so RPCs can proceed | @@ -757,7 +757,7 @@ static void request_iommu_endpoint_cap_handler(struct kaluga_binding* b, uint8_t
}
reply:
- err = b->tx_vtbl.request_endpoint_cap_response(b, NOP_CONT, cap, out_err);
+ err = b->tx_vtbl.request_iommu_endpoint_cap_response(b, NOP_CONT, cap, out_err);
assert(err_is_ok(err));
slot_free(cap);
}
|
Remove unused parameter in Android constructor | @@ -137,12 +137,12 @@ class Request implements Runnable {
}
public class httpClient{
- private static final int Max_Threads = 2; // Collector wants no more than 2 at a time
- public httpClient(int n_threads)
+ private static final int MAX_HTTP_THREADS = 2; // Collector wants no more than 2 at a time
+ public httpClient... |
don't extend hud width if gpu_stats is disabled | @@ -352,7 +352,7 @@ parse_overlay_config(struct overlay_params *params,
if (params->enabled[OVERLAY_PARAM_ENABLED_io_read] && params->enabled[OVERLAY_PARAM_ENABLED_io_write] && params->width == 280)
params->width = 15 * params->font_size;
- if (params->enabled[OVERLAY_PARAM_ENABLED_gpu_core_clock] && params->enabled[OV... |
Undo commit
Comment in the commit:
/* Ignore NULLs, thanks to Bob Beck */ | @@ -757,8 +757,6 @@ void ERR_add_error_vdata(int num, va_list args)
n = 0;
for (i = 0; i < num; i++) {
a = va_arg(args, char *);
- /* ignore NULLs, thanks to Bob Beck <beck@obtuse.com> */
- if (a != NULL) {
n += strlen(a);
if (n > s) {
s = n + 20;
@@ -771,7 +769,6 @@ void ERR_add_error_vdata(int num, va_list args)
}
OP... |
fix panda connect on macOS | @@ -179,7 +179,7 @@ class Panda(object):
self.bootstub = device.getProductID() == 0xddee
self.legacy = (device.getbcdDevice() != 0x2300)
self._handle = device.open()
- if sys.platform not in ["win32", "cygwin", "msys"]:
+ if sys.platform not in ["win32", "cygwin", "msys", "darwin"]:
self._handle.setAutoDetachKernelDriv... |
Stop requiring an explicit return from perl subroutines
The consensus of the project appears to be that this provides little
benefit and is simply an annoyance.
Discussion: | @@ -22,7 +22,3 @@ verbose = %f: %m at line %l, column %c. %e. ([%p] Severity: %s)\n
# insist on use of the warnings pragma
[TestingAndDebugging::RequireUseWarnings]
severity = 5
-
-# for now raise severity of this to level 5
-[Subroutines::RequireFinalReturn]
-severity = 5
|
travis: increase wait time and update Xcode version | language: cpp
dist: bionic
-osx_image: xcode11.6
+osx_image: xcode12
#
# Define the build matrix
@@ -279,7 +279,7 @@ before_script:
- cmake ${CMAKE_OPT[@]}
script:
- - ninja
+ - travis_wait 20 ninja
- output="$(ninja install 2>&1)" || printf '%s' "$output"
- - ninja run_all
- - kdb run_all
+ - travis_wait 20 ninja run_... |
include/tinyara/reboot_reason.h : Add reboot reason code for recovery failure
Add reboot reason code for binary recover failure as 35. | @@ -34,6 +34,7 @@ typedef enum {
REBOOT_SYSTEM_WIFICORE_WATCHDOG = 11, /* Wi-Fi Core Watchdog Reset */
REBOOT_SYSTEM_WIFICORE_PANIC = 12, /* Wi-Fi Core Panic */
REBOOT_SYSTEM_BINARY_UPDATE = 34, /* Reboot for Binary Update */
+ REBOOT_SYSTEM_BINARY_RECOVERYFAIL = 35, /* Binary Recovery Fail */
REBOOT_UNKNOWN = 99,
} re... |
kdbset example: More precise error description | @@ -63,7 +63,7 @@ while (ret == -1) // as long as we have an error
theirs = ksDup (ours);
kdbGet (handle, theirs, parentKey); // refresh key database
Key * informationKey = keyNew(0, KEY_END);
- KeySet * res = elektraMerge(
+ KeySet * result = elektraMerge(
ksCut(ours, parentKey), parentKey,
ksCut(theirs, parentKey), p... |
Increase timeouts for connections and reads. | @@ -88,8 +88,8 @@ class TCPDriver(BaseDriver):
class HTTPException(Exception):
pass
-DEFAULT_CONNECT_TIMEOUT = 10
-DEFAULT_READ_TIMEOUT = 10
+DEFAULT_CONNECT_TIMEOUT = 30
+DEFAULT_READ_TIMEOUT = 120
DEFAULT_TIMEOUT = (DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT)
MAX_CONNECT_RETRIES = 10
MAX_READ_RETRIES = 10
|
fix: Fixed wild pointer call issue
issue
This version has not been tested. | @@ -136,20 +136,23 @@ __BOATSTATIC BOAT_RESULT platone_createOnetimeWallet()
{
BSINT32 index;
BoatPlatoneWalletConfig wallet_config;
+ BUINT8 binFormatKey[32] = {0};
/* wallet_config value assignment */
/* for one-time wallet, the 'prikeyId' field should be cleared */
//memset(wallet_config.prikeyId, 0, BOAT_KEYID_MAX_... |
api/trace: add parameter to explicitly enable or disable traces. | #include <fluent-bit/flb_lib.h>
#include <fluent-bit/flb_trace_chunk.h>
#include <fluent-bit/flb_kv.h>
+#include <fluent-bit/flb_utils.h>
#include <msgpack.h>
@@ -59,10 +60,10 @@ static int enable_trace_input(struct flb_hs *hs, const char *name, const char *p
flb_free(in->trace_ctxt);
}
in->trace_ctxt = flb_trace_chunk... |
zephyr: implement gpio_reset and gpio_set_flags
These are required by power sequencing.
Also, handle conversion of more bits while I'm here.
BRANCH=none
TEST=compile with power sequencing code for volteer | @@ -167,21 +167,41 @@ void gpio_set_level(enum gpio_signal signal, int value)
}
}
+/* GPIO flags which are the same in Zephyr and this codebase */
+#define GPIO_CONVERSION_SAME_BITS \
+ (GPIO_OPEN_DRAIN | GPIO_PULL_UP | GPIO_PULL_DOWN | GPIO_INPUT | \
+ GPIO_OUTPUT)
+
static int convert_from_zephyr_flags(const gpio_fla... |
Fix instruction in README
[ci skip] | @@ -105,7 +105,7 @@ the READMEs in those directories).
For example, this will render a 3D model in the emulator:
- cd build/software/apps/sceneview
+ cd software/apps/sceneview
./run_emulator
To run on FPGA, see instructions in hardware/fpga/de2-115/README.md
|
Regenerate patch for Ibex | diff --git a/build.sbt b/build.sbt
-index 3123c4b8..487fc428 100644
+index b1f7e004..f39c3712 100644
--- a/build.sbt
+++ b/build.sbt
@@ -184,7 +184,7 @@ lazy val testchipipLib = "edu.berkeley.cs" %% "testchipip" % "1.0-020719-SNAPSHO
@@ -9,9 +9,9 @@ index 3123c4b8..487fc428 100644
- sha3, // On separate line to allow f... |
tests: add a weird fix for a thread local storage bug on macos. | @@ -46,10 +46,8 @@ void flb_custom_calyptia_pipeline_config_get_test()
cfg = custom_calyptia_pipeline_config_get(ctx->config);
TEST_CHECK(strcmp(cfg, cfg_str) == 0);
- flb_start(ctx);
- sleep(2);
- flb_stop(ctx);
-
+ // fix a thread local storage bug on macos
+ flb_output_prepare();
flb_sds_destroy(cfg);
flb_destroy(ct... |
rename to mimalloc-override.dll and use C compilation | <OutDir>$(SolutionDir)..\..\out\msvc-$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\out\msvc-$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetExt>.dll</TargetExt>
- <TargetName>mimalloc</TargetName>
+ <TargetName>mimalloc-override</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'... |
Component/bt: read multiple return callback status: ESP_GATT_STACK_RSP | @@ -557,7 +557,7 @@ void gatt_process_read_multi_req (tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, U
key_size,
trans_id);
- if (err == GATT_SUCCESS) {
+ if (err == GATT_SUCCESS || err == GATT_STACK_RSP) {
gatt_sr_process_app_rsp(p_tcb, gatt_cb.sr_reg[i_rcb].gatt_if , trans_id, op_code, GATT_SUCCESS, p_msg);
}
/* either... |
Adapt indentation in hdl_helloworld/action_config.sh to general SNAP format | @@ -15,6 +15,7 @@ set src_dir $aip_dir/action_ip_prj/action_ip_prj.srcs/sources_1/ip
puts "\[CREATE_ACTION_IPs..........\] start [clock format [clock seconds] -format {%T %a %b %d/ %Y}]"
puts " FPGACHIP = $fpga_part"
puts " ACTION_ROOT = $action_root"
+puts " Creating IP in $src_dir"
create_project action_ip_prj $aip_d... |
linux/arch: larger stack for clone's | @@ -111,14 +111,16 @@ static inline bool arch_shouldAttach(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
return true;
}
-static uint8_t arch_clone_stack[PTHREAD_STACK_MIN * 2];
-
+/*
+ * 128 KiB for the temporary stack
+ */
+static uint8_t arch_clone_stack[128 * 1024];
static __thread jmp_buf env;
#if defined(__has_feature)
... |
Additional logging messages | @@ -111,6 +111,7 @@ static void _onNetworkStateChangeCallback( uint32_t network,
credentials.pAlpnProtos = NULL;
}
+ IotLogInfo("OnConnected: %d", network);
pDemoContext->networkConnectedCallback(awsIotMqttMode,
clientcredentialIOT_THING_NAME,
&serverInfo,
@@ -124,6 +125,7 @@ static void _onNetworkStateChangeCallback( ... |
Update version.h
Remove date cap. | * -----------------------------------------------------------------------
* All rights reserved, see LICENSE in OpenBOR root for details.
*
- * Copyright (c) 2004 - 2014 OpenBOR Team
+ * Copyright (c) 2004 OpenBOR Team
*/
#ifndef VERSION_H
|
implemet client ssl factory for rhodes as lib | @@ -362,6 +362,59 @@ public class SSLImpl {
}
}
+ public static SSLSocketFactory getSecureClientFactory() throws NoSuchAlgorithmException, KeyManagementException, CertificateException, KeyStoreException, IOException, UnrecoverableKeyException
+ {
+ SSLContext context = SSLContext.getInstance("TLS");
+
+ Logger.I(TAG, "... |
JS apps: fix linking errors in RhoJSON | @@ -934,8 +934,10 @@ static void Init_RhoJSON()
rb_RhoModule = rb_define_module("Rho");
rb_RhoJSON = rb_define_class_under(rb_RhoModule, "JSON", rb_cObject);
+#if !defined(RHO_NO_RUBY)
rb_define_singleton_method(rb_RhoJSON, "parse", rho_json_parse, 1);
rb_define_singleton_method(rb_RhoJSON, "quote_value", rho_json_quot... |
bugfix(rmt): tx cmd without negative coding | @@ -338,7 +338,7 @@ static void rmt_example_nec_tx_task()
int i, offset = 0;
while(1) {
//To build a series of waveforms.
- i = nec_build_items(channel, item + offset, item_num - offset, ((~addr) << 8) | addr, cmd);
+ i = nec_build_items(channel, item + offset, item_num - offset, ((~addr) << 8) | addr, ((~cmd) << 8) | ... |
correct closest docs | @@ -114,7 +114,7 @@ Option Description
==========================================================================
Default behavior
==========================================================================
-The `closest` tool first searches for features in B that overlap a feature in A. If overlaps are found, the featu... |
avoid deadlock (rt_hw_interrupt_disable and rt_enter_critical when enable smp) | #include <rtthread.h>
#include <rthw.h>
-#ifdef RT_USING_SMP
-rt_hw_spinlock_t _rt_critical_lock;
-#endif /*RT_USING_SMP*/
-
rt_list_t rt_thread_priority_table[RT_THREAD_PRIORITY_MAX];
rt_uint32_t rt_thread_ready_priority_group;
#if RT_THREAD_PRIORITY_MAX > 32
@@ -859,12 +855,15 @@ void rt_enter_critical(void)
* enough... |
Resolve segfault and add new opcode to compiler argcount | @@ -1615,9 +1615,13 @@ static void method(Compiler *compiler, bool private, Token *identifier, bool *ha
if (strcmp(AS_STRING(entry->key)->chars, "annotatedMethodName") == 0) {
Value existingDict;
dictGet(compiler->methodAnnotations, entry->key, &existingDict);
- dictDelete(vm, compiler->methodAnnotations, entry->key);
... |
vlib: fix coverity warning / real bug
The path must be next-to-impossible to hit, because the code has been
wrong for at least 5 years.
Type: fix | @@ -1217,7 +1217,7 @@ add_sub_command (vlib_cli_main_t * cm, uword parent_index, uword child_index)
vec_len (p->sub_rules));
vec_add2 (p->sub_rules, sr, 1);
sr->name = sub_name;
- sr->rule_index = q[0];
+ sr->rule_index = sr - p->sub_rules;
sr->command_index = child_index;
return;
}
|
OcCompressionLib: Add change note to the changes from last commit as required by license. | #ifndef ZLIB_H
#define ZLIB_H
+//
+// EDIT (Download-Fritz): Disable MSVC warnings preventing compilation.
+// Include stddef.h for its wchar_t definition.
+//
#if defined(_MSC_VER)
#include <stddef.h>
#pragma warning ( disable : 4131 )
|
Correct Danfoss window states script | switch (Attr.val) {
- case "0":
+ case 0:
Item.val = "Quarantine";
break;
- case "1":
+ case 1:
Item.val = "Closed";
break;
- case "2":
+ case 2:
Item.val = "Hold";
break;
- case "3":
+ case 3:
Item.val = "Open";
break;
- case "4":
+ case 4:
Item.val = "Open (external), closed (internal)";
break;
}
\ No newline at end ... |
Only move collisions/actors/triggers if tile has changed when moving mouse, prevents multiple identical redux actions which pollute undo history | @@ -39,6 +39,7 @@ class Scene extends Component {
const tX = Math.floor(x / (8 * zoomRatio));
const tY = Math.floor(y / (8 * zoomRatio));
+ if (tX !== this.lastTX || tY !== this.lastTY) {
if (creating) {
if (tool === "collisions") {
if (this.remove) {
@@ -73,7 +74,7 @@ class Scene extends Component {
let actor = this.a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.