message
stringlengths
6
474
diff
stringlengths
8
5.22k
Only set palettes on gbc
@@ -26,6 +26,7 @@ void ApplyPaletteChange(UBYTE index) { UWORD *col = BkgPalette; UWORD *col_s = SprPalette; +#ifdef CGB for (pal = 0; pal < 8; pal++) { for (c = 0; c < 4; ++c, ++col, ++col_s) { palette[c] = UpdateColor(index, *col); @@ -34,6 +35,7 @@ void ApplyPaletteChange(UBYTE index) { set_bkg_palette(pal, 1, palet...
docs: update a description of indirect approach
@@ -62,7 +62,7 @@ The direct approach is suitable for IoT devices capable of direct access to a bl The indirect approach accomodates IoT devices that can not otherwise directly access the blockchain node, due to various possible reasons such as an IP whitelist restriction and unmatched cryptographic algorithm capabilit...
Fix WKTGeometryWriter to NOT use scientific encoding
@@ -35,6 +35,12 @@ namespace carto { typedef std::function<std::shared_ptr<Geometry>(bool)> Func; + template <typename Num> + struct RealPolicy : karma::real_policies<Num> { + static unsigned int precision(Num n) { return 15; } + static int floatfield(Num n) { return karma::real_policies<Num>::fmtflags::fixed; } + }; +...
OcAppleDiskImageLib: Fix cleanup on load failure
@@ -322,15 +322,19 @@ OcAppleDiskImageInstallBlockIo ( Status = gBS->ConnectController (BlockIoHandle, NULL, NULL, TRUE); if (EFI_ERROR (Status)) { - gBS->UninstallMultipleProtocolInterfaces ( + Status = gBS->UninstallMultipleProtocolInterfaces ( BlockIoHandle, - &gEfiBlockIoProtocolGuid, - &DiskImageData->BlockIo, &gE...
Add HEX_EDNSDATA documentation
<RRs, one per line> SECTION ADDITIONAL <RRs, one per line> + HEX_EDNSDATA_BEGIN + <Hex data of an EDNS option> + HEX_EDNSDATA_END EXTRA_PACKET ; follow with SECTION, REPLY for more packets. HEX_ANSWER_BEGIN ; follow with hex data ; this replaces any answer packet constructed @@ -88,6 +91,12 @@ SECTION ANSWER www.nlnetl...
apps/utils: add command execution way for history The history functionality supports two ways to execute former commands. 1. By !number 2. By up and down keys This commit adds above in the history tab of the README.
@@ -505,7 +505,8 @@ Heap Allocation Information per User defined Group ## history -This command shows the history you executed, and you can re-execute it by calling the number with `!`. +This command shows the history you executed. +Using this functionality, you can re-execute the command by calling the number with `!`...
tests: fix buffer overflow in output_warnings
@@ -414,37 +414,37 @@ int output_warnings (Key * warningKey) buffer[10] = i / 10 % 10 + '0'; buffer[11] = i % 10 + '0'; printf ("buffer is: %s\n", buffer); - strncat (buffer, "/number", sizeof (buffer) - 1); + strncat (buffer, "/number", sizeof (buffer) - strlen(buffer) - 1); printf ("number: %s\n", keyString (keyGetMe...
Fixes immediately return NULL for CQs whose relation has already been dropped
@@ -656,13 +656,21 @@ GetContQueryForId(Oid id) Datum tmp; bool isnull; Query *query; + char *relname; if (!HeapTupleIsValid(tup)) return NULL; - cq = palloc0(sizeof(ContQuery)); row = (Form_pipeline_query) GETSTRUCT(tup); + relname = get_rel_name(row->relid); + if (relname == NULL) + { + ReleaseSysCache(tup); + return...
Fix glibc specific conditional for Mac OS/X MacOS seems to define __GLIBC__ but not __GLIBC_PREREQ.
@@ -231,7 +231,8 @@ static uint64_t get_timer_bits(void) # if defined(_POSIX_C_SOURCE) \ && defined(_POSIX_TIMERS) \ && _POSIX_C_SOURCE >= 199309L \ - && (!defined(__GLIBC__) || __GLIBC_PREREQ(2, 17)) + && (!defined(__GLIBC__) \ + || (defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 17))) { struct timespec ts; clockid_t ci...
add option to use wget
@@ -39,21 +39,21 @@ if [ ! -w `pwd` ]; then exit 1 fi -if [[ $curl_exists == "true" && $wget_exists == "true" ]]; then - prompt="Detected both curl and wget, which one would you like to use? [default is curl]" - options=("curl" "wget") - PS3="$prompt " - select opt in "${options[@]}" "Quit"; do - case "$REPLY" in - - 1...
Fix typo in PSA ECC curve config option Fix SEC to SECP as the curve name. This fixes failing tests that verified the config option was working.
@@ -406,7 +406,7 @@ extern "C" { #if defined(PSA_WANT_ECC_SECP_K1_256) #if !defined(MBEDTLS_PSA_ACCEL_ECC_SECP_K1_256) -#define MBEDTLS_ECP_DP_SEC256K1_ENABLED +#define MBEDTLS_ECP_DP_SECP256K1_ENABLED #define MBEDTLS_PSA_BUILTIN_ECC_SECP_K1_256 1 #endif /* !MBEDTLS_PSA_ACCEL_ECC_SECP_K1_256 */ #endif /* PSA_WANT_ECC_S...
docs: update vnfs name for leap
@@ -47,6 +47,6 @@ default location for this example is in [sms](*\#*) mkdir -p -m 755 $CHROOT # create chroot housing dir [sms](*\#*) mkdir -m 755 $CHROOT/dev # create chroot /dev dir [sms](*\#*) mknod -m 666 $CHROOT/dev/zero c 1 5 # create /dev/zero device -[sms](*\#*) wwmkchroot -v sles-12 $CHROOT # create base image...
Add additional orphan logging
@@ -139,6 +139,8 @@ namespace Miningcore.Blockchain.Bitcoin block.Status = BlockStatus.Orphaned; block.Reward = 0; result.Add(block); + + logger.Info(() => $"[{LogCategory}] Block {block.BlockHeight} classified as orphaned due to daemon error {cmdResult.Error.Code}"); } else @@ -153,6 +155,8 @@ namespace Miningcore.Blo...
chore(stale) adjust issue closure timeouts
@@ -11,10 +11,10 @@ jobs: - uses: actions/stale@v3 with: repo-token: ${{ secrets.LVGL_BOT_TOKEN }} - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' - stale-pr-message: 'This PR is stale because it has been ope...
FlaatOut 2 update fixes
@@ -89,8 +89,22 @@ void ShowIntroHook() //Aspect Ratio auto pattern = hook::pattern("D9 05 ? ? ? ? 8B 44 24 04 8B 4C 24"); + if (!pattern.empty()) + { injector::WriteMemory(pattern.get_first<float>(2), &Screen.fWidth, true); injector::WriteMemory(pattern.get_first<float>(18), &Screen.fHeight, true); + } + else + { + pa...
esp32s3: use wdt/systimer hal rom implement as default for esp32s3
@@ -67,7 +67,7 @@ menu "Hardware Abstraction Layer (HAL) and Low Level (LL)" config HAL_SYSTIMER_HAS_ROM_IMPL bool - default y if IDF_TARGET_ESP32C2 + default y if IDF_TARGET_ESP32C2 # TODO: IDF-4917 config HAL_SYSTIMER_ROM_IMPL bool "Use systimer HAL implementation in ROM" @@ -84,7 +84,7 @@ menu "Hardware Abstraction ...
Release: Add note about plugin/binding requirement
@@ -175,6 +175,9 @@ Many problems were resolved with the following fixes: - The [Shell Recorder][] counts the number of executed tests properly again. - CMake now fails if the required plugins [list](http://libelektra.org/plugins/list) or [spec](http://libelektra.org/plugins/spec) (on non-[MinGW](http://mingw.org) plat...
acrn-config: add 'xhci' usb mediator for laag and waag Enable xhci usb mediator for whl-ipc-i5/whl-ipc-7 and KBL NUC for LaaG and WaaG. Acked-by: Victor Sun
@@ -401,6 +401,26 @@ def vboot_arg_set(dm, vmid, config): print(" $boot_image_option \\",file=config) +def xhci_args_set(names, vmid, config): + board_name = names['board_name'] + uos_type = names['uos_types'][vmid] + + # Get locate of vmid + idx = 0 + #if board_name not in ("whl-ipc-i5", "whl-ipc-i7"): + if uos_type i...
Assign used_msg as soon as message start to be read.
@@ -738,9 +738,9 @@ error_return_t MsgAlloc_PullMsgFromLuosTask(uint16_t luos_task_id, msg_t **retur //find the oldest message allocated to this module if (luos_task_id < luos_tasks_stack_id) { - *returned_msg = luos_tasks[luos_task_id].msg_pt; + used_msg = luos_tasks[luos_task_id].msg_pt; + *returned_msg = (msg_t *)us...
Fix triggered an assetion when replacing __cl_printf Fix LLVM assertion was triggered when replacing calls to __cl_printf to __pocl_printf due to return value type mismatch. LLVM changed return value of __cl_printf to void when no one was using the value and thus lead to the issue.
@@ -546,9 +546,15 @@ static void replacePrintfCalls(Value *pb, Value *pbp, Value *pbc, bool isKernel, CallInst *CI = it.first; CallInst *newCI = it.second; + // LLVM may modify the result type of the called function to void. + if (CI->getType()->isVoidTy()) { + newCI->insertBefore(CI); + CI->eraseFromParent(); + } else...
Docs: incorrect partitioned table example
<p>This example <cmdname>CREATE TABLE</cmdname> command creates a range partitioned table.</p> <codeblock>CREATE TABLE sales(order_id int, item_id int, amount numeric(15,2), date date, yr_qtr int) - <b>range partitioned by yr_qtr</b>;</codeblock> + PARTITION BY RANGE (yr_qtr) (start (201501) INCLUSIVE end (201504) INCL...
build: Makefile clean gcov files
@@ -347,6 +347,8 @@ cscope: clean: $(RM) *.[odsa] $(SUBDIRS:%=%/*.[odsa]) + $(RM) *.gcno $(SUBDIRS:%=%/*.gcno) + $(RM) *.gcda $(SUBDIRS:%=%/*.gcda) $(RM) *.elf $(TARGET).lid *.map $(TARGET).lds $(TARGET).lid.xz $(RM) include/asm-offsets.h version.c .version $(RM) skiboot.info external/gard/gard.info external/pflash/pfl...
ipfix-export: don't check the result of pool_get The code to check the exp is set after the call to pool_get() is marked as unreachable in coverity. This is becasue if it fails in pool_get then the it panics. Remove the unreachable code. Type: fix
@@ -107,8 +107,6 @@ vl_api_set_ipfix_exporter_t_internal ( if (pool_elts (frm->exporters) >= IPFIX_EXPORTERS_MAX) return VNET_API_ERROR_INVALID_VALUE; pool_get (frm->exporters, exp); - if (!exp) - return VNET_API_ERROR_INVALID_VALUE; } } else
viofs-svc: fix coding style in VirtFsFuseRequest function.
@@ -245,12 +245,11 @@ static NTSTATUS VirtFsFuseRequest(HANDLE Device, NTSTATUS Status = STATUS_SUCCESS; DWORD BytesReturned = 0; BOOL Result; - struct fuse_out_header *hdr = OutBuffer; + struct fuse_in_header *in_hdr = InBuffer; + struct fuse_out_header *out_hdr = OutBuffer; - DBG(">>req: %d unique: %Iu len: %u", - ((...
mmapstorage: remove unused variable, closes
@@ -193,7 +193,6 @@ static int copyFile (int sourceFd, int destFd) return -1; } - char * pos = buf; ssize_t writtenBytes = 0; while (readBytes > 0) { @@ -206,7 +205,6 @@ static int copyFile (int sourceFd, int destFd) return -1; } readBytes -= writtenBytes; - pos += writtenBytes; } }
less sim time for hls_search
n=0 # count amount of tests executed (exception for subsecond calls) max_rc=0 # track the maximum RC to return at the end loops=1; - rnd10=$((1+RANDOM%10)) - rnd20=$((1+RANDOM%20)) - rnd32=$((1+RANDOM%32)) - rnd1k=$((1+RANDOM%1024)) + rnd10=$((2+RANDOM%9)) + rndodd20=$((10+2*RANDOM%5)) + rnd20=$((2+RANDOM%19)) + rnd32=...
Ensure that assert's and args are effect-free
@@ -523,6 +523,10 @@ func (p *parser) parseAssertNode() (*a.Node, error) { if err != nil { return nil, err } + if condition.Effect() != 0 { + return nil, fmt.Errorf(`parse: assert-condition %q is not effect-free at %s:%d`, + condition.Str(p.tm), p.filename, p.line()) + } reason, args := t.ID(0), []*a.Node(nil) if p.pee...
Document DESTDIR
@@ -97,6 +97,15 @@ muse. Links with the runtime $MYR_RT instead of the default of prefix/lib/myr/_myrrt.o. +.TP +.B DESTDIR +Specified that when the files installed by +.I mbld install +are put into place, the paths are prefixed with +.I DESTDIR. +This fits with the conventions of many package systems, +allowing Myrddi...
corrects boot comments
@@ -1293,7 +1293,6 @@ _sist_dawn(u3_noun sed) c3_c* url_c = eth_t ? u3_Host.ops_u.eth_c : "http://localhost:8545"; { - // XX check parent if moon // +hull:constitution:ethe: on-chain state u3_noun hul; @@ -1572,7 +1571,7 @@ u3_sist_boot(void) u3z(rac); } - // Create the ship directory. + // Create the event log _sist_z...
taeko: add thermal temperature BRANCH=main TEST=make -j BOARD=taeko
@@ -322,26 +322,26 @@ const struct temp_sensor_t temp_sensors[] = { BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); /* - * TODO(b/180681346): update for Alder Lake/brya + * TODO(b/201021109): update for Alder Lake/brya * * Tiger Lake specifies 100 C as maximum TDP temperature. THRMTRIP# occurs at * 130 C. ...
Fix build on FreeBSD/powerpc64le
@@ -21,6 +21,8 @@ ifeq ($(ARCH), amd64) override ARCH=x86_64 else ifeq ($(ARCH), powerpc64) override ARCH=power +else ifeq ($(ARCH), powerpc64le) +override ARCH=power else ifeq ($(ARCH), powerpc) override ARCH=power else ifeq ($(ARCH), i386)
docs(bar) fix default range Related:
@@ -22,7 +22,7 @@ Not only the end, but also the start value of the bar can be set, which changes ### Value and range A new value can be set by `lv_bar_set_value(bar, new_value, LV_ANIM_ON/OFF)`. The value is interpreted in a range (minimum and maximum values) which can be modified with `lv_bar_set_range(bar, min, max)...
Enable compiling with older versions of GCC
* express or implied. See the License for the specific language governing * permissions and limitations under the License. */ +#include <stdlib.h> #include <sys/param.h> #include "pq-crypto/pq-random.h"
Avoid erasing entire flash and add progress bar
#include <stdlib.h> using namespace blit; +constexpr uint32_t qspi_flash_sector_size = 64 * 1024; + extern QSPI_HandleTypeDef hqspi; extern CDCCommandStream g_commandStream; @@ -103,9 +105,16 @@ bool FlashLoader::Flash(const char *pszFilename) return false; } - // quick and dirty erase - QSPI_WriteEnable(&hqspi); - qsp...
sharpen the support section
@@ -55,6 +55,22 @@ works in the same way as described for OpenID Connect above. See the [Wiki](http For an exhaustive description of all configuration options, see the file `auth_openidc.conf` in this directory. This file can also serve as an include file for `httpd.conf`. +Support +------- + +#### Community Support +F...
proc: allow for clearing locks set by another thread JIRA:
@@ -1539,11 +1539,11 @@ static void proc_lockUnlock(lock_t *lock) static int _proc_lockClear(lock_t *lock) { - thread_t *current = proc_current(); + thread_t *owner = lock->owner; spinlock_ctx_t sc; int ret; - if (lock->owner != current) { + if (owner == NULL) { return -EPERM; } @@ -1551,7 +1551,7 @@ static int _proc_l...
Add required libfl-dev in Ubuntu Bionic Otherwise the `make` fails with lack of `FlexLexer.h` error.
@@ -335,7 +335,7 @@ sudo apt-get update # For Bionic (18.04 LTS) sudo apt-get -y install bison build-essential cmake flex git libedit-dev \ - libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev + libllvm6.0 llvm-6.0-dev libclang-6.0-dev python zlib1g-dev libelf-dev libfl-dev # For Eoan (19.10) or Foca...
Propagated NXT_RUBY_CFLAGS to Ruby checks. This fixes an issue addressed in on FreeBSD 12. The problem manifested itself as: configuring Ruby module checking for -fdeclspec ... found checking for Ruby library ... not found checking for Ruby library in /usr/local/lib ... not found ./configure: error: no Ruby found.
@@ -101,7 +101,7 @@ if /bin/sh -c "$NXT_RUBY -v" >> $NXT_AUTOCONF_ERR 2>&1; then nxt_feature="Ruby library" nxt_feature_name="" nxt_feature_run=value - nxt_feature_incs="${NXT_RUBY_INCPATH}" + nxt_feature_incs="${NXT_RUBY_INCPATH} ${NXT_RUBY_CFLAGS}" nxt_feature_libs="${NXT_RUBY_LIBS}" nxt_feature_test=" #include <ruby...
[apps] Fix default -march for LLVM compilation in CI
@@ -32,7 +32,11 @@ COMPILER ?= llvm RISCV_XLEN ?= 32 -# Compiler -march +RISCV_ABI ?= ilp32 +RISCV_TARGET ?= riscv$(RISCV_XLEN)-unknown-elf +ifeq ($(COMPILER),gcc) + # Use GCC + # GCC compiler -march ifeq ($(xpulpimg),1) RISCV_ARCH ?= rv$(RISCV_XLEN)imaXpulpimg RISCV_ARCH_AS ?= $(RISCV_ARCH) @@ -40,17 +44,16 @@ else RI...
Add Fujitsu compiler
@@ -65,6 +65,7 @@ $compiler = OPEN64 if ($data =~ /COMPILER_OPEN64/); $compiler = SUN if ($data =~ /COMPILER_SUN/); $compiler = IBM if ($data =~ /COMPILER_IBM/); $compiler = DEC if ($data =~ /COMPILER_DEC/); +$compiler = FUJITSU if ($data =~ /COMPILER_FUJITSU/); $compiler = GCC if ($compiler eq ""); $os = Linux if ($da...
Removed leftover from 939
@@ -936,7 +936,6 @@ static void inter_recon_bipred_avx2(const int hi_prec_luma_rec0, break; case 16: - _MM_SHUFFLE temp_epi8 = _mm256_permute4x64_epi64(_mm256_packus_epi16(temp_y_epi16, temp_y_epi16), _MM_SHUFFLE(0, 2, 1, 3)); _mm_storeu_si128((__m128i*)&(lcu->rec.y[(y_in_lcu)* LCU_WIDTH + x_in_lcu]), _mm256_castsi256_...
config_tools: remove the assume of virtio-net device name Since PR has removed the assume of virtio-net device name, we also remove it in the launch script generation logic.
@@ -128,7 +128,7 @@ function add_virtual_device() { if [ "${kind}" = "virtio-net" ]; then # Create the tap device tap_conf=${options%,*} - create_tap "tap_${tap_conf#tap=}" >> /dev/stderr + create_tap "${tap_conf#tap=}" >> /dev/stderr fi echo -n "-s ${slot},${kind}"
fortuna reorg
@@ -2749,8 +2749,6 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck) } } - if (FortunaReorgBlock) FortunaReorgBlock = false; - // ppcoin: track money supply and mint amount info pindex->nMint = nValueOut - nValueIn + nFees; pindex->nMoneySupply = (pindex->pprev? pindex->pprev->nMoneySupply...
Adding ota image geneator script
@@ -328,7 +328,9 @@ add_custom_command( COMMAND "${xc32_bin2hex}" "$<TARGET_FILE:${exe_target}>" COMMAND "echo" "Running xc32-objcopy" COMMAND "echo" ${XC32_BIN}/xc32_objcopy - COMMAND "${xc32_objcopy}" -I ihex $<TARGET_FILE_DIR:${exe_target}>/${exe_target}.hex -O binary $<TARGET_FILE_DIR:${exe_target}>/${exe_target}.i...
armv7: To support domain spanning, use different vregion per core This should fix the proc_mgmt_test on armv7
#include <stdio.h> // Location of VSpace managed by this system. -#define VSPACE_BEGIN ((lvaddr_t)1UL*1024*1024*1024) //0x40000000 +#define VSPACE_BEGIN ((lvaddr_t)(256UL << 20) * (disp_get_core_id() + 1)) // Amount of virtual address space reserved for mapping frames // backing refill_slabs. @@ -855,8 +855,7 @@ static...
Fix bottle upload problem & typo
on: push: paths: - - '**/nightlyHomebrew-build.yml' + - '**/nightly-Homebrew-build.yml' pull_request: branches: - develop @@ -51,13 +51,16 @@ jobs: # the HEAD flags tell Homebrew to build the develop branch fetch via git - name: Create bottle - run: brew bottle -v openblas + run: | + brew bottle -v openblas + mkdir bot...
clay: print stacktrace on build failure
!: =- ?: ?=(%& -<) p.- %. [[~ ~] fod] - (slog leaf+"clay: read-at-aeon fail {<[desk=syd mun]>}" ~) + (slog leaf+"clay: read-at-aeon fail {<[desk=syd mun]>}" p.-) %- mule |. ?- care.mun %d
VOM: routes support multipath so set is_multipath in route update
@@ -49,7 +49,7 @@ update_cmd::issue(connection& con) payload.table_id = m_id; payload.is_add = 1; - payload.is_multipath = 0; + payload.is_multipath = 1; m_prefix.to_vpp(&payload.is_ipv6, payload.dst_address, &payload.dst_address_length);
docs/esp32: Fix machine.Timer quickref to specify HW timers. Also remove trailing spaces on other lines.
@@ -118,17 +118,21 @@ Use the :mod:`time <utime>` module:: Timers ------ -Virtual (RTOS-based) timers are supported. Use the :ref:`machine.Timer <machine.Timer>` class -with timer ID of -1:: +The ESP32 port has four hardware timers. Use the :ref:`machine.Timer <machine.Timer>` class +with a timer ID from 0 to 3 (inclus...
Minor fix of code duplication. Removes 3~ lines of code that didn't need to be restated.
@@ -186,11 +186,7 @@ static void log_kernel(void) { static bool drop_permissions(void) { if (getuid() != geteuid() || getgid() != getegid()) { - if (setgid(getgid()) != 0) { - sway_log(SWAY_ERROR, "Unable to drop root, refusing to start"); - return false; - } - if (setuid(getuid()) != 0) { + if (setuid(getuid()) != 0 |...
decision: add some ideas by
@@ -108,6 +108,26 @@ This allows notification and change tracking functionality to work determine and A similiar thing was already attempted for values, i.e. `meta:/origvalue`. +### Create an API for transformations + +Plugins must use a special function to transform key names, e.g.: + +```c +typedef const char * (*Ele...
odissey: refactor logger function
@@ -46,16 +46,22 @@ typedef struct int msg_len; } od_logger_msg_t; -static char *od_logger_event_tab[] = +typedef struct { + od_logsystem_prio_t syslog_prio; + char *ident; + char *ident_short; +} od_logger_ident_t; + +static od_logger_ident_t od_logger_ident_tab[] = { - [OD_LOG] = "info", - [OD_LOG_ERROR] = "error", -...
Scroll to bottom after printing
@@ -34,6 +34,7 @@ class ConsoleViewController: UIViewController, UITextViewDelegate { DispatchQueue.main.async { self.textView?.text.append(output) self.textViewDidChange(self.textView) + self.textView?.scrollToBottom() } } }
README.md: Add downloads counter badge
@@ -2,11 +2,12 @@ Open source version of the STMicroelectronics Stlink Tools ========================================================== [![GitHub release](https://img.shields.io/github/release/texane/stlink.svg)](https://github.com/texane/stlink/releases/latest) +[![BSD licensed](https://img.shields.io/badge/license-BS...
chat-js: adjust line height in chat input Set the line height of the input to be the same as a sent message. Additionally fixes an issue that would cause unnecessary scrollbars to be shown.
@@ -8,7 +8,11 @@ import { Sigil } from '/components/lib/icons/sigil'; import { uuid, uxToHex, hexToRgba } from '/lib/util'; -const DEFAULT_INPUT_HEIGHT = 28; + +// line height +const INPUT_LINE_HEIGHT = 28; + +const INPUT_TOP_PADDING = 3; function getAdvance(a, b) { @@ -103,7 +107,7 @@ export class ChatInput extends Co...
Add missing PSA_HASH_BLOCK_LENGTH macro.
PSA_ALG_HMAC_GET_HASH(alg) == PSA_ALG_SHA3_512 ? 64 : \ 0) +/** The input block size of a hash algorithm, in bytes. + * + * Hash algorithms process their input data in blocks. Hash operations will + * retain any partial blocks until they have enough input to fill the block or + * until the operation is finished. + * Th...
Fix AFR_ENABLE_DEMOS in CMake GUI
@@ -63,7 +63,8 @@ option(AFR_ENABLE_DEMOS "Build demos for Amazon FreeRTOS." ON) # Provide an option to enable tests. Also set an helper variable to use in generator expression. option(AFR_ENABLE_TESTS "Build tests for Amazon FreeRTOS. Requires recompiling whole library." OFF) if(AFR_ENABLE_TESTS) - set(AFR_ENABLE_DEMO...
Driver: Struct order matters Otherwise you get a nontrivial runtime erorr when creating instances.
@@ -15,6 +15,7 @@ struct _mp_obj_type_id_t { uint16_t flags; uint16_t name; mp_print_fun_t print; + mp_make_new_fun_id_t make_new; // Modified type compared to MicroPython mp_call_fun_t call; mp_unary_op_fun_t unary_op; mp_binary_op_fun_t binary_op; @@ -26,7 +27,6 @@ struct _mp_obj_type_id_t { const void *protocol; con...
hw/mcu/cmac: Dispatch RF calibration req Handled in mynewt-nimble.
#include "cmac_priv.h" #include "CMAC.h" +extern void ble_rf_calibrate_req(void); + void SYS2CMAC_IRQHandler(void) { @@ -41,6 +43,10 @@ SYS2CMAC_IRQHandler(void) cmac_sleep_recalculate(); } + if (pending_ops & CMAC_PENDING_OP_RF_CAL) { + ble_rf_calibrate_req(); + } + CMAC->CM_EXC_STAT_REG = CMAC_CM_EXC_STAT_REG_EXC_SYS...
oc_oscore_engine:refine secure mcast logic
@@ -161,6 +161,14 @@ oc_oscore_recv_message(oc_message_t *message) goto oscore_recv_error; } + oc_sec_cred_t *c = (oc_sec_cred_t *)oscore_ctx->cred; + if (!(message->endpoint.flags & MULTICAST) && + c->credtype != OC_CREDTYPE_OSCORE) { + OC_ERR("***unicast message protected using group OSCORE context; " + "silently ign...
IO GLib: Add workaround to fix compilation error
@@ -93,6 +93,17 @@ if (FOUND_NAME GREATER -1) set (SRC_FILES notificationReload.c) set (SOURCES ${SRC_FILES} ${HDR_FILES}) if (BUILD_FULL OR BUILD_STATIC) + # ~~~ + # Work around an error that occurs if only `BUILD_FULL`, but not `BUILD_SHARED` is enabled: + # + # > src/include/kdbio/glib.h:11:10: fatal error: glib.h: ...
refactor(examples) drop JS-specific code from header.py This logic was moved into the JS simulator itself
import lvgl as lv import usys as sys -# JS requires a special import -if sys.platform == 'javascript': - import imp - sys.path.append('https://raw.githubusercontent.com/lvgl/lv_binding_micropython/4c04dba836a5affcf86cef107b538e45278117ae/lib') - import display_driver
doc: add short def of hole/non-leaf value
# Holes and Non-leaf values in KeySets +A hole is the absence of a key, which has keys below it, e.g. if `some/key` is missing in a property file: + +```ini +some = value +some/key/below = value +``` + +`some` has a non-leaf value. + + ## Problem Config files ideally do not copy any structure if they only want to
Remove superfluous casts in LMS and LMOTS
@@ -393,9 +393,7 @@ int mbedtls_lmots_calculate_public_key_candidate( const mbedtls_lmots_parameters return ( ret ); } - ret = public_key_from_hashed_digit_array( params, - ( const unsigned char( *)[MBEDTLS_LMOTS_N_HASH_LEN] )y_hashed_digits, - out ); + ret = public_key_from_hashed_digit_array( params, y_hashed_digits,...
Completions: Update help text for depth options
@@ -418,12 +418,12 @@ __fish_kdb_add_option '__fish_kdb_subcommand_includes merge mount remount smount __fish_kdb_add_option '__fish_kdb_subcommand_includes info' 'load' 'l' 'Load plugin even if system/elektra is available' # --max-depth -M -set -l description 'Specify the maximum depth of completion suggestions (unlim...
py/obj.h: Remove obsolete mp_obj_new_fun_viper() declaration.
@@ -649,7 +649,6 @@ mp_obj_t mp_obj_new_exception_msg(const mp_obj_type_t *exc_type, const char *msg mp_obj_t mp_obj_new_exception_msg_varg(const mp_obj_type_t *exc_type, const char *fmt, ...); // counts args by number of % symbols in fmt, excluding %%; can only handle void* sizes (ie no float/double!) mp_obj_t mp_obj_...
AFR NimBLE: Save pusHandlesBuffer from AFR service locally
@@ -529,6 +529,7 @@ void vESPBTGATTServerCleanup( void ) for( index = 0; index < serviceCnt; index++ ) { prvCleanupService( &espServices[ index ] ); + vPortFree( ( void * ) afrServices[ index ]->pusHandlesBuffer ); vPortFree( ( void * ) afrServices[ index ] ); } @@ -884,6 +885,7 @@ BTStatus_t prvAddServiceBlob( uint8_t...
direct-controls: mambo fix for multiple chips
@@ -29,21 +29,27 @@ extern unsigned long callthru_tcl(const char *str, int len); static void mambo_sreset_cpu(struct cpu_thread *cpu) { + uint32_t chip_id = pir_to_chip_id(cpu->pir); uint32_t core_id = pir_to_core_id(cpu->pir); uint32_t thread_id = pir_to_thread_id(cpu->pir); char tcl_cmd[50]; - snprintf(tcl_cmd, sizeo...
Fix dead code and reduce number of return points in _pe_iterate_resources
@@ -328,7 +328,8 @@ int _pe_iterate_resources( { if (!struct_fits_in_pe(pe, entry, IMAGE_RESOURCE_DIRECTORY_ENTRY)) { - return RESOURCE_ITERATOR_ABORTED; + result = RESOURCE_ITERATOR_ABORTED; + break; } switch(rsrc_tree_level) @@ -352,11 +353,8 @@ int _pe_iterate_resources( PIMAGE_RESOURCE_DIRECTORY directory = (PIMAGE...
Actor move event uses actor speed
@@ -33,7 +33,6 @@ UINT16 actor_move_dest_x = 0; UINT16 actor_move_dest_y = 0; BYTE actor_move_dir_x = 0; BYTE actor_move_dir_y = 0; -BYTE actor_move_speed = 1; UBYTE scene_stack_ptr = 0; SCENE_STATE scene_stack[MAX_SCENE_STATES] = {{0}}; UBYTE wait_time = 0; @@ -145,21 +144,33 @@ UBYTE ScriptUpdate_MoveActor() { // Act...
board/eve/usb_pd_policy.c: Format with clang-format BRANCH=none TEST=none
@@ -50,8 +50,8 @@ static void board_vbus_update_source_current(int port) * is controlled by GPIO_USB_C0/1_5V_EN. Both of these signals * can remain outputs. */ - gpio_set_level(gpio_3a_en, vbus_rp[port] == TYPEC_RP_3A0 ? - 1 : 0); + gpio_set_level(gpio_3a_en, + vbus_rp[port] == TYPEC_RP_3A0 ? 1 : 0); gpio_set_level(gpi...
doc: clarify that auth. names are lower case and case-sensitive This is true even for acronyms that are usually upper case, like LDAP. Reported-by: Alvaro Herrera Discussion: Backpatch-through: 10
@@ -413,7 +413,9 @@ hostnogssenc <replaceable>database</replaceable> <replaceable>user</replaceabl <para> Specifies the authentication method to use when a connection matches this record. The possible choices are summarized here; details - are in <xref linkend="auth-methods"/>. + are in <xref linkend="auth-methods"/>. ...
add survival dataset generating code
@@ -184,6 +184,34 @@ def generate_dataset_with_num_and_cat_features( return (DataFrame(feature_columns), labels) +def generate_survival_dataset(seed=20201015): + np.random.seed(seed) + + X = np.random.rand(200, 20)*10 + + mean_y = np.sin(X[:, 0]) + + y = np.random.randn(200, 10) * 0.3 + mean_y[:, None] + + y_lower = np...
[chainamker][#435]modify url and name storage method
@@ -84,12 +84,17 @@ __BOATSTATIC BOAT_RESULT chainmakerWalletPrepare(void) memcpy(wallet_config.user_cert_content.content, chainmaker_user_cert, wallet_config.user_cert_content.length); //set url and name - wallet_config.node_cfg.node_url = chainmaker_node_url; - wallet_config.node_cfg.host_name = chainmaker_host_name;...
Update header guards openrandom.h + linter pass
@@ -23,7 +23,9 @@ typedef struct { //=========================== prototypes ====================================== void openrandom_init(void); + uint16_t openrandom_get16b(void); + uint16_t openrandom_getRandomizePeriod(uint16_t period, uint16_t range); /**
fix cuda tool finding
@@ -45,6 +45,8 @@ function main(toolname, parse, opt) opt = opt or {} opt.parse = opt.parse or parse + local program = nil + -- always keep consistency with cuda cache local toolchains = find_cuda() if toolchains and toolchains.bindir then @@ -52,8 +54,7 @@ function main(toolname, parse, opt) end -- not found? attempt ...
Update contributor for
<github-issue id="766"/> <github-pull-request id="1562"/> </commit> + <commit subject="Update contributor for 6e635764."/> <release-item-contributor-list> - <release-item-ideator id="mahomed.h"/> + <release-item-ideator id="mahomed.hussein"/> <release-item-contributor id="reid.thompson"/> <release-item-reviewer id="dav...
Ignoring HUP signal in main process.
@@ -52,6 +52,8 @@ static void nxt_main_process_sigusr1_handler(nxt_task_t *task, void *obj, void *data); static void nxt_main_process_sigchld_handler(nxt_task_t *task, void *obj, void *data); +static void nxt_main_process_signal_handler(nxt_task_t *task, void *obj, + void *data); static void nxt_main_cleanup_worker_pro...
Make test_alloc_pi_in_epilog() robust vs allocation pattern changes
@@ -9508,26 +9508,18 @@ START_TEST(test_alloc_pi_in_epilog) "<doc></doc>\n" "<?pi in epilog?>"; int i; -#define MAX_ALLOC_COUNT 10 - int repeat = 0; +#define MAX_ALLOC_COUNT 15 for (i = 0; i < MAX_ALLOC_COUNT; i++) { - /* Repeat certain counts to allow for cached allocations */ - if (i == 3 && repeat == 1) { - i -= 2; ...
Analysis workflow, remove usage from Configure.
@@ -250,10 +250,10 @@ jobs: cd .. export prepath=`pwd` echo prepath=${prepath} - echo "curl cpanm" - curl -L -k -s -S -o cpanm https://cpanmin.us/ - echo "perl cpanm Pod::Usage" - perl cpanm Pod::Usage || echo whatever + #echo "curl cpanm" + #curl -L -k -s -S -o cpanm https://cpanmin.us/ + #echo "perl cpanm Pod::Usage"...
commented out tests in test_iinq.c to see if it resolves jenkins compilation issues
@@ -233,12 +233,13 @@ iinq_get_suite( ) { planck_unit_suite_t *suite = planck_unit_new_suite(); +/* PLANCK_UNIT_ADD_TO_SUITE(suite, iinq_test_create_open_source_intint); PLANCK_UNIT_ADD_TO_SUITE(suite, iinq_test_create_open_source_string10string20); PLANCK_UNIT_ADD_TO_SUITE(suite, iinq_test_create_insert_update_delete_...
Refactor to support Meta in shortcuts Move the Ctrl and Meta key down checks to each shortcut individually, so that we can add a shortcut involving Meta.
@@ -155,14 +155,14 @@ void input_manager_process_key(struct input_manager *input_manager, SDL_bool alt = event->keysym.mod & (KMOD_LALT | KMOD_RALT); SDL_bool meta = event->keysym.mod & (KMOD_LGUI | KMOD_RGUI); - if (alt | meta) { + if (alt) { // no shortcut involves Alt or Meta, and they should not be forwarded // to ...
more things to Hoon
@@ -10,20 +10,25 @@ import Untyped.Core data Hoon a = HVar a + | HAtm Atom | HCons (Hoon a) (Hoon a) | BarCen (Cases a) | BarHep a a (Hoon a) (Hoon a) | BarTis a (Hoon a) - | CenBar a (Hoon a) - | CenGar (Hoon a) (Hoon a) - | CenGal (Hoon a) (Hoon a) + | CenDot (Hoon a) (Hoon a) + | CenHep (Hoon a) (Hoon a) -- | CenKet...
removes u3_sist declarations
void u3_http_io_poll(void); - /** Disk persistence. - **/ - /* u3_sist_boot(): restore or create pier from disk. - */ - void - u3_sist_boot(void); - - /* u3_sist_pack(): write a log entry to disk. - ** - ** XX Synchronous. - ** - ** typ_w is a mote describing the entry type: %ov for Arvo - ** logs, %ra for Raft events....
group-view: automatically join the group feed if one is present when we first join a group
?. =(group.update rid) jn-core =. jn-core (cleanup %done) ?. hidden:(need (scry-group:grp rid)) - :: TODO: join group feed if one is present + =/ list-md=(list [=md-resource:metadata =association:metadata]) + %+ skim ~(tap by associations.update) + |= [=md-resource:metadata =association:metadata] + =(app-name.md-resour...
components/screensaver: flip if conditions for better readability
@@ -45,9 +45,9 @@ static void _render(component_t* component) // if the screensaver is at the edge (or outside e.g. due to screensaver_reset), and moving // away from the screen, flip the direction so it will always be moving inside or towards // the screen - if (((image->position.left + image->dimension.width) >= comp...
mmapstorage: small fixes
@@ -183,7 +183,8 @@ static void mmapToKeySet (char * mappedRegion, KeySet * returned) KeySet * keySet = (KeySet *) (mappedRegion + SIZEOF_MMAPINFO); returned->array = keySet->array; returned->size = keySet->size; - ksRewind(returned); + returned->alloc = keySet->alloc; + ksRewind(returned); // cursor = 0; current = 0 r...
py/asmthumb: Detect presence of I-cache using CMSIS macro. Fixes issue
@@ -51,7 +51,7 @@ void asm_thumb_end_pass(asm_thumb_t *as) { (void)as; // could check labels are resolved... - #if defined(MCU_SERIES_F7) + #if __ICACHE_PRESENT == 1 if (as->base.pass == MP_ASM_PASS_EMIT) { // flush D-cache, so the code emitted is stored in memory MP_HAL_CLEAN_DCACHE(as->base.code_base, as->base.code_s...
fix path to rn_dev_env script
@@ -293,10 +293,12 @@ Example: LD_LIBRARY_PATH=/home/username/TU/libelektra/cmake-build-debug/lib -If you want to run built `kdb` outside of CLion, the recommended way is to run this script from your build directory: +If you want to run built `kdb` outside of CLion, the recommended way is to run this script from your b...
viofs: delete SDV files as part of cleanup script
call :rmdir Install call :rmdir Install_Debug call :rmdir Release +call :rmdir pci\sdv call :rmfiles *.log call :rmfiles *.err call :cleandir +del pci\smvbuild.log +del pci\smvstats.txt +del pci\viofs.DVL.XML pushd pci call :cleandir
increment error count if GPS device went down
@@ -5116,6 +5116,12 @@ static const char *gpgga = "$GPGGA"; static const char *gprmc = "$GPRMC"; nmeatemplen = read(fd_gps, nmeatempsentence, NMEA_MAX -1); +if(nmeatemplen < 0) + { + perror("\nfailed to read NMEA sentence"); + errorcount++; + return; + } if(nmeatemplen < 44) return; nmeatempsentence[nmeatemplen] = 0; n...
Fix sslapitest.c if built with no-legacy We skip a test that uses the no-legacy option. Unfortuantely there is no OPENSSL_NO_LEGACY to test, so we just check whether we were successful in loading the legacy provider - and if not we skip the test.
@@ -7972,9 +7972,18 @@ static int test_pluggable_group(int idx) OSSL_PROVIDER *legacyprov = OSSL_PROVIDER_load(libctx, "legacy"); const char *group_name = idx == 0 ? "xorgroup" : "xorkemgroup"; - if (!TEST_ptr(tlsprov) || !TEST_ptr(legacyprov)) + if (!TEST_ptr(tlsprov)) goto end; + if (legacyprov == NULL) { + /* + * In...
Ignore GCC's -Wmaybe-uninitialize warnings
@@ -5,7 +5,8 @@ local c_compiler = {} c_compiler.CC = "cc" c_compiler.CPPFLAGS = "-I./lua/src -I./runtime" c_compiler.CFLAGS_BASE = "-std=c99 -g -fPIC" -c_compiler.CFLAGS_WARN = "-Wall -Wundef -Wshadow -Wpedantic -Wno-unused" +c_compiler.CFLAGS_WARN = "-Wall -Wundef -Wshadow -Wpedantic -Wno-unused " .. + "-Wno-maybe-un...
Fix signature of lua_rawgeti and lua_rawseti Both were using CInt instead of LuaInteger.
@@ -433,7 +433,7 @@ foreign import ccall unsafe "lua.h lua_rawgeti" #else foreign import ccall safe "lua.h lua_rawgeti" #endif - lua_rawgeti :: LuaState -> StackIndex -> CInt -> IO () + lua_rawgeti :: LuaState -> StackIndex -> LuaInteger -> IO () -- | See <https://www.lua.org/manual/5.3/manual.html#lua_createtable lua_...
Renamed targets + help
@@ -33,15 +33,38 @@ endif # Targets # +help: + @echo + @echo "WalletKit Build Targets" + @echo + @echo " btc-test: Builds Bitcoin 'test.c' directly with all required WalletKit sources" + @echo + @echo " btc-text-run: Runs Bitcoin tests" + @echo + @echo " wallet-kit-libs: Builds the WalletKit shared library 'WalletKitCo...
turtle: simplify state tracking
@@ -26,9 +26,9 @@ static uint8_t turtle_axis = 0; static uint8_t turtle_dir = 0; void turtle_mode_start() { - if (!turtle_ready && flags.on_ground) { + if (!turtle_ready && flags.on_ground && turtle_state == TURTLE_STAGE_IDLE) { + // only enable turtle if we are onground and not recovering from a interrupted turtle tur...
l2: l2_patch_main should not be static Without understanding what is going on, a pattern from l2_fwd.c is applied to l2_patch.c file. Type: fix Fixes: Ticket:
@@ -49,7 +49,11 @@ format_l2_patch_trace (u8 * s, va_list * args) return s; } -static l2_patch_main_t l2_patch_main; +#ifndef CLIB_MARCH_VARIANT +l2_patch_main_t l2_patch_main; +#else +extern l2_patch_main_t l2_patch_main; +#endif extern vlib_node_registration_t l2_patch_node;
api/backup: fix typo in test variable
@@ -258,7 +258,7 @@ mod tests { #[test] pub fn test_list() { - const EXPECTED_TIMESTMAP: u32 = 1601281809; + const EXPECTED_TIMESTAMP: u32 = 1601281809; const DEVICE_NAME_1: &str = "test device name"; const DEVICE_NAME_2: &str = "another test device name"; @@ -283,7 +283,7 @@ mod tests { mock_memory(); bitbox02::memory...
Change to use blocksize=128
@@ -104,7 +104,7 @@ PORTABILITY_LIBS = -lm #submit = mpirun ${MPIRUN_OPTS} -np $ranks $command submit = mpirun ${MPIRUN_OPTS} -np $ranks gpurun -s $command OPTIMIZE += -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=%{gputype} - OPTIMIZE += -fopenmp-target-xteam-reduction-blocksize=...
Ensure the --load-from-disk flag is enabled if no piped data and no file is passed.
@@ -2610,7 +2610,7 @@ read_log (GLog ** glog, int dry_run) FILE *fp = NULL; /* no data piped, no log passed, load from disk only then */ - if (conf.load_from_disk && !conf.ifile && isatty (STDIN_FILENO)) { + if (conf.load_from_disk && !conf.ifile && !isatty (STDIN_FILENO)) { (*glog)->load_from_disk_only = 1; return 0; ...