message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add smarter array countof macro for gcc/clang
@@ -111,6 +111,18 @@ Usz usz_clamp(Usz val, Usz min, Usz max) { return val; } +#if defined(__GNUC__) || defined(__clang__) +#define ORCA_ASSERT_IS_ARRAY(_array) \ + (sizeof(char[1 - 2 * __builtin_types_compatible_p( \ + __typeof(_array), __typeof(&(_array)[0]))]) - \ + 1) +#define ORCA_ARRAY_COUNTOF(_array) \ + (sizeof...
Removed dead code in EIP712 JSON handling python test code
@@ -4,27 +4,19 @@ import os import json import sys import re -from enum import IntEnum, auto import hashlib from ecdsa import SigningKey from ecdsa.util import sigencode_der -import pdb from ethereum_client import EthereumClient, EIP712FieldType import base64 # global variables app_client: EthereumClient = None -parser...
Added basic checks for using viz tool as library
@@ -49,6 +49,9 @@ function add_lighthouse(idx, p, q) { } function recolorTrackers(when) { + if(ctx == undefined) + return; + for (var key in angles) { var colors = []; @@ -501,6 +504,6 @@ function animate() { } function render() { - var use_fpv = $("#fpv")[0].checked; + var use_fpv = $("#fpv").length > 0 && $("#fpv")[0...
[sdio] Fixed error for dma size calculation.
@@ -394,7 +394,7 @@ rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card) break; } - blk_dev->max_req_size = BLK_MIN((card->host->max_seg_size * + blk_dev->max_req_size = BLK_MIN((card->host->max_dma_segs * card->host->max_seg_size) >> 9, (card->host->max_blk_count * card->host->max_blk_size) >> 9);
bitcoin-utils: fix perf issue
=+ (rsh [3 2] -) :: Parse hex to atom :: - :: TODO: replace with (met 3 h) - :- (div (met 3 h) 2) - `@ux`(rash - hex) + =/ a (need (de:base16:mimes:html -)) + [-.a `@ux`+.a] :: ++ to-cord ~/ %to-cord
Python3 mode
@@ -264,7 +264,7 @@ class TestGribMessage(unittest.TestCase): """Message can be serialized to file.""" with GribFile(TESTGRIB) as grib_file: msg = GribMessage(grib_file) - with open(TEST_OUTPUT, "w") as test: + with open(TEST_OUTPUT, "wb") as test: msg.write(test) os.unlink(TEST_OUTPUT) @@ -388,7 +388,7 @@ class TestBu...
Add JS interop to web build.
@@ -51,6 +51,17 @@ static int enter_loop(void) { return 0; } +/* Allow JS interop from within janet */ +static int cfun_js(JanetArgs args) { + const uint8_t *bytes; + int32_t len; + JANET_FIXARITY(args, 1); + JANET_ARG_BYTES(bytes, len, args, 0); + (void) len; + emscripten_run_script((const char *)bytes); + JANET_RETUR...
Optimize NumUtil_encode_bigend_* functions Make GCC generate bswap instructions. For details see:
@@ -217,48 +217,40 @@ lucy_NumUtil_is_bigend() { static CFISH_INLINE void lucy_NumUtil_encode_bigend_u16(uint16_t value, void *dest_ptr) { uint8_t *dest = *(uint8_t**)dest_ptr; - if (lucy_NumUtil_is_bigend()) { - memcpy(dest, &value, sizeof(uint16_t)); - } - else { - uint8_t *source = (uint8_t*)&value; - dest[0] = sour...
GopStop: MaxMode is actually a number of modes
@@ -106,7 +106,7 @@ AnalyzeGopHandle ( Height = 0; NewMode = -1; - for (Index = 0; Index <= Gop->Mode->MaxMode; ++Index) { + for (Index = 0; Index < Gop->Mode->MaxMode; ++Index) { Status = Gop->QueryMode ( Gop, Index,
docs: indicate new xCAT recipe is using stateful on title page
@@ -18,6 +18,12 @@ Edition for Linux*} (\arch{})} \\ {\color{logoblue}\noindent\rule{6.15in}{1.2pt}} \\ \vspace{0.2cm} +\iftoggleverb{isxCATstateful} +\vspace*{0.25cm} +\noindent{\large\color{logodarkgrey}\fontfamily{phv}\selectfont{Stateful +Provisioning}} +\fi + \vspace*{2in} \noindent{\small \color{black} Document L...
[mod_cgi] cygwin supports CGI file I/O redirection remove the special-case which disabled this for issue in older cygwin
@@ -765,7 +765,6 @@ static int cgi_create_env(request_st * const r, plugin_data * const p, handler_c } to_cgi_fds[0] = -1; - #ifndef __CYGWIN__ if (0 == r->reqbody_length) { /* future: might keep fd open in p->devnull for reuse * and dup() here, or do not close() (later in this func) */ @@ -797,7 +796,6 @@ static int c...
chat: split and send mixed messages sequentially Hot and cold in that order. This amends the behaviour of messages with text and URLs to submit them in order of found URL, instead of batching the URLs at the end.
@@ -150,33 +150,43 @@ export class ChatInput extends Component { return; } - let URLs = []; - let letter = state.message.split(" ").map((each) => { + let message = []; + state.message.split(" ").map((each) => { if (this.isUrl(each)) { - let URL = this.getLetterType(each); - URLs.push(URL); - } - else { - return each; +...
Fix no-deprecated configuration pem_read_depr_test needed to be setup in build info so that it only exists inside an IF[{- !$disabled{'deprecated-3.0'} -}] block.
@@ -57,8 +57,7 @@ IF[{- !$disabled{tests} -}] http_test servername_test ocspapitest fatalerrtest tls13ccstest \ sysdefaulttest errtest ssl_ctx_test gosttest \ context_internal_test aesgcmtest params_test evp_pkey_dparams_test \ - keymgmt_internal_test hexstr_test provider_status_test defltfips_test \ - pem_read_depr_te...
uses /static.udon instead of /static.umd for confirmation requests
=/ =wire (http-wire try %check-before) =/ url=purl:eyre :- [sec=| por=~ host=[%| `@if`p.tar.u.rel]] - [[ext=`~.umd path=/static] query=~] + [[ext=`~.udon path=/static] query=~] (emit (request wire url %get ~ ~)) :: +fail: %direct target is invalid or inaccessible :: =/ =wire (http-wire try %check-after) =/ url=purl:eyr...
Fix redefinition.
@@ -238,9 +238,9 @@ typedef struct { #include <stdio.h> /* Names of all of the types */ -extern const char *const janet_type_names[16]; -extern const char *const janet_signal_names[14]; -extern const char *const janet_status_names[16]; +JANET_API const char *const janet_type_names[16]; +JANET_API const char *const jane...
Add missing Starkex v2 configuration flag
@@ -15,6 +15,7 @@ void handleGetAppConfiguration(uint8_t p1, uint8_t p2, uint8_t *workBuffer, uint #endif #ifdef HAVE_STARKWARE G_io_apdu_buffer[0] |= APP_FLAG_STARKWARE; + G_io_apdu_buffer[0] |= APP_FLAG_STARKWARE_V2; #endif G_io_apdu_buffer[1] = LEDGER_MAJOR_VERSION; G_io_apdu_buffer[2] = LEDGER_MINOR_VERSION;
Fix avatar font index in compileEntityEvents test now that dummy font has been added
@@ -118,7 +118,7 @@ ___bank_testname = 255 _testname:: ; Text Dialogue VM_LOAD_TEXT 0 - .asciz "\\001\\001\\002\\001@A\\nBC\\001\\003\\004\\001\\377\\002\\001HELLO WORLD" + .asciz "\\001\\001\\002\\002@A\\nBC\\001\\003\\004\\001\\377\\002\\001HELLO WORLD" VM_OVERLAY_CLEAR 0, 0, 20, 4, .UI_COLOR_WHITE, ^/(.UI_AUTO_SCROL...
Mention GitHub Desktop
@@ -63,7 +63,9 @@ Avoid intermediate merge commits. [Rebase](https://www.atlassian.com/git/tutoria 1. `git push` 1. [Create a pull request](https://help.github.com/articles/creating-a-pull-request/) (PR) on GitHub. -This is just one way of doing things. If you're proficient in Git matters you're free to choose your own...
include use of ${compute_prefix} to aarch64/sles12 recipe
@@ -341,11 +341,11 @@ example configuration. % ohpc_validation_newline % ohpc_validation_comment Update basic slurm configuration if additional computes defined % ohpc_command if [ ${num_computes} -gt 4 ];then -% ohpc_command perl -pi -e "s/^NodeName=(\S+)/NodeName=c[1-${num_computes}]/" /etc/slurm/slurm.conf -% ohpc_c...
fixes mem leak
@@ -43,6 +43,7 @@ namespace celix { auto fwCtx = std::make_shared<celix::BundleContext>(celix_framework_getFrameworkContext(cFw)); std::shared_ptr<celix::Framework> framework{new celix::Framework{std::move(fwCtx), cFw}, [](celix::Framework* fw) { celix_frameworkFactory_destroyFramework(fw->getCFramework()); + delete fw...
Improve error handling;
@@ -115,7 +115,7 @@ void lovrInit(lua_State* L, int argc, char** argv) { " end " "}, { " " __index = function(self, event) " - " error('Unknown event: ', event) " + " error('Unknown event: ' .. tostring(event)) " " end " "}) " @@ -153,8 +153,8 @@ void lovrInit(lua_State* L, int argc, char** argv) { " end " "end " - "fu...
meta: add mingw build action
@@ -94,3 +94,21 @@ jobs: - run: nix-build -A hs.urbit-king.components.exes.urbit-king --arg enableStatic true - run: nix-build -A hs-checks - run: nix-build shell.nix + + mingw: + runs-on: windows-latest + defaults: + run: + shell: C:\msys64\msys2_shell.cmd -mingw64 -defterm -no-start -here -c ". <(cygpath '{0}')" + + ...
xfconf-plugin: Update man page
@@ -90,6 +90,8 @@ line \fIline/\fR reads/writes any file line by line yajl \fIyajl/\fR reads/writes JSON\. .IP "\(bu" 4 augeas \fIaugeas/\fR reads/writes many different configuration files using the Augeas library +.IP "\(bu" 4 +xfconf \fIxfconf/\fR reads/writes to arbitrary xfconf channels .IP "" 0 .P Using semi\-stru...
apps/Make.defs: Fix an error introduced with recent chagne. MKKCONFIG may not be defined resulting in failure to create apps/Kconfig.
@@ -60,15 +60,12 @@ endif ifeq ($(DIRLINK),) ifeq ($(CONFIG_WINDOWS_NATIVE),y) - MKKCONFIG = $(APPDIR)\tools\mkkconfig.bat DIRLINK = $(TOPDIR)\tools\link.bat DIRUNLINK = $(TOPDIR)\tools\unlink.bat else ifeq ($(CONFIG_WINDOWS_MSYS),y) - MKKCONFIG = $(APPDIR)/tools/mkkconfig.sh DIRLINK = $(TOPDIR)$(DELIM)tools$(DELIM)cop...
gh-actions: only run SDE tests on extensions not tested by Travis SDE is unreasonably slow, but unfortunately it's the only option I'm aware of. QEMU would be awesome, but it doesn't support several relevant extensions.
@@ -77,9 +77,11 @@ jobs: run: ~/.local/bin/meson setup build -Db_coverage=true - name: Build run: ninja -C build -v + # SDE is unreasonable slow, so only test the code which isn't + # already tested on Travis. - name: Test run: | - sde/sde64 -- ./build/test/run-tests --list | grep -oP '^/([^\/]+)/([^\/]+)' | sort -u | ...
Add Actor collisions to Adventure
@@ -52,26 +52,15 @@ void Update_Adventure() { player.rerender = TRUE; } - // player.pos.x += player.dir.x; - // player.pos.y += player.dir.y; - tile_x = (player.pos.x + 4) >> 3; tile_y = (player.pos.y) >> 3; if (INPUT_A_PRESSED) { - if (player.dir.x == 1) { - hit_actor = ActorAtTile(tile_x + 2, tile_y, TRUE); - } else ...
Disabling hardcoded max bounds for the channel block sizes in convolutions in libxsmm_dnn
#define HWCK 4 #define LIBXSMM_DNN_CONV_SETUP_USE_NTS -#define LIBXSMM_BLOCK64 -#if defined LIBXSMM_BLOCK64 -# define LIBXSMM_BLOCK_SIZE 64 -#else -# define LIBXSMM_BLOCK_SIZE 32 -#endif - /***********************************************************/ /* Helper functions for convolutions' general param setup */ /*******...
Correct processing of %null. Eliminate %void.
$@ $? $noun :: any noun $cell :: any cell $bean :: loobean - $void :: no nouns $null :: ~ == 0 == :: {$atom p/aura} :: atom :: $null [%rock %n 0] - :: - $void - :: should not actually be a thing - :: - [%zpzp ~] == :: ++ descend ^- hoon ?- bas {%atom *} - :: rez: fake instance - :: - =/ rez example - :+ %ktls rez + :+ ...
doc: remove outdated links
@@ -20,11 +20,6 @@ For the following Linux distributions and package managers 0.8 packages are avai - [LinuxBrew](https://github.com/Linuxbrew/homebrew-core/blob/master/Formula/elektra.rb) - [Alpine Linux](https://pkgs.alpinelinux.org/package/edge/testing/x86_64/elektra) -Available, but not up-to-date: - - - [Mageia](h...
HW: Resetting IC_0 AXI port to PCIe core ctl via axi_ctl_aresetn
@@ -323,7 +323,8 @@ connect_bd_net -net ACT_NVME_ACLK_1 [get_bd_ports ACT_NVME_ACLK] [get_bd_pins ax connect_bd_net -net NVME_S_ARESETN_1 [get_bd_ports NVME_S_ARESETN] [get_bd_pins axi_interconnect_0/ARESETN] [get_bd_pins axi_interconnect_0/S00_ARESETN] [get_bd_pins axi_interconnect_0/M00_ARESETN] [get_bd_pins nvme_hos...
Update pins.
@@ -44,22 +44,23 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) ; }; - // TODO: Check these pins! + // TODO: Check these pins and resolution! + left_encoder: encoder_left { compatible = "alps,ec11"; label = "LEFT_ENCODER"; - a-gpios = <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; - b-gpios = <...
putting the missing static
@@ -644,7 +644,7 @@ static int afalg_cipher_cleanup(EVP_CIPHER_CTX *ctx) return 1; } -cbc_handles *get_cipher_handle(int nid) +static cbc_handles *get_cipher_handle(int nid) { switch (nid) { case NID_aes_128_cbc:
hoon: refactor doccord parsing for +tall and +till
wyde == :: - :: +wrap is for tagging arbitrary hoons. This is where most of the doccords - :: logic lives - the modifications to +boog and +wisp are for tagging arms - :: and chapter labels, while +wrap handles hoons inside of arms and cores. - ++ wrap + :: +sign: gloms prefix and postfix docs for an expression or stru...
zephyr test: Verify 'pd 0 cc' Verify that 'pd 0 cc' outputs the correct CC state. TEST=twister -s zephyr/test/drivers/drivers.default BRANCH=none Code-Coverage: Zoss
@@ -313,6 +313,15 @@ ZTEST_USER(console_cmd_usb_pd, test_timer) rv); } +ZTEST_USER(console_cmd_usb_pd, test_cc) +{ + char expected_output[10]; + + snprintf(expected_output, sizeof(expected_output), "C0 CC%d", + pd_get_task_cc_state(0)); + CHECK_CONSOLE_CMD("pd 0 cc", expected_output, EC_SUCCESS); +} + static void set_d...
Add curly braces for GPHOME var Authored-by: Tingfang Bao
@@ -37,8 +37,8 @@ fi cat <<"EOF" -if [ -e "$GPHOME/etc/openssl.cnf" ]; then - OPENSSL_CONF="$GPHOME/etc/openssl.cnf" +if [ -e "${GPHOME}/etc/openssl.cnf" ]; then + OPENSSL_CONF="${GPHOME}/etc/openssl.cnf" fi export GPHOME
Improve documentation for the `all` function.
ret) (defn all - ``Returns true if all `xs` are truthy, otherwise the result of first - falsey predicate value, `(pred x)`.`` + ``Returns true if `(pred item)` returns a truthy value for every item in `xs`. + Otherwise, returns the first falsey `(pred item)` result encountered. + Returns true if `xs` is empty.`` [pred ...
Mention the smoke tests for new tool contributions We probably have a couple of tools where we forgot about this already. Make sure we don't forget again...
@@ -40,4 +40,5 @@ A checklist for bcc tool development: 1. **Read your man page**. For ROFF: nroff -man filename. Like before, this exercise is like saying something out loud. Does it sound too niche or convoluted? Again, hints that you might need to go back and fix things, or abandon it. 1. **Spell check your document...
Tomato: define GPIO_EN_KEYBOARD_BACKLIGHT It should set GPIO_EN_KB_BL low to turn off keyboard backlight while setting pwm duty to 0%. BRANCH=none TEST=EC console "kblight 0" can turn off keyboard backlight
#define CONFIG_BATT_FULL_CHIPSET_OFF_INPUT_LIMIT_MV 9000 +/* Keyboard */ +#define GPIO_EN_KEYBOARD_BACKLIGHT GPIO_EN_KB_BL + /* Sensor */ #define CONFIG_GMR_TABLET_MODE #define CONFIG_TABLET_MODE
misc: life_mngr: generate system_reboot_trigger_win.py script when build life_mngr generate system_reboot_trigger_win.py script when build life_mngr for Waag.
@@ -67,6 +67,7 @@ ifneq ($(shell which $(MINGWIN_CC)),) $(MINGWIN_CC) -g life_mngr_win.c -o $(OUT_DIR)/life_mngr_win.exe -Wall -O2 $(LDFLAGS) -lwsock32 cp COPYING.MinGW-w64-runtime.txt $(OUT_DIR)/COPYING.MinGW-w64-runtime.txt cp s5_trigger_win.py $(OUT_DIR)/s5_trigger_win.py + cp system_reboot_trigger_win.py $(OUT_DIR)...
fix overlapping entries
# Code table 4.230 - Atmospheric chemical constituent type for ECMWF +65524 65524 Stratospheric Ozone +65525 65525 Nitrate aerosol 65526 65526 Condensable gas type 1 65527 65527 Condensable gas type 2a 65528 65528 Condensable gas type 2b 65529 65529 Toluene and less reactive aromatics 65530 65530 Xylene and more reacti...
doc: Update address to report security vulnerability shall be used.
@@ -70,8 +70,7 @@ ACRN support systems: You can browse through the reported issues and submit issues of your own. * **Reporting a Potential Security Vulnerability**: If you have discovered potential - security vulnerability in ACRN, please send an e-mail to secure@intel.com. For issues - related to Intel Products, plea...
Fix harmless typo fixes
@@ -165,7 +165,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *alpha, FLOAT *a, BLASLONG lda, FLOAT *x BLASLONG width, i, num_cpu; -#if !defined(TRANSA) && !defined(iUNSAFE) +#if !defined(TRANSA) && !defined(UNSAFE) int split_x=0; #endif
Fix missing ImageSubsystem for WSL processes, Remove extra handle for querying the window title
@@ -1031,9 +1031,15 @@ static VOID PhpUpdateProcessNodeImage( PVOID imageBaseAddress; PH_REMOTE_MAPPED_IMAGE mappedImage; + if (ProcessNode->ProcessItem->IsSubsystemProcess) + { + ProcessNode->ImageSubsystem = IMAGE_SUBSYSTEM_POSIX_CUI; + } + else + { if (NT_SUCCESS(PhOpenProcess(&processHandle, ProcessQueryAccess | PR...
Re add optimizations during compilation
@@ -4,10 +4,10 @@ add_requires("spdlog", "nlohmann_json", "minhook", "imgui", "lua", "sol2") add_rules("mode.debug", "mode.release") ---add_ldflags("/LTCG", "/OPT:REF") ---add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-") +add_ldflags("/LTCG", "/OPT:REF") +add_cxflags("/Ot", "/GL", "/Ob2", "/Oi", "/GS-") ---set_optimize...
tests: runtime: in_tcp: added check for connection failure to prevent a segfault when the connection fails which pollutes the underlying cause.
@@ -330,17 +330,20 @@ void flb_test_tcp_with_tls() TEST_CHECK(client_connection != NULL); + if (client_connection != NULL) { ret = flb_io_net_write(client_connection, (void *) buf, size, &sent); - TEST_CHECK(ret == 0); + TEST_CHECK(ret > 0); /* waiting to flush */ flb_time_msleep(1500); + } num = get_output_num(); + if...
components/bt: Fix fail to config URL in EIR
@@ -694,7 +694,7 @@ void bta_dm_config_eir (tBTA_DM_MSG *p_data) } if (config_eir->eir_url) { p_bta_dm_eir_cfg->bta_dm_eir_url = osi_malloc(config_eir->eir_url_len); - if (p_bta_dm_eir_cfg->bta_dm_eir_url == NULL) { + if (p_bta_dm_eir_cfg->bta_dm_eir_url) { memcpy(p_bta_dm_eir_cfg->bta_dm_eir_url, config_eir->eir_url, ...
common/battery_fuel_gauge.c: Format with clang-format BRANCH=none TEST=none
@@ -40,17 +40,14 @@ static bool authenticate_battery_type(int index, char *manuf_name) /* device name is specified in table */ if (fuel_gauge->device_name != NULL) { - /* Get the device name */ - if (battery_device_name(device_name, - sizeof(device_name))) + if (battery_device_name(device_name, sizeof(device_name))) re...
Update IotNetworkAfr_Send to fix chunk size while sending remaining bytes
@@ -491,7 +491,7 @@ size_t IotNetworkAfr_Send( void * pConnection, { socketStatus = SOCKETS_Send( pNetworkConnection->socket, pMessage, - messageLength, + bytesRemaining, 0 ); if( socketStatus > 0 )
Corrected a typo in avtFLASHFileFormat.C
@@ -2637,7 +2637,7 @@ avtFLASHFileFormat::ReadParticleAttributes() // dimension if the grid exists. if (strcmp(member_name, "particle_x")==0 && dimension < 1) dimension = 1; - if (strcmp(member_name, "particle_t")==0 && dimension < 2) + if (strcmp(member_name, "particle_y")==0 && dimension < 2) dimension = 2; if (strcm...
Fix tracegen compile
@@ -158,7 +158,7 @@ class BoomLSUShim(implicit p: Parameters) extends BoomModule()(p) io.lsu.rob_head_idx := rob_head - + io.tracegen.ordered := ready_for_amo && io.lsu.fencei_rdy } case class BoomTraceGenTileAttachParams( @@ -236,6 +236,7 @@ class BoomTraceGenTileModuleImp(outer: BoomTraceGenTile) ptw.io.requestors.he...
Fix (?) cmocka include on win CI
@@ -194,9 +194,10 @@ jobs: - checkout - run: choco install cmake -y - run: git clone https://git.cryptomilk.org/projects/cmocka.git + - run: cd cmocka && git checkout tags/cmocka-1.1.5 - run: /c/Program\ Files/Cmake/bin/cmake -S cmocka -B cmocka_build - run: /c/Program\ Files/Cmake/bin/cmake --build cmocka_build - - ru...
CLEANUP: refactored "help" command processing.
@@ -9405,15 +9405,24 @@ static void process_help_command(conn *c, token_t *tokens, const size_t ntokens) #endif ); } else { + char *cmd_types[] = { "kv", "list", "set", "map", "btree", "attr", #ifdef SCAN_COMMAND - out_string(c, - "\t" "* Usage: help [kv | list | set | map | btree | attr | scan | admin ]" "\n" - ); -#e...
py/objdeque: Allow to compile without warnings by disabling deque_clear.
@@ -130,6 +130,7 @@ STATIC mp_obj_t deque_popleft(mp_obj_t self_in) { } STATIC MP_DEFINE_CONST_FUN_OBJ_1(deque_popleft_obj, deque_popleft); +#if 0 STATIC mp_obj_t deque_clear(mp_obj_t self_in) { mp_obj_deque_t *self = MP_OBJ_TO_PTR(self_in); self->i_get = self->i_put = 0; @@ -137,6 +138,7 @@ STATIC mp_obj_t deque_clear...
Reference README.md from localized versions Mention that the README.md is the only one being up-to-date.
+_Only the original [README](README.md) is guaranteed to be up-to-date._ + # scrcpy (v1.11) This document will be updated frequently along with the original Readme file
WIP Fix loading actors/scenes
#include "BankData.h" #include "VM.h" #include "data/scene_0.h" -#include "data/scene_0_actors.h" -#include <gb/bgb_emu.h> -#include <stdio.h> #define MAX_PLAYER_SPRITE_SIZE 24 @@ -175,7 +172,6 @@ void LoadScene(UINT16 index) { const far_ptr_t far_scene_actors; const far_ptr_t far_scene_triggers; const far_ptr_t far_sc...
Add missing check according to SM2 Digital Signature generation algorithm The process should be conforming to clause 6.1 and 6.2 of GMT 0003.2-2012.
@@ -239,6 +239,15 @@ static ECDSA_SIG *sm2_sig_gen(const EC_KEY *key, const BIGNUM *e) goto done; } + /* + * A3: Generate a random number k in [1,n-1] using random number generators; + * A4: Compute (x1,y1)=[k]G, and convert the type of data x1 to be integer + * as specified in clause 4.2.8 of GM/T 0003.1-2012; + * A5:...
add:lcd draw
@@ -16,7 +16,7 @@ static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_colo if (conf != NULL) { conf->opts->draw(conf, area->x1, area->y1, area->x2, area->y2, color_p); } - LLOGD("CALL disp_flush (%d, %d, %d, %d)", area->x1, area->y1, area->x2, area->y2); + // LLOGD("CALL disp_flush (%d, %d, %d, ...
log: use syslog
// please do not include changes here to PRs // unless you want to change the defaults. // #define USE_STDERR_SINK -// #define USE_SYSLOG_SINK -#define USE_FILE_SINK +#define USE_SYSLOG_SINK +// #define USE_FILE_SINK #define NO_FILTER
Also fix the README.
@@ -56,7 +56,7 @@ are included as git submodules. To build urbit from source, perform the followin To configure project, enter the build directory and enter `meson configure`. Without any arguments this command will display available options. For example, to compile debug build of urbit, use -`meson configure -Ddebug=t...
Remove incoming initial test from compilation
@@ -793,6 +793,8 @@ static int draft13_label_expansion_test(ptls_cipher_suite_t * cipher, char const return ret; } +#if 0 +/* TODO: restore this test once we have a valid incoming message for draft-17 */ static int draft31_incoming_initial_test() { int ret = 0; @@ -849,6 +851,8 @@ static int draft31_incoming_initial_te...
build, meson: add so version to meson build
@@ -55,7 +55,9 @@ cglm_lib = library('cglm', cglm_src, install : cglm_install, dependencies : cglm_deps, - c_args : [ build_args, cglm_args ] + c_args : [ build_args, cglm_args ], + version : meson.project_version(), + soversion : '0' ) cglm_dep = declare_dependency(
[core] connection_state_machine_h2 only if con->h2 call connection_state_machine_h2() only if con->h2 has been initialized (additional safeguard for x-ref: "Random Segfaults with version 1.4.64 w/ mod_sockproxy and ALPN h2"
@@ -990,7 +990,7 @@ connection_log_state (const request_st * const r, const char * const tag) } -static void connection_state_machine_h2 (request_st *h2r, connection *con); +static void connection_state_machine_h2 (connection * const con); static void @@ -1019,7 +1019,7 @@ connection_state_machine_loop (request_st * co...
options/posix: Use more compatible stat st_mode bitmasks.
#include <bits/ansi/time_t.h> #include <bits/ansi/timespec.h> -#define S_IFMT 0x0F00 -#define S_IFBLK 0x0000 -#define S_IFCHR 0x0100 -#define S_IFIFO 0x0200 -#define S_IFREG 0x0300 -#define S_IFDIR 0x0400 -#define S_IFLNK 0x0500 -#define S_IFSOCK 0x0600 +#define S_IFMT 0x0F000 +#define S_IFBLK 0x06000 +#define S_IFCHR ...
Fix pathname errors in errcode file
@@ -37,12 +37,11 @@ L ASYNC include/openssl/async.h crypto/async/async_err.c L KDF include/openssl/kdf.h crypto/kdf/kdf_err.c # additional header files to be scanned for function names -L NONE crypto/x509/x509_vfy.h NONE +L NONE include/openssl/x509_vfy.h NONE L NONE crypto/ec/ec_lcl.h NONE -L NONE crypto/asn1/asn_lcl....
bart for centos 7
@@ -9,7 +9,12 @@ URL: https://mrirecon.github.io/bart VCS: {{{ git_dir_vcs }}} Source0: {{{ git_dir_pack source_name=bart dir_name=bart }}} +%if 0%{?rhel} == 07 +BuildRequires: fftw-devel, lapack-devel, openblas-devel, atlas-devel, libpng-devel, devtoolset-7-toolchain, devtoolset-7-libatomic-devel +%else BuildRequires:...
Subscribe on a valid path in landscape.
@@ -71566,13 +71566,13 @@ function (_Component) { _createClass(TopicCreatePage, [{ key: "componentDidMount", value: function componentDidMount() { - var path = "/circle/".concat(this.state.details.circle, "/config-l/grams/-10"); + var path = "/circle/".concat(this.state.details.namedCircle, "/config-l/grams/-10"); this...
Remove lefovers CLOCK_SOURCE_EXTERNAL_SYNC
@@ -51,7 +51,6 @@ void clock_source_init(uint8_t mode){ switch(mode) { case CLOCK_SOURCE_MODE_DISABLED: // No clock signal - NVIC_DisableIRQ(EXTI0_IRQn); NVIC_DisableIRQ(TIM1_UP_TIM10_IRQn); NVIC_DisableIRQ(TIM1_CC_IRQn); @@ -63,7 +62,6 @@ void clock_source_init(uint8_t mode){ break; case CLOCK_SOURCE_MODE_FREE_RUNNING...
SOVERSION bump to version 6.1.1
@@ -67,7 +67,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 6) set(SYSREPO_MINOR_SOVERSION 1) -set(SYSREPO_MICRO_SOVERSION 0) +set(SYSREPO_MICRO_SO...
Cache: Fix off-by-one error
@@ -149,9 +149,10 @@ static char * elektraGenTempFilename (char * cacheFileName) size_t len = 0; size_t tmpFilenameSize = 0; - tmpFilenameSize = strlen (cacheFileName) + POSTFIX_SIZE; + size_t cacheFileNameSize = strlen (cacheFileName); + tmpFilenameSize = cacheFileNameSize + POSTFIX_SIZE; tmpFile = elektraCalloc (tmpF...
Rewrite assignment to complex for better portability
@@ -48,10 +48,11 @@ OPENBLAS_COMPLEX_FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLA dot[0]=0.0; dot[1]=0.0; - +/* CREAL(result) = 0.0 ; CIMAG(result) = 0.0 ; - +*/ + result = OPENBLAS_MAKE_COMPLEX_FLOAT(0.0,0.0); if ( n < 1 ) return(result); inc_x2 = 2 * inc_x ; @@ -71,8 +72,9 @@ OPENBLAS_COMPLEX_FLOAT...
build: Dockerfile: add kafka dependencies
@@ -12,7 +12,8 @@ COPY . /tmp/src/ RUN rm -rf /tmp/src/build/* -RUN apt-get update && apt-get install -y build-essential cmake make wget unzip libsystemd-dev +RUN apt-get update && apt-get install -y build-essential cmake make wget unzip libsystemd-dev libssl1.0-dev libasl-dev + WORKDIR /tmp/src/build/ RUN cmake -DFLB_...
Fix the contributing file example
@@ -152,14 +152,14 @@ uses the `H2O_STRUCT_FROM_MEMBER` macro (which in turn uses compute the offset of a member in a struct. This way, given a pointer to a member, we can obtain a pointer to the enclosing struct. -Linked lists (`h2o_linklist_t`) and timers (`h2o_timer_wheel_entry_t`) +Linked lists (`h2o_linklist_t`) a...
hfuzz_cc: link with -lBlocksRuntime if honggfuzz was compiled with clang
@@ -217,6 +217,9 @@ static int ldMode(int argc, char **argv) args[j++] = "-Wl,--whole-archive"; args[j++] = LHFUZZ_A_PATH; args[j++] = "-Wl,--no-whole-archive"; +#if defined(__clang__) + args[j++] = "-lBlocksRuntime"; +#endif /* defined(__clang__) */ if (isGCC) { args[j++] = "-fsanitize-coverage=trace-pc"; } else {
Don't override UIP_CONF_BYTE_ORDER in contiki-conf.h for native platform
@@ -69,7 +69,9 @@ typedef int32_t s32_t; typedef unsigned short uip_stats_t; +#ifndef UIP_CONF_BYTE_ORDER #define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN +#endif #if NETSTACK_CONF_WITH_IPV6
Fix and cleanup get_line_number's binary search Return 1 instead of crashing if `xs` is the empty list Work around integer overflow when computing the averages Clarify the comments Document the loop invariants Don't use tail recursion (in case we want to rewrite this in Titan)
@@ -24,35 +24,33 @@ function util.set_file_contents(filename, contents) return true end -local newline_cache = setmetatable({}, { __mode = "k" }) - ---- Given ordered sequence `xs`, search for `v`, --- If `v` is not found, return the position of --- the lowest item `x` in `xs` such that `x > v`. -- @param xs An ordered...
linenoise BUGFIX refresh columns on each line refresh
@@ -697,6 +697,9 @@ static void refreshMultiLine(struct linenoiseState *l) { /* Calls the two low level functions refreshSingleLine() or * refreshMultiLine() according to the selected mode. */ void linenoiseRefreshLine(void) { + /* Update columns in case the terminal was resized */ + ls.cols = getColumns(STDIN_FILENO, ...
added new option -p (set output path)
@@ -423,6 +423,7 @@ printf("%s %s (C) %s ZeroBeat\n" "-s : output file by mac_sta's\n" "-o : output file by vendor's (oui)\n" "-e : output file by essid's\n" + "-p <path> : set default output path for options a, s, o, e\n" "-E <essid> : output file by single essid name\n" "-A <mac_ap> : output file by single mac_ap\n" ...
DDF compare manufacturer names case insensitive Relaxes goodies like NAMRON vs. Namron.
@@ -544,7 +544,11 @@ const DeviceDescription &DeviceDescriptions::get(const Resource *resource, DDF_M { i = std::find_if(i, d->descriptions.end(), [&modelId, &manufacturer, &manufacturerConstant](const DeviceDescription &ddf) { - return (ddf.modelIds.contains(modelId) && (ddf.manufacturerNames.contains(manufacturer) ||...
WIP: Fix form checkboxes
@@ -126,14 +126,17 @@ textarea { .FormField input[type="checkbox"]:checked + .FormCheckbox:after { content: ""; - mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="#808080"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15...
Bump to imgui 1.83 and tiltedcore 0.2.3
@@ -3,7 +3,7 @@ set_xmakever("2.5.3") set_languages("cxx20") set_arch("x64") -add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui 1.82", "sol2", "tiltedcore 0.2.2", "sqlite3", "luajit") +add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui 1.83", "sol2", "tilte...
Mark dataBuffer pointer as const
@@ -480,7 +480,7 @@ void handleGetWalletId(volatile unsigned int *tx) { #endif // HAVE_WALLET_ID_SDK -uint8_t *parseBip32(uint8_t *dataBuffer, uint16_t *dataLength, bip32_path_t *bip32) { +uint8_t *parseBip32(const uint8_t *dataBuffer, uint16_t *dataLength, bip32_path_t *bip32) { if (*dataLength < 1) { PRINTF("Invalid ...
gzip: fix function prototype
int flb_gzip_compress(void *in_data, size_t in_len, void **out_data, size_t *out_len); int flb_gzip_uncompress(void *in_data, size_t in_len, - void **out_data, size_t *out_len); + void **out_data, size_t *out_size); #endif
Rm comments in tex
\title{Core Cosmology Library: Precision Cosmological Predictions for LSST} \input{authors} -%\maketitlepre \begin{abstract} @@ -34,8 +33,6 @@ The Core Cosmology Library (\ccl) provides routines to compute basic cosmologica \end{abstract} -%\maketitlepost - %=============================================================...
board/chocodile_vpdmcu/vpd_api.h: Format with clang-format BRANCH=none TEST=none
#include "gpio.h" #include "usb_pd.h" -enum vpd_pin { - PIN_ADC, - PIN_CMP, - PIN_GPO -}; +enum vpd_pin { PIN_ADC, PIN_CMP, PIN_GPO }; -enum vpd_gpo { - GPO_HZ, - GPO_HIGH, - GPO_LOW -}; +enum vpd_gpo { GPO_HZ, GPO_HIGH, GPO_LOW }; enum vpd_pwr { PWR_VCONN, PWR_VBUS, }; -enum vpd_cc { - CT_OPEN, - CT_CC1, - CT_CC2 -}; ...
Bring back mirror catalog update when doing a gprecoverseg This seems to have broken when we updated gprecoverseg to work with WAL rep.
@@ -15,6 +15,7 @@ from gppylib.operations import startSegments from gppylib.gp_era import read_era from gppylib.operations.utils import ParallelOperation, RemoteOperation from gppylib.operations.unix import CleanSharedMem +from gppylib.system import configurationInterface as configInterface from gppylib.commands.gp imp...
Add icon_theme_path to find_icon() search if set find_icon() will search in theme appropriate subdirs.
@@ -411,9 +411,15 @@ uint32_t render_sni(cairo_t *cairo, struct swaybar_output *output, double *x, char *icon_name = sni->status[0] == 'N' ? sni->attention_icon_name : sni->icon_name; if (icon_name) { - char *icon_path = find_icon(sni->tray->themes, sni->tray->basedirs, + list_t *icon_search_paths = create_list(); + li...
Copy the generated files to `public'.
@@ -20,11 +20,12 @@ jobs: run: | cd $GITHUB_WORKSPACE/tools/ci ./docs.sh + cp -a docs/doxygen/html/ $GITHUB_WORKSPACE/public - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/master' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ${{runner.workspace}}/tools/ci/docs/...
Reformat CMake: Reformat list file at project root
@@ -38,6 +38,7 @@ for file in $(find . \( -name 'CMakeLists.txt' -or -name '*.cmake' \) -and \ -or -path './scripts/*' \ -or -path './src/*' \ -or -path './tests/*' \ + -or -path './CMakeLists.txt' \ \) ); do $CMAKE_FORMAT "$file" | unexpand | sponge "$file"
irqtest: Make sure its started only once
@@ -387,8 +387,8 @@ static void pci_change_event(octopus_mode_t mode, const char* device_record, static int irqtests_started = 0; if(strstr(binary_name, "irqtest") != NULL){ - if(irqtests_started++ == 0){ - KALUGA_DEBUG("Not starting multiple instances of irqtest\n"); + if(irqtests_started++ > 0){ + debug_printf("Not s...
Add a second cipher to demonstrate server order
@@ -18,7 +18,7 @@ listen: key-file: examples/h2o/server.key certificate-file: examples/h2o/server.crt cipher-suite: AES128-SHA - cipher-suite-tls1.3: TLS_CHACHA20_POLY1305_SHA256 + cipher-suite-tls1.3: TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256 max-version: TLSv1.3 hosts: default:
Fix ocf_lru_repart for freelist partition ocf_lru_get_list() now returs clean list for freelist partition to provide common interface regardless of partition type.
@@ -224,6 +224,9 @@ void ocf_lru_init_cline(ocf_cache_t cache, ocf_cache_line_t cline) static struct ocf_lru_list *ocf_lru_get_list(struct ocf_part *part, uint32_t lru_idx, bool clean) { + if (part->id == PARTITION_FREELIST) + clean = true; + return clean ? &part->runtime->lru[lru_idx].clean : &part->runtime->lru[lru_i...
Fix symbol resolution across mount namespaces
@@ -122,13 +122,13 @@ int ProcSyms::_add_load_sections(uint64_t v_addr, uint64_t mem_sz, } void ProcSyms::load_exe() { + ProcMountNSGuard g(mount_ns_instance_.get()); std::string exe = ebpf::get_pid_exe(pid_); Module module(exe.c_str(), mount_ns_instance_.get(), &symbol_option_); if (module.type_ != ModuleType::EXEC) r...
dm: vrtc: add RTC to ACPI DSDT Clear Linux complains about not finding RTC as a PNP device: platform rtc_cmos: registered platform RTC device (no PNP device found) This is a port of Bhyve vRTC's user-space logic.
#include "rtc.h" #include "mevent.h" #include "timer.h" +#include "acpi.h" +#include "lpc.h" /* #define DEBUG_RTC */ #ifdef DEBUG_RTC @@ -1178,3 +1180,27 @@ vrtc_deinit(struct vmctx *ctx) free(vrtc); ctx->vrtc = NULL; } + +static void +rtc_dsdt(void) +{ + dsdt_line(""); + dsdt_line("Device (RTC)"); + dsdt_line("{"); + ...
cups-browsed.c: Small fixes on local queue duplicate check.
@@ -3299,8 +3299,10 @@ create_local_queue (const char *queue_name, p->queue_name, p->uri); goto fail; } - /* For a remote CUPS printer Our local queue must be raw, so that the - PPD file and driver on the remote CUPS server get used */ + /* For a remote CUPS printer our local queue will be raw or get a + PPD file from ...
berkeley/lprm.c: Report error if -P doesn't have destination Fixes
@@ -82,6 +82,13 @@ main(int argc, /* I - Number of command-line arguments */ else { i ++; + + if (i >= argc) + { + _cupsLangPrintf(stderr, _("%s: Error - expected destination after \"-P\" option."), argv[0]); + usage(); + } + name = argv[i]; }
py/runtime: mp_import_name: Pass globals/locals to __import__. These become required when we override import handling. In particular, proper globals are required to resolve relative imports.
@@ -1398,8 +1398,8 @@ mp_obj_t mp_import_name(qstr name, mp_obj_t fromlist, mp_obj_t level) { // build args array mp_obj_t args[5]; args[0] = MP_OBJ_NEW_QSTR(name); - args[1] = mp_const_none; // TODO should be globals - args[2] = mp_const_none; // TODO should be locals + args[1] = MP_OBJ_FROM_PTR(mp_globals_get()); + a...
ekr_loop - Fix bug
@@ -521,8 +521,9 @@ main(int argc, char *argv[]) debug_printf("usrscp_sendv - step %d - call %d flags %x\n", i, ++j, sndinfo.snd_flags); while (usrsctp_sendv(s_c, line, LINE_LENGTH, NULL, 0, (void *)&sndinfo, (socklen_t)sizeof(struct sctp_sndinfo), SCTP_SENDV_SNDINFO, 0) < 0) { - if (errno != EWOULDBLOCK || !sendv_retr...
Fix skip-validate
@@ -17,7 +17,7 @@ runs: using: "composite" steps: - name: Init submodules (since only the RTL is cached) - run: ./scripts/init-submodules-no-riscv-tools.sh + run: ./scripts/init-submodules-no-riscv-tools.sh --skip-validate shell: bash # Note: You shouldn't need the other inputs since it shouldn't build RTL from scratch...
Configure: use correct variable to infer the .ld file location We didn't notice the error because it all happened in the top directory. Now that we use .ld files in subdirectories, the bug became apparent.
@@ -2079,7 +2079,7 @@ EOF } elsif ($s =~ /\.ld$/) { # We also recognise linker scripts (or corresponding) # We know they are generated files - my $ld = cleanfile($buildd, $s, $blddir); + my $ld = cleanfile($buildd, $_, $blddir); $unified_info{shared_sources}->{$ddest}->{$ld} = 1; } else { die "unrecognised source file ...
Fix GPU support with STM32F746
@@ -154,7 +154,9 @@ void lv_gpu_stm32_dma2d_copy(lv_color_t * buf, lv_coord_t buf_w, const lv_color_ hdma2d.LayerCfg[1].InputAlpha = 0xFF; hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_FORMAT; hdma2d.LayerCfg[1].InputOffset = map_w - copy_w; +#ifndef STM32F746G_DISCO hdma2d.LayerCfg[1].AlphaInverted = DMA2D_REGULAR_A...