message
stringlengths
6
474
diff
stringlengths
8
5.22k
Slight rewording of README intro * Shift away focus from converting Lua code, as it is not clear that this will be the dominant use-case; * Clarify status as an initial prototype; * Do not make performance claims yet.
[![Build Status](https://travis-ci.org/titan-lang/titan-v0.svg?branch=master)](https://travis-ci.org/titan-lang/titan-v0) [![Coverage Status](https://codecov.io/gh/titan-lang/titan-v0/coverage.svg?branch=master)](https://codecov.io/gh/titan-lang/titan-v0/branch/master) -Titan is a programming language, based on the syn...
oculus mobile driver now supports restart cookie
#include "graphics/canvas.h" #include "core/os.h" #include "core/ref.h" +#include "event/event.h" #include "lib/glad/glad.h" #include <android/log.h> #include <assert.h> @@ -34,6 +35,7 @@ static struct { void* renderUserdata; uint32_t msaa; float offset; + Variant nextBootCookie; // Only used during restart event } sta...
doc: add a fancy CHANGES entry to celebrate the new Markdown format
@@ -24,6 +24,31 @@ OpenSSL 3.0 ### Changes between 1.1.1 and 3.0 [xx XXX xxxx] ### + + * The main project documents (README, NEWS, CHANGES, INSTALL, SUPPORT) + have been converted to Markdown with the goal to produce documents + which not only look pretty when viewed online in the browser, but + remain well readable in...
automagically reset boards before upload
import os +import time + +import serial +import serial.tools.list_ports Import("env", "projenv") +def before_upload(source, target, env): + for port in serial.tools.list_ports.grep("USB VID:PID=0483:5740 SER=0x8000000"): + with serial.Serial(port.device) as ser: + ser.write(b'R\r\n') + time.sleep(2) + +env.AddPreAction...
fix:fix ethereum test case(test_001CreateWallet_0009CreateWalletWithInternalGeneration)
@@ -253,6 +253,7 @@ END_TEST START_TEST(test_001CreateWallet_0009CreateWalletWithInternalGeneration) { BSINT32 rtnVal; + BoatIotSdkInit(); BoatEthWalletConfig wallet = get_ethereum_wallet_settings(); extern BoatIotSdkContext g_boat_iot_sdk_context; wallet.prikeyCtx_config.prikey_genMode = BOAT_WALLET_PRIKEY_GENMODE_INT...
os/arch/Kconfig : Add suppress configs for interrupt and timer interrupt 1. SUPPRESS_INTERRUPTS : Do not enable interrupts 2. SUPPRESS_TIMER_INTS : Do not initialize or enable the system timer
@@ -536,6 +536,18 @@ config ARCH_RAMVECTORS If ARCH_RAMVECTORS is defined, then the architecture will support modifiable vectors in a RAM-based vector table. +config SUPPRESS_INTERRUPTS + bool "Suppress all interrupts" + default n + ---help--- + Do not enable interrupts + +config SUPPRESS_TIMER_INTS + bool "No timer" +...
pressed_date initialization pressed_date inited in create function.
@@ -98,6 +98,10 @@ lv_obj_t * lv_calendar_create(lv_obj_t * par, const lv_obj_t * copy) ext->showed_date.month = 1; ext->showed_date.day = 1; + ext->pressed_date.year = 0; + ext->pressed_date.month = 0 + ext->pressed_date.day = 0 + ext->highlighted_dates = NULL; ext->highlighted_dates_num = 0; ext->day_names = NULL;
Support stop move step, when inc_ct is 0
@@ -184,7 +184,7 @@ bool DeRestPluginPrivate::addTaskSetBrightness(TaskItem &task, uint8_t bri, bool * Add a color temperature increase task to the queue * * \param task - the task item - * \param ct - step size -65534 ..65534 + * \param ct - step size -65534 ..65534, 0 to stop running step * \return true - on success ...
Fix maximum decoded picture buffer size
@@ -383,13 +383,15 @@ static void encoder_state_write_bitstream_seq_parameter_set(bitstream_t* stream, //for each layer if (encoder->cfg.gop_lowdelay) { - WRITE_UE(stream, encoder->cfg.ref_frames, "sps_max_dec_pic_buffering"); - WRITE_UE(stream, 0, "sps_num_reorder_pics"); + const int dpb = encoder->cfg.ref_frames; + W...
sosreport: use new input variable name
@@ -249,7 +249,7 @@ int flb_sosreport(struct flb_config *config) printf(" Name\t\t%s (%s, id=%i)\n", ins_in->name, ins_in->p->name, ins_in->id); printf(" Flags\t\t"); input_flags(ins_in->flags); - printf(" Threaded\t\t%s\n", ins_in->threaded ? "Yes": "No"); + printf(" Coroutines\t\t%s\n", ins_in->runs_in_coroutine ? "Y...
Minor change to default ROM header (SRAM size = 64 KB)
@@ -7,11 +7,11 @@ const ROMHeader rom_header = { #else "SEGA MEGA DRIVE ", #endif - "(C)SGDK 2020 ", + "(C)SGDK 2021 ", "SAMPLE PROGRAM ", "SAMPLE PROGRAM ", "GM 00000000-00", - 0x0000, + 0x000, "JD ", 0x00000000, #if (ENABLE_BANK_SWITCH != 0) @@ -24,7 +24,7 @@ const ROMHeader rom_header = { "RA", 0xF820, 0x00200000, -...
build: do not make gelf support dependent on zlib
@@ -246,14 +246,6 @@ if(FLB_COVERAGE) set(CMAKE_BUILD_TYPE "Debug") endif() -if(FLB_OUT_GELF) - find_package( ZLIB ) - if ( NOT ZLIB_FOUND ) - set(FLB_OUT_GELF 0) - endif() -endif() - - # Enable Debug symbols if specified if(FLB_DEBUG) set(CMAKE_BUILD_TYPE "Debug")
style(gui): clear compiler warning
@@ -89,6 +89,7 @@ void LCUIWidget_InitPrototype(void) self.default_prototype.settext = Widget_DefaultTextSetter; self.default_prototype.bindprop = Widget_DefaultPropertyBinder; self.default_prototype.autosize = Widget_DefaultResizer; + self.default_prototype.paint = Widget_DefaultPainter; } void LCUIWidget_FreePrototyp...
remove entries for repos that we no longer use
@@ -95,22 +95,8 @@ AOMP_REPO_NAME=${AOMP_REPO_NAME:-aomp} AOMP_REPO_BRANCH=${AOMP_REPO_BRANCH:-master} AOMP_PROJECT_REPO_NAME=${AOMP_PROJECT_REPO_NAME:-llvm-project} AOMP_PROJECT_REPO_BRANCH=${AOMP_PROJECT_REPO_BRANCH:-AOMP-191008} -AOMP_LLVM_REPO_NAME=${AOMP_LLVM_REPO_NAME:-llvm} -AOMP_LLVM_REPO_BRANCH=${AOMP_LLVM_REP...
Mark all code blocks as C
@@ -725,7 +725,7 @@ If you prefer a different order, call `mbedtls_ssl_conf_curves()` when configuri ### SSL key export interface change This affects users of the SSL key export APIs: -``` +```C mbedtls_ssl_conf_export_keys_cb() mbedtls_ssl_conf_export_keys_ext_cb() ``` @@ -876,7 +876,7 @@ Those users will need to modi...
Fix VrApi casing;
@@ -481,7 +481,7 @@ static struct ModelData* vrapi_newModelData(Device device, bool animated) { model->buffers[0] = (ModelBuffer) { .blob = 0, - .offset = (char*) mesh->vertexPositions - (char*) mesh, + .offset = (char*) mesh->VertexPositions - (char*) mesh, .data = (char*) mesh->VertexPositions, .size = sizeof(mesh->V...
out_nrlogs: register upstream with instance
@@ -313,6 +313,7 @@ static struct flb_newrelic *newrelic_config_create(struct flb_output_instance *i return NULL; } ctx->u = upstream; + flb_output_upstream_set(ctx->u, ins); return ctx; }
made sure i called the addon in the js wrapper
-const addon = +const addon = require("./build/Release/addon.node") module.exports = { metacall () { if(arguments.length == 0) throw Error("No Argument Passed!"); var functionName = typeof arguments[0] == "string" ? arguments[0] : null if(functionName == null) throw Error("Function Name should be of string type"); + ad...
vere: restores a necessary layer of reallocation
@@ -489,7 +489,17 @@ _term_it_show_line(u3_utty* uty_u, c3_w wor_w, c3_w sap_w) { u3_utat* tat_u = &uty_u->tat_u; - _term_it_dump(uty_u, tat_u->mir.byt_w, tat_u->mir.lin_y); + // we have to reallocate the current line on write, + // or we have a data race if a) the write is async, + // and b) a new output line arrives ...
Update Makefile to pass version to rpm specfile
@@ -584,7 +584,7 @@ rpm: srctar @mkdir -p rpm/rpmbuild/SOURCES @#@cp -af src Makefile rpm/rpmbuild/SOURCES @mv oidc-agent.tar rpm/rpmbuild/SOURCES/ - rpmbuild --define "_topdir $(BASEDIR)/rpm/rpmbuild" -bb rpm/oidc-agent.spec + rpmbuild --define "_topdir $(BASEDIR)/rpm/rpmbuild" --define "_version $(VERSION) -bb rpm/oi...
Fix memory leaks in swaybar
@@ -191,8 +191,12 @@ static struct icon_theme *read_theme_file(char *basedir, char *theme_name) { size_t path_len = snprintf(NULL, 0, "%s/%s/index.theme", basedir, theme_name) + 1; char *path = malloc(path_len); + if (!path) { + return NULL; + } snprintf(path, path_len, "%s/%s/index.theme", basedir, theme_name); FILE *...
Dockerfile: use Ubuntu mono packages Switch to the Ubuntu mono packages and let the renode package install the dependencies it needs. This ensures the image is as small as possible even when the renode dependencies change. This change also removes the warning about key handling that is printed in red when building imag...
@@ -13,9 +13,7 @@ RUN apt-get -qq update && \ software-properties-common > /dev/null && \ apt-get -qq clean -RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ - echo "deb http://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sour...
swapped argument order in glmm_store3() close
@@ -133,7 +133,7 @@ glmm_load3(float v[3]) { static inline void -glmm_store3(__m128 vx, float v[3]) { +glmm_store3(float v[3], __m128 vx) { _mm_storel_pi((__m64 *)&v[0], vx); _mm_store_ss(&v[2], glmm_shuff1(vx, 2, 2, 2, 2)); }
misc: missing ntohl for bond_slave's custom dump sw_if_index argument is u32 and it needs to be converted to host order for format in custom dump, a very highly sophisticated stuff. Type: fix
@@ -690,8 +690,8 @@ static void *vl_api_bond_enslave_t_print u8 *s; s = format (0, "SCRIPT: bond_enslave "); - s = format (s, "bond_sw_if_index %u ", mp->bond_sw_if_index); - s = format (s, "sw_if_index %u ", mp->sw_if_index); + s = format (s, "bond_sw_if_index %u ", ntohl (mp->bond_sw_if_index)); + s = format (s, "sw_...
Renamend tests and let them use the interface of the libs
@@ -2,32 +2,30 @@ FILE (GLOB XML_FILES ${CMAKE_CURRENT_SOURCE_DIR}/testdata/*.xml ) +ADD_EXECUTABLE (test-ixml-shared test_document.c ) -TARGET_INCLUDE_DIRECTORIES (test_ixml_shared - PRIVATE ${UPNP_SOURCE_DIR}/ixml/inc - PRIVATE ${UPNP_SOURCE_DIR}/upnp/inc +TARGET_LINK_LIBRARIES (test-ixml-shared + PRIVATE ixml_shared...
config_format: fluentbit: do not abort on strrchr() failure
@@ -249,11 +249,10 @@ static int local_init(struct local_ctx *ctx, char *file) /* lookup path ending and truncate */ end = strrchr(path, '/'); - if (!end) { - return -1; - } + if (end) { end++; *end = '\0'; + } if (file) { ctx->file = flb_sds_create(file);
Save zigbeechannel in db after channel change
@@ -49,6 +49,7 @@ bool DeRestPluginPrivate::startChannelChange(quint8 channel) ccRetries = 0; gwZigbeeChannel = channel; + queSaveDb(DB_CONFIG, DB_SHORT_SAVE_DELAY); if (channelChangeState != CC_Idle) {
stm32/mpconfigboard_common: Add STM32H7 common configuration.
#define MICROPY_HW_MAX_TIMER (17) #define MICROPY_HW_MAX_UART (8) +// Configuration for STM32H7 series +#elif defined(STM32H7) + +#define MP_HAL_UNIQUE_ID_ADDRESS (0x1ff1e800) +#define PYB_EXTI_NUM_VECTORS (24) +#define MICROPY_HW_MAX_TIMER (17) +#define MICROPY_HW_MAX_UART (8) + // Configuration for STM32L4 series #el...
Working on get functions for net and fs state. not ready; in progress.
@@ -80,6 +80,27 @@ getDuration(uint64_t start) } + +static net_info * +getNetEntry(int fd) +{ + if (g_netinfo && (fd > 0) && (fd <= g_cfg.numNinfo) && + (g_netinfo[fd].fd == fd)) { + return &g_netinfo[fd]; + } + return NULL; +} + +static fs_info * +getFSEntry(int fd) +{ + if (g_fsinfo && (fd > 0) && (fd <= g_cfg.numFSI...
memif: fix the memory leak when memif cli getting wrong parameters inputs Type: fix
@@ -53,6 +53,7 @@ memif_socket_filename_create_command_fn (vlib_main_t * vm, else { vec_free (socket_filename); + unformat_free (line_input); return clib_error_return (0, "unknown input `%U'", format_unformat_error, input); } @@ -125,6 +126,7 @@ memif_socket_filename_delete_command_fn (vlib_main_t * vm, ; else { + unfo...
Do not write invalid packet duration Configuration packets have no PTS. Do not compute a packet duration from their PTS. Fixes recording to mp4 on device rotation.
@@ -301,8 +301,12 @@ run_recorder(void *data) { continue; } + // config packets have no PTS, we must ignore them + if (rec->packet.pts != AV_NOPTS_VALUE + && previous->packet.pts != AV_NOPTS_VALUE) { // we now know the duration of the previous packet previous->packet.duration = rec->packet.pts - previous->packet.pts; +...
Sort IP addresses from getInterfaceByName
@@ -1405,6 +1405,10 @@ func (m *bpfEndpointManager) getInterfaceIP(ifaceName string) (*net.IP, error) { if err != nil { return nil, err } + sort.Slice(addrs, func(i, j int) bool { + return bytes.Compare(addrs[i].(*net.IPNet).IP, addrs[j].(*net.IPNet).IP) < 0 + }) + for _, addr := range addrs { if ipv4Addr := addr.(*net...
Rename variable in FAIL_ON_X macros. Prevent the redefinition of the "result" variable from outer scope.
@@ -113,13 +113,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. goto _exit; \ } -#define FAIL_ON_ERROR(x) \ - { \ - int result = (x); \ - if (result != ERROR_SUCCESS) \ - return result; \ - } - #define GOTO_EXIT_ON_ERROR_WITH_CLEANUP(x, cleanup) \ { \ result = (x); \ @@ -130,13 +123,22 @@ SOFTWARE, EV...
Do not send a packet if the number of PTO probe packet is reset
@@ -4013,15 +4013,16 @@ static ngtcp2_ssize conn_write_pkt(ngtcp2_conn *conn, ngtcp2_pkt_info *pi, goto build_pkt; } - /* We had pktns->rtb.num_retransmittable > 0 but the contents of - those packets have been acknowledged (i.e., retransmission in - another packet). In this case, we don't have to send any - probe packe...
landscape: register serviceworker at root
<script> if ('serviceWorker' in navigator) { window.addEventListener('load', () => { - navigator.serviceWorker.register('/serviceworker.js'); + navigator.serviceWorker.register( + '/~landscape/js/bundle/serviceworker.js', + { scope: '/' } + ); }); } </script>
Expressly enable -msse for 32bit DYNAMIC_ARCH kernels
@@ -46,6 +46,9 @@ endif ifdef TARGET_CORE ifeq ($(TARGET_CORE), $(filter $(TARGET_CORE),PRESCOTT CORE2 PENRYN DUNNINGTON ATOM NANO SANDYBRIDGE HASWELL NEHALEM ZEN BARCELONA BOBCAT BULLDOZER PILEDRIVER EXCAVATOR STEAMROLLER OPTERON_SSE3)) override CFLAGS += -msse3 -mssse3 -msse4.1 +endif + ifeq ($(TARGET_CORE), $(filter...
Added domain increment check for hash
@@ -2247,6 +2247,11 @@ ACVP_RESULT acvp_cap_hash_set_domain(ACVP_CTX *ctx, return ACVP_INVALID_ARG; } + if (increment <= 0) { + ACVP_LOG_ERR("Invalid increment (%d) for hash set domain", increment); + return ACVP_INVALID_ARG; + } + if (min % increment != 0) { ACVP_LOG_ERR("min(%d) MODULO increment(%d) must equal 0", mi...
Documentation: Remove useless whitespace
@@ -43,7 +43,6 @@ with kdb.KDB() as k: for i in ks: # print for every key in the keyset the key and the value print 'key: '+ str(i) + 'value: ' + str(ks[i]) - ``` Here an example of how you can easily check if a key exists: @@ -71,7 +70,6 @@ with kdb.KDB() as k: ks_deepcopy = copy.deepcopy(ks) # creating a shallow copy...
sha/keccak1600.c: subscribe more platforms for "complementing" optimization. E.g. on MIPS64 it gives >20% improvement...
@@ -25,7 +25,14 @@ void SHA3_squeeze(uint64_t A[5][5], unsigned char *out, size_t len, size_t r); # define KECCAK_2X /* default to KECCAK_2X variant */ #endif -#if defined(__i386) || defined(__i386__) || defined(_M_IX86) +#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \ + (defined(__x86_64) && !defined...
vere: changed to use u3_king_bail instead of manual term clean up
@@ -577,10 +577,7 @@ _boothack_doom(void) if ( u3_nul == whu ) { u3l_log("boot: malformed -F ship %s\r\n", u3_Host.ops_u.fak_c); - - u3_term_log_exit(); - fflush(stdout); - + u3_king_bail(); exit(1); }
Disallow forking from Python
@@ -690,7 +690,8 @@ subprocess_fork_exec(PyObject* self, PyObject *args) need_after_fork = 1; } - pid = fork(); + //pid = fork(); + pid = -1; if (pid == 0) { /* Child process */ /*
gimble: downspeed tcpc i2c speed BRANCH=none TEST=make -j BOARD=gimble
@@ -18,10 +18,14 @@ const struct i2c_port_t i2c_ports[] = { .sda = GPIO_EC_I2C_SENSOR_SDA, }, { + /* I2C1 + * TODO(b/194264003) Need to check the signals with a scope + * before raising to 1MHz. + */ /* I2C1 */ .name = "tcpc0,2", .port = I2C_PORT_USB_C0_TCPC, - .kbps = 1000, + .kbps = 400, .scl = GPIO_EC_I2C_USB_C0_C2_...
Docs: Remove GPORCA note as its now included by default
@@ -46,8 +46,6 @@ the Greenplum hosts. - Greenplum Database does not include Symantec NetBackup integration. -- To use GPORCA with open source Greenplum Database the software must be compiled with GPORCA enabled. Refer to the build instructions in the README file in the Greenplum Database repository. - - The QuickLZ co...
added comments for JLink connection work.
* This file is part of the TinyUSB stack. */ +/* How to connect JLink and GR-CITRUS + * + * GR-CITRUS needs to solder some pads to enable JTAG interface. + * - Short the following pads individually with solder. + * - J4 + * - J5 + * - Short EMLE pad and 3.3V(GR-CITRUS pin name) with a wire. + * + * The pads are [the ba...
Add -s auto-completion for bash Fixes <https://github.com/Genymobile/scrcpy/pull/3522> PR <https://github.com/Genymobile/scrcpy/pull/3523>
@@ -93,6 +93,11 @@ _scrcpy() { COMPREPLY=($(compgen -W 'verbose debug info warn error' -- "$cur")) return ;; + -s|--serial) + # Use 'adb devices' to list serial numbers + COMPREPLY=($(compgen -W "$("${ADB:-adb}" devices | awk '$2 == "device" {print $1}')" -- ${cur})) + return + ;; -b|--bitrate \ |--codec-options \ |--c...
Deallocate additional volume mbr from correct heap
@@ -277,7 +277,7 @@ closure_function(3, 1, void, mbr_read, volume_add(uuid, label, bound(req_handler), bound(length)); else init_debug("unformatted storage device, ignoring"); - deallocate(heap_locked(init_heaps), mbr, SECTOR_SIZE); + deallocate((heap)heap_linear_backed(init_heaps), mbr, PAGESIZE); } else { /* The on-d...
framework/ble_manager: fix BLE minor bug fix BLE minor bug
@@ -181,7 +181,7 @@ ble_result_e blemgr_handle_request(blemgr_msg_s *msg) } for (i = 0; i < BLE_MAX_CONNECTION_COUNT; i++) { - memset(&g_client_table[i], 0, sizeof(ble_client_ctx)); + memset(&g_client_table[i], 0, sizeof(ble_client_ctx_internal)); } for (i = 0; i < SCAN_WHITELIST_SIZE; i++) {
move TIMERTHRESHOLD to opentimers.h
//=========================== define ========================================== + +//===== sctimer scheduling +// the timer with higher priority can be scheduled in advance even if +// there is a timer being scheduled early than the higher priority timer +// but within TIMERTHRESHOLD. +// E.g if priority of timer0 > pr...
Remove debug output for Haar importer
@@ -151,40 +151,27 @@ def cascade_binary(path, n_stages, name): # write num stages fout.write(struct.pack('i', len(stages))) - count = 0 # write num feat in stages for s in stages: fout.write(struct.pack('B', s)) # uint8_t - count+=1 - print("Stage count (num feats): %d"%count) - count = 0 # write stages thresholds for...
re-create DB if its file is corrupted or encrypted with an unknown key
@@ -241,8 +241,15 @@ void CDBAdapter::open (String strDbPath, String strVer, boolean bTemp, boolean c boolean bExist = CRhoFile::isFileExist(strDbPath.c_str()); int nRes = sqlite3_open(strDbPath.c_str(),&m_dbHandle); - if ( !checkDbError(nRes) ) + if ( nRes==SQLITE_NOTADB ) {//kill db and try again + LOG(INFO) + "Open ...
read regions count on every loop iteration
@@ -398,7 +398,7 @@ void* _mi_mem_alloc_aligned(size_t size, size_t alignment, bool* commit, bool* l if (p == NULL) { // no free range in existing regions -- try to extend beyond the count.. but at most 8 regions - for (idx = count; idx < count + 8 && idx < MI_REGION_MAX; idx++) { + for (idx = count; idx < mi_atomic_re...
Check Python version for startup
@@ -43,7 +43,25 @@ if is_running $ZK_PID_FILE; then exit 1 fi +version=$(python -V 2>&1 | grep -Po '(?<=Python )(.+)') +if [[ -z "$version" ]] +then + +echo "No Python!" +exit 1 +else +case "$(python --version 2>&1)" in + *" 2.7"*) + echo "Compatible Python version detected" + ;; + *) + echo "Wrong Python version! Plea...
Update pwm.c rt_malloc -> rt_calloc
@@ -185,16 +185,14 @@ int fh_pwm_probe(void *priv_data) PWM_Enable(pwm_obj, RT_FALSE); - pwm_dev = rt_malloc(sizeof(struct rt_device)); + pwm_dev = rt_calloc(sizeof(struct rt_device)); if (pwm_dev == RT_NULL) { - rt_kprintf("ERROR: %s rt_device malloc failed\n", __func__); - return -RT_EIO; + rt_kprintf("ERROR: %s rt_d...
file-server: migrate to new dir
$% [%clay =path] [%glob =glob:glob] == -+$ state-1 - $: %1 - =configuration:srv ++$ state-base + $: =configuration:srv =serving == ++$ state-2 + $: %2 + state-base + == -- :: %+ verb | %- agent:dbug :: -=| state-1 +=| state-2 =* state - ^- agent:gall |_ =bowl:gall ^- [content ?] [[%clay clay-path] public] == - ?> ?=(%1...
Make sure an unknown number of pages doesn't disable duplex printing (Issue
@@ -39,7 +39,7 @@ static void start_job(pappl_job_t *job); pappl_pr_options_t * // O - Job options data or `NULL` on error papplJobCreatePrintOptions( pappl_job_t *job, // I - Job - unsigned num_pages, // I - Number of pages + unsigned num_pages, // I - Number of pages (`0` for unknown) bool color) // I - Is the docume...
docs - remove duplicate sentence in max_connections guc descript
@@ -1870,7 +1870,7 @@ Increasing the limit allocates more shared memory on the master host at server s The maximum number of concurrent connections to the database server. In a Greenplum Database system, user client connections go through the Greenplum master instance only. Segment instances should allow 5-10 times the...
replace -isystem by -I only if it starts with
@@ -44,7 +44,7 @@ function _translate_arguments(arguments) if idx == 1 and is_host("windows") and path.extension(arg) == "" then arg = arg .. ".exe" end - if arg:find("-isystem", 1, true) then + if arg:startswith("-isystem", 1, true) then arg = arg:replace("-isystem", "-I") elseif arg:find("[%-/]external:I") then arg =...
Fix the checks of EVP_PKEY_public_check
@@ -397,7 +397,7 @@ static int test_fromdata_rsa(void) goto err; if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0) - || !TEST_true(EVP_PKEY_public_check(key_ctx)) + || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0) || !TEST_true(EVP_PKEY_private_check(key_ctx)) || !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0)) goto err...
[mod_geoip] call from handle_request_env hook (instead of handle_subrequest_start hook) The handle_request_env hook is called on demand by dynamic handlers and this change makes mod_geoip available for mod_magnet lua code.
@@ -211,12 +211,7 @@ static int mod_geoip_patch_connection(server *srv, connection *con, plugin_data } #undef PATCH -URIHANDLER_FUNC(mod_geoip_subrequest) { - plugin_data *p = p_d; - - mod_geoip_patch_connection(srv, con, p); - - if (!buffer_is_empty(p->conf.db_name)) { +static handler_t mod_geoip_query (connection *co...
Add support for cubic spline keyframe interpolation;
@@ -248,7 +248,7 @@ void lovrModelDraw(Model* model, mat4 transform, uint32_t instances) { } void lovrModelAnimate(Model* model, uint32_t animationIndex, float time, float alpha) { - if (alpha == 0.f) { + if (alpha <= 0.f) { return; } @@ -277,24 +277,39 @@ void lovrModelAnimate(Model* model, uint32_t animationIndex, fl...
build: bump wlroots dependency to 0.16.0
@@ -61,7 +61,7 @@ math = cc.find_library('m') rt = cc.find_library('rt') # Try first to find wlroots as a subproject, then as a system dependency -wlroots_version = ['>=0.15.0', '<0.16.0'] +wlroots_version = ['>=0.16.0', '<0.17.0'] wlroots_proj = subproject( 'wlroots', default_options: ['examples=false'],
State which files isn the example do what
#include "main.h" int main(int argc, char const *argv[]) { - /* accept command line arguments and setup default values. */ + /* accept command line arguments and setup default values, see "cli.c" */ initialize_cli(argc, argv); - /* initialize HTTP service */ + /* initialize HTTP service, see "http_service.h" */ initial...
Fixed TLS connections hanging. After event is delivered from the kernel its further processing is blocked. Non-ready TSL I/O operation should mark connection I/O state as not ready to unblock events and to allow their further processing. Otherwise the connection hangs.
@@ -855,12 +855,11 @@ nxt_openssl_conn_test_error(nxt_task_t *task, nxt_conn_t *c, int ret, switch (tls->ssl_error) { case SSL_ERROR_WANT_READ: + c->socket.read_ready = 0; if (io != NXT_OPENSSL_READ) { nxt_fd_event_block_write(task->thread->engine, &c->socket); - c->socket.read_ready = 0; - if (nxt_fd_event_is_disabled...
haskell-build-fixes: cmake issue when no ONLY_SHARED plugin
@@ -24,7 +24,9 @@ find_util (elektra-export-symbols EXE_SYM_LOC EXE_SYM_ARG) # do not include plugins configured with SHARED_ONLY in the exported symbols as those are only used for the FULL and STATIC builds get_property (SHARED_ONLY_PLUGINS GLOBAL PROPERTY SHARED_ONLY_PLUGINS) set (ADDED_PLUGINS_WITHOUT_ONLY_SHARED ${...
sse: added WASM implementation for mm_and_ps
@@ -292,6 +292,8 @@ simde_mm_and_ps (simde__m128 a, simde__m128 b) { #if defined(SIMDE_SSE_NEON) r_.neon_i32 = vandq_s32(a_.neon_i32, b_.neon_i32); +#elif defined(SIMDE_SSE_WASM_SIMD128) + r_.wasm_v128 = wasm_v128_and(a_.wasm_v128, b_.wasm_v128); #elif defined(SIMDE_VECTOR_SUBSCRIPT_OPS) r_.i32 = a_.i32 & b_.i32; #else...
x509_vfy.c: Remove superfluous assignment to 'ret' in check_chain()
@@ -484,11 +484,9 @@ static int check_chain(X509_STORE_CTX *ctx) CHECK_CB((ctx->param->flags & X509_V_FLAG_X509_STRICT) != 0 && ret != 1 && ret != 0, ctx, x, i, X509_V_ERR_INVALID_CA); - ret = 1; break; case 0: CHECK_CB(ret != 0, ctx, x, i, X509_V_ERR_INVALID_NON_CA); - ret = 1; break; default: /* X509_V_FLAG_X509_STRI...
linux-raspberrypi_dev: Disable version sanity check
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.9:" -LINUX_VERSION ?= "4.10.0-rc8" +LINUX_VERSION ?= "4.10" LINUX_RPI_DEV_BRANCH ?= "rpi-4.10.y" SRCREV = "${AUTOREV}" @@ -12,3 +12,7 @@ require linux-raspberrypi.inc # set by default in rpi-4.8.y and later branches so we need to provide it # manually. This value unused if...
tools: fix multi-byte character appearance in idf.py monitor
@@ -233,13 +233,11 @@ class RunTool: ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])') return ansi_escape.sub('', text) - def prepare_for_print(out: bytes) -> str: - # errors='ignore' is here because some chips produce some garbage bytes - result = out.decode(errors='ignore') + def prepare_for_print(ou...
Docs: Add additional info on enabling rotation
@@ -7087,10 +7087,14 @@ functioning. Feature highlights: \textbf{Description}: Replaces the Apple EFI Graphics 2 protocol with a builtin version. - \emph{Note}: This protocol allows newer \texttt{EfiBoot} versions (at least 10.15) + \emph{Note 1}: This protocol allows newer \texttt{EfiBoot} versions (at least 10.15) to...
Fix collision group for new actors
@@ -845,21 +845,21 @@ const addActor: CaseReducer< animSpeed: 3, paletteId: "", isPinned: false, - collisionGroup: [], + collisionGroup: "", script: [], startScript: [], updateScript: [], hit1Script: [], hit2Script: [], hit3Script: [], - }, + } as Partial<Actor>, action.payload.defaults || {}, { id: action.payload.acto...
reverse debug changes
@@ -3473,15 +3473,11 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code, } struct neat_he_candidate *candidate = calloc(1, sizeof(*candidate)); - if (!candidate) { - nt_free_candidates(ctx, candidates); + if (!candidate) return NEAT_ERROR_OUT_OF_MEMORY; - } - candidate->pollable_socket = calloc(1, s...
added warning message to ease plugging debugging This message would have eased the debugging of the retransmission plugins...
@@ -78,6 +78,9 @@ protoop_arg_t plugin_run_protoop(picoquic_cnx_t *cnx, protoop_id_t pid, int inpu DBG_PLUGIN_PRINTF("Out %d: 0x%lx", i, outputv[i]); } #endif + } else if (outputc > 0) { + printf("WARNING: no output value provided for protocol operation with id 0x%x that returns %d additional outputs\n", pid, outputc);...
Fix incorrect gettable OSSL_CIPHER_PARAM_TLS_MAC parameter
@@ -30,7 +30,6 @@ static const OSSL_PARAM cipher_known_gettable_params[] = { OSSL_PARAM_int(OSSL_CIPHER_PARAM_CUSTOM_IV, NULL), OSSL_PARAM_int(OSSL_CIPHER_PARAM_CTS, NULL), OSSL_PARAM_int(OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK, NULL), - { OSSL_CIPHER_PARAM_TLS_MAC, OSSL_PARAM_OCTET_PTR, NULL, 0, OSSL_PARAM_UNMODIFIED }, OSS...
set window width to 990 in vna.ui
<rect> <x>0</x> <y>0</y> - <width>880</width> + <width>990</width> <height>660</height> </rect> </property> <property name="minimumSize"> <size> - <width>880</width> + <width>990</width> <height>660</height> </size> </property>
data integrity problem during write pipe operation. the kernel does not provide IO pipe API that force sends data completeness in once invocation. We need to evaluate whether should go on do IO after once return
@@ -398,8 +398,27 @@ size_t url_execute_fwrite(void *ptr, size_t size, URL_FILE *file, CopyState pstate) { URL_EXECUTE_FILE *efile = (URL_EXECUTE_FILE *) file; + int fd = efile->handle->pipes[EXEC_DATA_P]; + size_t offset = 0; + const char* p = (const char* ) ptr; - return pipewrite(efile->handle->pipes[EXEC_DATA_P], p...
net/tcp: reprepare response buffer from unthrottle pool
@@ -118,7 +118,7 @@ uint16_t tcp_callback(FAR struct net_driver_s *dev, /* Prepare device buffer */ - if (dev->d_iob == NULL && netdev_iob_prepare(dev, true, 0) != OK) + if (dev->d_iob == NULL && netdev_iob_prepare(dev, false, 0) != OK) { return 0; } @@ -190,7 +190,7 @@ uint16_t tcp_callback(FAR struct net_driver_s *de...
Have SCons set the number of jobs automatically.
@@ -161,6 +161,10 @@ def get_libtcod_version(): return re.match(r'.*#define TCOD_STRVERSION "([^"]+)"', changelog.read(), re.DOTALL).groups()[0] +try: + SetOption('num_jobs', os.cpu_count() or 1) +except AttributeError: + pass LIBTCOD_ROOT_DIR = '../..'
Add RaptureShellModule
using FFXIVClientStructs.Common; using FFXIVClientStructs.FFXIV.Client.UI.Agent; using FFXIVClientStructs.FFXIV.Client.UI.Misc; +using FFXIVClientStructs.FFXIV.Client.UI.Shell; namespace FFXIVClientStructs.FFXIV.Client.UI { @@ -35,6 +36,9 @@ namespace FFXIVClientStructs.FFXIV.Client.UI [VirtualFunction(7)] public parti...
Allow Boost in mds
@@ -78,6 +78,8 @@ ALLOW market/indexer -> contrib/libs/boost ALLOW market/indexer -> contrib/deprecated/boost ALLOW maps -> contrib/libs/boost ALLOW maps -> contrib/deprecated/boost +ALLOW mds -> contrib/libs/boost +ALLOW mds -> contrib/deprecated/boost ALLOW metrika -> contrib/libs/boost ALLOW metrika -> contrib/depre...
OcCpuLib: Added iMac19,1 (i5 8600), thx AppleLife and
@@ -522,8 +522,10 @@ DetectAppleProcessorType ( if (AppleMajorType == AppleProcessorMajorI5) { // Kaby has 0x9 stepping, and Coffee use 0xA / 0xB stepping. if (Stepping == 9) { - // IM181 (i5-7360U), IM182 (i5-7400), IM183 (i5-7600) + // IM181 (i5-7360U), IM182 (i5-7400), IM183 (i5-7600), IM191 (i5-8600) [NOTE 1] // MB...
Allow Too Big IP in Raw Parsing
@@ -623,7 +623,7 @@ CxPlatDpRawParseIPv4( uint16_t IPTotalLength; IPTotalLength = CxPlatByteSwapUint16(IP->TotalLength); - if (Length != IPTotalLength) { + if (Length < IPTotalLength) { QuicTraceEvent( DatapathErrorStatus, "[data][%p] ERROR, %u, %s.", @@ -674,7 +674,7 @@ CxPlatDpRawParseIPv6( if (IP->NextHeader == IPPR...
Remove unused NGTCP2_ACKTR_FLAG_ACK_FINISHED_ACK
@@ -93,10 +93,6 @@ typedef struct ngtcp2_acktr_ack_entry { /* NGTCP2_ACKTR_FLAG_ACTIVE_ACK indicates that there are pending protected packet to be acknowledged. */ #define NGTCP2_ACKTR_FLAG_ACTIVE_ACK 0x02 -/* NGTCP2_ACKTR_FLAG_ACK_FINISHED_ACK is set when server received - acknowledgement for ACK which acknowledges th...
logging: flush after each write
@@ -134,7 +134,6 @@ void Logger::writeToFile(){ auto& logArray = logger->get_log_data(); if (output_file && !logArray.empty()){ - printf("%f\n", logArray.back().frametime); output_file << logArray.back().fps << ","; output_file << logArray.back().frametime << ","; output_file << logArray.back().cpu_load << ","; @@ -147...
Inserted example images to MicroPython doc Inserted in-line images explaining MicroPython functions to the documentation
@@ -148,6 +148,8 @@ Draws a rectangle filled with the current pen colour to the buffer. The `x` and picodisplay.rectangle(x, y, w, h) ``` +![Rectangle function explanation image](/micropython/modules/pico_display/images/rectangle.png) + ### circle Draws a circle filled with the current pen colour to the buffer. The `x`...
actually smaller buffers to begin works better for small inputs
*/ #include "all.h" -#define JAM_NONE 0 -#define JAM_HEAD 1 -#define JAM_TAIL 2 - typedef struct { c3_w a_w; c3_w b_w; @@ -80,8 +76,8 @@ _jam_buf_top(u3_noun a) c3_o cel_o; c3_w* sal_w, len_w; - buf_u.a_w = 14930352; // fib(36) # of bits starting in wor_w - buf_u.b_w = 9227465; // fib(35) + buf_u.a_w = 144; // fib(12) ...
Fix compileShader;
@@ -1162,13 +1162,9 @@ static int l_lovrGraphicsCompileShader(lua_State* L) { ShaderStage stage = luax_checkenum(L, 1, ShaderStage, NULL); bool allocated; ShaderSource spirv = luax_checkshadersource(L, 2, stage, &allocated); - if (!allocated) { - lua_settop(L, 2); - return 1; - } else { Blob* blob = lovrBlobCreate((voi...
bugid:20235446:disable aos xz function to use custom
EXTRA_POST_BUILD_TARGETS += gen_standard_images - +CUSTOM_OTA := 1 gen_standard_images: $(PYTHON) platform/mcu/asr5501mk/ota.py $(BIN_OUTPUT_FILE) $(PYTHON) $(SCRIPTS_PATH)/ota_gen_md5_bin.py $(OTA_BIN_OUTPUT_FILE) -m $(IMAGE_MAGIC) \ No newline at end of file
Use constants rather than replacements when possible in test.c. Some of the replacements that were being done already existed as constants, so use the constants instead. Also fix a minor formatting error introduced when testAdd() was renamed to hrnAdd().
@@ -192,13 +192,13 @@ main(int argListSize, const char *argList[]) // Set globals hrnInit( argList[0], // Test exe - "{[C_TEST_PROJECT_EXE]}", // Project exe - {[C_TEST_CONTAINER]}, // Is this test running in a container? + TEST_PROJECT_EXE, // Project exe + TEST_IN_CONTAINER, // Is this test running in a container? {[...
pg_validatebackup: Adjust TAP tests to undo permissions change. It may be necessary to go further and remove this test altogether, but I'm going to try this fix first. It's not clear, at least to me, exactly how this is breaking buildfarm members, but it appears to be doing so.
@@ -80,6 +80,7 @@ my @scenario = ( { 'name' => 'open_directory_fails', 'mutilate' => \&mutilate_open_directory_fails, + 'cleanup' => \&cleanup_open_directory_fails, 'fails_like' => qr/could not open directory/, 'skip_on_windows' => 1 }, @@ -245,6 +246,15 @@ sub mutilate_open_directory_fails return; } +# restore permiss...
ixfr-out, review fix, add const in ixfr_write_rr_pkt.
@@ -44,7 +44,7 @@ struct rrcompress_entry { /* rbtree node, key is this struct */ struct rbnode node; /* the uncompressed domain name */ - uint8_t* dname; + const uint8_t* dname; /* the length of the dname, includes terminating 0 label */ uint16_t len; /* the offset of the dname in the packet */ @@ -125,7 +125,7 @@ sta...
get rid of printing bug error this error is given since the last commit => also meant to take care of =>
@@ -697,7 +697,7 @@ static int seq_mrhook(t_mifiread *mr, void *hookdata, int evtype) sev->e_delta = scoretime; sev->e_bytes[0] = status | mifiread_getchannel(mr); sev->e_bytes[1] = mifiread_getdata1(mr); - if (MIFI_ONEDATABYTE(status)) + if (MIFI_ONEDATABYTE(status) || evtype == 0x2f) sev->e_bytes[2] = SEQ_EOM; else {...
fix incorrect TLS warning
@@ -189,7 +189,7 @@ handshake(struct neat_ctx *ctx, int err = SSL_do_handshake(private->ssl); if (err == 1) { - nt_log(ctx, NEAT_LOG_WARNING, "%s - handshake failed", __func__); + nt_log(ctx, NEAT_LOG_INFO, "%s - handshake successfull", __func__); return NEAT_OK; }
configs/rtl8721cms/loadable_apps : Enable SE and Disable Dcache Enable Ameba SE and Disable Dcache
@@ -106,8 +106,7 @@ CONFIG_ARMV8M_HAVE_DCACHE=y CONFIG_ARMV8M_USEBASEPRI=y CONFIG_ARMV8M_TRUSTZONE=y CONFIG_ARMV8M_ICACHE=y -CONFIG_ARMV8M_DCACHE=y -# CONFIG_ARMV8M_DCACHE_WRITETHROUGH is not set +# CONFIG_ARMV8M_DCACHE is not set # CONFIG_ARMV8M_HAVE_ITCM is not set # CONFIG_ARMV8M_HAVE_DTCM is not set # CONFIG_ARMV8M...
sse2: added NEON impl for mm_cvtsd_f64
@@ -2352,8 +2352,12 @@ simde_mm_cvtsd_f64 (simde__m128d a) { return _mm_cvtsd_f64(a); #else simde__m128d_private a_ = simde__m128d_to_private(a); + #if defined(SIMDE_ARM_NEON_A64V8_NATIVE) + return HEDLEY_STATIC_CAST(simde_float64, vgetq_lane_f64(a_.neon_f64, 0)); + #else return a_.f64[0]; #endif + #endif } #if defined...
Docs: uppercase filename reference
@@ -76,8 +76,7 @@ ALTER SYSTEM RESET ALL</codeblock> </p> </section> <section id="section8"><title>See Also</title> - <p><codeph><xref - href="./set.xml#topic1" type="topic" format="dita"/></codeph>, <codeph><xref - href="./show.xml#topic1" type="topic" format="dita"/></codeph></p></section> + <p><codeph><xref href="./...
Build nanos with MEMDEBUG mcache actually enabled
@@ -45,7 +45,7 @@ jobs: - run: sudo apt-get update - run: sudo apt-get install nasm qemu-system-x86 ent ruby rustc - run: cd .. && git clone git@github.com:nanovms/ops.git - - run: make + - run: make MEMDEBUG=mcache - run: curl https://ops.city/get.sh -sSfL | sh - run: command: |
Use LEQUAL depth test when drawing text;
@@ -119,8 +119,14 @@ void lovrFontPrint(Font* font, const char* str) { str += bytes; } + // Set depth test to LEQUAL to prevent blending issues with glyphs, not great + CompareMode oldCompareMode = lovrGraphicsGetDepthTest(); + lovrGraphicsSetDepthTest(COMPARE_LEQUAL); + lovrGraphicsSetShapeData(font->vertices.data, fo...
board/osiris/board.h: Format with clang-format BRANCH=none TEST=none Tricium: disable
#define GPIO_SYS_RESET_L GPIO_SYS_RST_ODL #define GPIO_WP_L GPIO_EC_WP_ODL - /* I2C Bus Configuration */ #define I2C_PORT_RGBKB NPCX_I2C_PORT0_0 @@ -166,10 +165,7 @@ enum temp_sensor_id { TEMP_SENSOR_COUNT }; -enum battery_type { - BATTERY_COSMX_AP22ABN, - BATTERY_TYPE_COUNT -}; +enum battery_type { BATTERY_COSMX_AP22A...
Add feature tests for gnutls-next Test NO_TICKETS and DISABLE_TLS13_COMPAT_MODE
@@ -405,6 +405,44 @@ requires_gnutls_tls1_3() { fi } +# check %NO_TICKETS option +requires_gnutls_next_no_ticket() { + requires_gnutls_next + if [ "$GNUTLS_NEXT_AVAILABLE" = "NO" ]; then + GNUTLS_NO_TICKETS_AVAILABLE="NO" + fi + if [ -z "${GNUTLS_NO_TICKETS_AVAILABLE:-}" ]; then + if $GNUTLS_NEXT_CLI --priority-list 2>...
Add _CBOR_UNUSED for MSVC
@@ -67,6 +67,8 @@ static const uint8_t cbor_patch_version = CBOR_PATCH_VERSION; #ifdef __GNUC__ #define _CBOR_UNUSED(x) __attribute__((__unused__)) x +#elif defined(_MSC_VER) +#define _CBOR_UNUSED(x) __pragma(warning(suppress : 4100 4101)) x #else #define _CBOR_UNUSED(x) x #endif