message
stringlengths
6
474
diff
stringlengths
8
5.22k
profile: add icons, sidebar bg matches others
@@ -12,7 +12,16 @@ import { ContactCard } from "~/views/landscape/components/ContactCard"; const SidebarItem = ({ children, view, current }) => { const selected = current === view; - const color = selected ? "blue" : "black"; + const icon = (view) => { + switch(view) { + case 'identity': + return 'Smiley'; + case 'sett...
Modify comments in LL templates
@@ -45,7 +45,7 @@ static uint8_t initialized = 0; */ static uint16_t send_data(const void* data, uint16_t len) { - /** + /* * Implement send function here */ @@ -74,7 +74,7 @@ esp_ll_init(esp_ll_t* ll, uint32_t baudrate) { static uint8_t memory[0x10000]; /* Create memory for dynamic allocations with specific size */ /*...
Add typechecker tests for logical operators Now that they only accept booleans we need to have tests to check that.
@@ -169,6 +169,17 @@ describe("Titan type checker", function() assert.match("trying to bitwise negate a", errs) end) + it("catches wrong use of boolean not", function() + local code = [[ + function fn(): boolean + return not nil + end + ]] + local prog, errs = run_checker(code) + assert.falsy(prog) + assert.match("tryi...
Fix leaks in db module.
@@ -128,9 +128,11 @@ dbQuery(Db *this, const PgClientQueryResult resultType, const String *const quer pckWriteStrIdP(param, resultType); pckWriteStrP(param, query); + PackRead *const read = protocolClientExecute(this->remoteClient, command, true); + MEM_CONTEXT_PRIOR_BEGIN() { - result = pckReadPackP(protocolClientExec...
restore plainClient for go_2
@@ -4,18 +4,13 @@ import ( "bufio" "fmt" "net/http" - "time" ) func main() { - client := http.Client{ - Timeout: 120 * time.Second, - } - // ensure the website does not redirect to https; // also use the www. to avoid an unnecessary redirect - resp, err := client.Get("http://www.gnu.org") + resp, err := http.Get("http:...
mcu/stm32f7: Remove inapplicable flash cache calls __HAL_FLASH_INSTRUCTION_CACHE_ENABLE and __HAL_FLASH_DATA_CACHE_ENABLE are not applicable for STM32F7 devices, those are for F2, F4, L4
@@ -258,17 +258,5 @@ SystemClock_Config(void) #if PREFETCH_ENABLE __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); #endif - - /* - * These are flash instruction and data caches, not the be confused with - * MCU caches. - */ -#if INSTRUCTION_CACHE_ENABLE - __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); -#endif - -#if DATA_CACHE_ENABLE - ...
Fix shader issues;
@@ -64,7 +64,7 @@ static const char* lovrSkyboxVertexShader = "" static const char* lovrSkyboxFragmentShader = "" "in vec3 texturePosition; \n" -"uniform samplerCube cube = 1; \n" +"uniform samplerCube cube; \n" "vec4 color(vec4 graphicsColor, sampler2D image, vec2 uv) { \n" " return graphicsColor * texture(cube, textu...
COIL: Update RT1718S address define Update RT1718S address define to match current i2c naming conventions in the codebase. BRANCH=None TEST=make -j buildall
#include "usb_pd_tcpm.h" /* RT1718S Private RegMap */ -#define RT1718S_SLAVE_ADDR_FLAGS 0x43 +#define RT1718S_I2C_ADDR_FLAGS 0x43 #define RT1718S_VID 0x29CF #define RT1718S_PID 0x1718
fixed sync() api
@@ -159,6 +159,14 @@ void tic_api_exit(tic_mem* tic) core->data->exit(core->data->data); } +static inline void sync(void* dst, void* src, s32 size, bool rev) +{ + if(rev) + SWAP(dst, src, void*); + + memcpy(dst, src, size); +} + void tic_api_sync(tic_mem* tic, u32 mask, s32 bank, bool toCart) { tic_core* core = (tic_co...
fixed for bool changed to u8
@@ -71,8 +71,10 @@ s16 menuV = 1; fix16 amplitude = FIX16(AMPLITUDE_DEF); fix16 waveSpeed = FIX16(WAVE_SPEED_DEF); fix16 angularVelocity = FIX16(ANGULAR_VELOCITY_DEF); -bool resetWave = FALSE; -bool resetParameters = FALSE; + +// force word alignment as we will use a void* to access them from menu +bool resetWave __att...
local-gadget: Add verbose flag to set debug log level
@@ -28,6 +28,7 @@ import ( "github.com/spf13/cobra" localgadgetmanager "github.com/kinvolk/inspektor-gadget/pkg/local-gadget-manager" + log "github.com/sirupsen/logrus" ) // This variable is used by the "version" command and is set during build. @@ -272,18 +273,17 @@ func newRootCmd() *cobra.Command { return rootCmd } ...
[libc] Add dummy _gettimeofday function when hardware do not have the RTC.
@@ -217,3 +217,13 @@ int gettimeofday(struct timeval *tp, void *ignore) return 0; } #endif + +#ifndef _gettimeofday +/* Dummy function when hardware do not have RTC */ +int _gettimeofday( struct timeval *tv, void *ignore) +{ + tv->tv_sec = 0; // convert to seconds + tv->tv_usec = 0; // get remaining microseconds + retu...
s3-store: requested stylistic changes
~/ %s3-peek |= =path ^- (unit (unit cage)) - ?> (team:title our.bowl src.bowl) - ?+ path (on-watch:def path) + ?. (team:title our.bowl src.bowl) ~ + ?+ path [~ ~] [%x %credentials ~] [~ ~ %s3-update !>(`update`[%credentials credentials])] + :: [%x %configuration ~] [~ ~ %s3-update !>(`update`[%configuration configurati...
Fixed build with Clang 10, broken by This silences the -Wimplicit-int-float-conversion warning.
@@ -2142,7 +2142,9 @@ nxt_conf_json_parse_number(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, num = nxt_strtod(value->u.number, &end); - if (nxt_slow_path(nxt_errno == NXT_ERANGE || fabs(num) > NXT_INT64_T_MAX)) { + if (nxt_slow_path(nxt_errno == NXT_ERANGE + || fabs(num) > (double) NXT_INT64_T_MAX)) + { nxt_c...
add missing ntohl to send_ip6_fib_details(...)
@@ -364,7 +364,7 @@ send_ip6_fib_details (vpe_api_main_t * am, } fp->weight = api_rpath->rpath.frp_weight; fp->preference = api_rpath->rpath.frp_preference; - fp->sw_if_index = api_rpath->rpath.frp_sw_if_index; + fp->sw_if_index = htonl (api_rpath->rpath.frp_sw_if_index); copy_fib_next_hop (api_rpath, fp); fp++; }
sse: WASM SIMD implementations _mm_move_ss and _mm_cmp{,un}ord_ps Fixes
@@ -244,6 +244,8 @@ simde_mm_move_ss (simde__m128 a, simde__m128 b) { 12, 13, 14, 15 }; r_.altivec_f32 = vec_perm(a_.altivec_f32, b_.altivec_f32, m); +#elif defined(SIMDE_WASM_SIMD128_NATIVE) + r_.wasm_v128 = wasm_v8x16_shuffle(b_.wasm_v128, a_.wasm_v128, 0, 1, 2, 3, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31); #el...
api,cxx: throw std::bad_alloc on allocation failures
@@ -119,6 +119,9 @@ template <typename T, typename... Params> T *new_obj(Params... params) { T *obj = static_cast<T *>(cr_malloc(sizeof (T))); + if (!obj) { + throw std::bad_alloc(); + } new (obj) T(params...); return obj; @@ -140,7 +143,13 @@ T *new_obj(Params... params) template <typename T> typename std::enable_if<s...
Prevent camera leaving scene bounds
@@ -172,7 +172,7 @@ export const EventFields = { label: "X", type: "number", min: 0, - max: 32, + max: 11, width: "50%", defaultValue: 0 }, @@ -181,7 +181,7 @@ export const EventFields = { label: "Y", type: "number", min: 0, - max: 32, + max: 13, width: "50%", defaultValue: 0 },
libtcmu: Convert to use tcmu_get_cdb_length helper
@@ -242,21 +242,10 @@ static void tcmu_cdb_debug_info(const struct tcmulib_cmd *cmd) { int i, n, bytes; char fix[CDB_FIX_SIZE], *buf; - uint8_t group_code = cmd->cdb[0] >> 5; buf = fix; - switch (group_code) { - case 0: /*000b for 6 bytes commands */ - bytes = 6; - break; - case 1: /*001b for 10 bytes commands */ - cas...
Change script to solve G_NEXT_SRV_RSA not set issue
@@ -91,6 +91,7 @@ if [ -n "${GNUTLS_NEXT_SERV:-}" ]; then G_NEXT_SRV_RSA="$GNUTLS_NEXT_SERV --x509certfile data_files/server2.crt --x509keyfile data_files/server2.key" else G_NEXT_SRV=false + G_NEXT_SRV_RSA=false fi if [ -n "${GNUTLS_NEXT_CLI:-}" ]; then
Fix mirror PowerShell script (try 5)
@@ -17,7 +17,6 @@ param ( ) Set-StrictMode -Version 'Latest' -$PSDefaultParameterValues['*:ErrorAction'] = 'Stop' # Verify the PAT environmental variable is set. if ($null -eq $Env:AzDO_PAT -or "" -eq $Env:AzDO_PAT) { @@ -34,10 +33,6 @@ git remote add azdo-mirror "https://nibanks:$Env:AzDO_PAT@mscodehub.visualstudio gi...
fix flashing to 'f0 device' targets Fixes Pull request (0498621) accidentally deleted the call to `set_flash_cr_pg`.
@@ -2001,6 +2001,9 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, uint32_t /* unlock and set programming mode */ unlock_flash_if(sl); + if (sl->flash_type != STLINK_FLASH_TYPE_F1_XL) { + set_flash_cr_pg(sl); + } DLOG("Finished unlocking flash, running loader!\n"); if (stlink_flash_loader_run(...
High-Level API: Fix link to section
@@ -8,7 +8,7 @@ not to be directly used in applications. The high-level API should be extremely should be hard to use it in a wrong way. This tutorial gives an introduction for developers who want to elektrify their application using the high-level API. -The API supports all CORBA Basic Data Types, except for `wchar`, ...
fix wrong log level; fix
@@ -592,7 +592,7 @@ char* mergeJSONObjectStrings(const char* j1, const char* j2) { } char* s = jsonToString(j); secFreeJson(j); - syslog(LOG_AUTH | LOG_ERR, "Merge result '%s'", s); + syslog(LOG_AUTH | LOG_DEBUG, "Merge result '%s'", s); return s; }
Fix incorrect weight for intra frame
@@ -159,8 +159,8 @@ static double pic_allocate_bits(encoder_state_t * const state) return state->frame->cur_gop_target_bits; } - const double pic_weight = encoder->gop_layer_weights[ - encoder->cfg.gop[state->frame->gop_offset].layer - 1]; + const double pic_weight = state->frame->poc != 0 ? encoder->gop_layer_weights[...
actions: use openjdk and set PATH, ENV manually
@@ -25,11 +25,6 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: '11' # The JDK version to make available on the path. - java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk - architecture: x64 # (x64 or x86) - defaults to x64 - uses: actions/setup-python@v2 wit...
Export PhGenerateRandomNumber64 and PhIsFirmwareSupported
@@ -305,6 +305,7 @@ EXPORTS PhGetTokenPrimaryGroup PhGetTokenPrivileges PhGetTokenUser + PhIsFirmwareSupported PhImpersonateToken PhListenNamedPipe PhOpenKey @@ -376,6 +377,7 @@ EXPORTS PhGenerateGuid PhGenerateGuidFromName PhGenerateRandomAlphaString + PhGenerateRandomNumber64 PhGetApplicationDirectory PhGetApplicatio...
Clone command arguments Cosmetic fix for
@@ -35,9 +35,11 @@ Developed as Simplified ROSS ([gonsie/SR](http://github.com/gonsie/SR)), this ve 1. Clone the repository to your local machine: ``` - git clone git@github.com:carothersc/ROSS.git + git clone -b master --single-branch git@github.com:carothersc/ROSS.git cd ROSS ``` + Since the ROSS repostiory is quite ...
Add note about origin of function
@@ -328,6 +328,9 @@ void lv_canvas_draw_circle(lv_obj_t * canvas, lv_coord_t x0, lv_coord_t y0, lv_c * @param point2 end point of the line * @param color color of the line */ +/* + * NOTE: The lv_canvas_draw_line function originates from https://github.com/jb55/bresenham-line.c. + */ void lv_canvas_draw_line(lv_obj_t *...
doc: PG 13 relnotes: fix xref link and remove extra word
of parameter values output during statement non-error logging, and <xref linkend="guc-log-parameter-max-length-on-error"/> does the same for error statement logging. Previously, prepared statement - parameters were not logged during errors. error. + parameters were not logged during errors. </para> </listitem> --> <par...
Fix caller list of the MD module
* library/ecjpake.c * library/hkdf.c * library/hmac_drbg.c - * library/oid.c * library/pk.c * library/pkcs5.c * library/pkcs12.c * library/ssl_cookie.c * library/ssl_msg.c * library/ssl_tls.c + * library/x509.c * library/x509_crt.c * library/x509write_crt.c * library/x509write_csr.c
Fix error in LHASH documentation
@@ -30,7 +30,7 @@ OPENSSL_LH_doall, OPENSSL_LH_doall_arg, OPENSSL_LH_error TYPE *lh_TYPE_insert(LHASH_OF(TYPE) *table, TYPE *data); TYPE *lh_TYPE_delete(LHASH_OF(TYPE) *table, TYPE *data); - TYPE *lh_retrieve(LHASH_OF(TYPE) *table, TYPE *data); + TYPE *lh_TYPE_retrieve(LHASH_OF(TYPE) *table, TYPE *data); void lh_TYPE_d...
Fix changelog requirements section. Setbuf() is currently not guarded by MBEDTLS_FS_IO, nor can it easily be so. Raised a seperate issue to cover this, and removed the mention of MBEDTLS_FS_IO from the Changelog.
@@ -5,6 +5,7 @@ Security Glenn Strauss. Requirement changes * The library will no longer compile out of the box on a platform without - setbuf() if MBEDTLS_FS_IO is enabled. If your platform does not have - setbuf(), you can configure an alternative function by enabling - MBEDTLS_PLATFORM_SETBUF_ALT or MBEDTLS_PLATFORM...
groups: permission remove button for group members Adds 'adminOpt' to the remove button for group members who have not yet shared metadata.
@@ -47,6 +47,9 @@ export class ContactSidebar extends Component { ); }); + let adminOpt = (props.path.includes(`~${window.ship}/`)) + ? "dib" : "dn"; + let groupItems = Array.from(group).map((member) => { return ( @@ -65,7 +68,7 @@ export class ContactSidebar extends Component { title={member}> {cite(member)} </p> - <p...
config: Put all sensor interrupt config events at a single location The number of interrupt events will increase with the ST sensors support. BRANCH=none TEST=compile
*/ #undef CONFIG_ACCEL_STD_REF_FRAME_OLD -/* - * Define the event to raise when BMI160 interrupt. - * Must be within TASK_EVENT_MOTION_INTERRUPT_MASK. - */ -#undef CONFIG_ACCELGYRO_BMI160_INT_EVENT - /* Set when INT2 is an ouptut */ #undef CONFIG_ACCELGYRO_BMI160_INT2_OUTPUT /* Specify type of Gyrometers attached. */ #...
porting: Fix linux port example Linux port sample is using legacy advertising API which is disabled if Extended Advertising is enabled. For testing complete linux build we should have separate linux_dummy sample which doesn't call any APIs for simplicity.
/*** net/nimble */ #ifndef MYNEWT_VAL_BLE_EXT_ADV -#define MYNEWT_VAL_BLE_EXT_ADV (1) +#define MYNEWT_VAL_BLE_EXT_ADV (0) #endif #ifndef MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE #endif #ifndef MYNEWT_VAL_BLE_PERIODIC_ADV -#define MYNEWT_VAL_BLE_PERIODIC_ADV (1) +#define MYNEWT_VAL_BLE_PERIODIC_ADV (0) #endif #ifndef MYNEWT_VAL_...
Allocator list can happen only for heap in ALLOCATE_HEAP and TEST_HEAP instruction
@@ -1444,7 +1444,7 @@ static bool maybe_call_native(Context *ctx, AtomString module_name, AtomString f case OP_ALLOCATE_HEAP: { int next_off = 1; int stack_need; - DECODE_ALLOCATOR_LIST(stack_need, code, i, next_off, next_off); + DECODE_INTEGER(stack_need, code, i, next_off, next_off); int heap_need; DECODE_ALLOCATOR_L...
Fix bug with std140 offset logic;
@@ -164,8 +164,8 @@ size_t lovrShaderComputeUniformLayout(arr_uniform_t* uniforms) { int align; Uniform* uniform = &uniforms->data[i]; if (uniform->count > 1 || uniform->type == UNIFORM_MATRIX) { - align = 16 * (uniform->type == UNIFORM_MATRIX ? uniform->components : 1); - uniform->size = align * uniform->count; + alig...
Enhance gppperfmon test to include row metrics. The gpperfmon test is enhanced to include rows_out metric from the queries_history table.
@@ -91,8 +91,8 @@ Feature: gpperfmon To run all the other scenarios and omit this test on MacOS, use: $ behave test/behave/mgmt_utils/gpperfmon.feature --tags @gpperfmon --tags ~@gpperfmon_skew_cpu_and_cpu_elapsed """ - @gpperfmon_skew_cpu_and_cpu_elapsed - Scenario: gpperfmon records skew_cpu and cpu_elapsed + @gpperf...
add svn 1.9.5
{"host": {"os": "DARWIN"}, "default": true} ] }, + "svn19": { + "tools": { + "svn": { "bottle": "svn19", "executable": "svn" } + }, + "platforms": [ + {"host": {"os": "LINUX"}}, + {"host": {"os": "WIN"}}, + {"host": {"os": "DARWIN"}} + ] + }, "cmake": { "tools": { "cmake": { "bottle": "cmake", "executable": "cmake" } "...
stm32/qspi: Enable sample shift and disable timeout counter. This makes the QSPI more robust, in particular the timeout counter should not be used with memory mapped mode (see F7 errata).
@@ -55,8 +55,8 @@ void qspi_init(void) { #if defined(QUADSPI_CR_DFM_Pos) | 0 << QUADSPI_CR_DFM_Pos // dual-flash mode disabled #endif - | 0 << QUADSPI_CR_SSHIFT_Pos // no sample shift - | 1 << QUADSPI_CR_TCEN_Pos // timeout counter enabled + | 1 << QUADSPI_CR_SSHIFT_Pos // do sample shift + | 0 << QUADSPI_CR_TCEN_Pos /...
add childlocker
@@ -856,6 +856,19 @@ void DeRestPluginPrivate::handleTuyaClusterIndication(const deCONZ::ApsDataIndic enqueueEvent(e); } } + break; + case 0x010D : // Childlock status for BRT-100 + { + bool locked = (data == 0) ? false : true; + ResourceItem *item = sensorNode->item(RConfigLocked); + + if (item && item->toBool() != lo...
VERSION bump to version 2.1.71
@@ -64,7 +64,7 @@ endif() # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(SYSREPO_MAJOR_VERSION 2) set(SYSREPO_MINOR_VERSION 1) -set(SYSREPO_MICRO_VERSION 70) +set(SYSREPO_MICRO_VERSION 71) set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI...
ensure page reset flag is always reset
@@ -602,6 +602,7 @@ static mi_page_t* mi_segment_span_allocate(mi_segment_t* segment, size_t slice_i // ensure the memory is committed mi_segment_ensure_committed(segment, _mi_page_start(segment,page,NULL), slice_count * MI_SEGMENT_SLICE_SIZE, tld->stats); + page->is_reset = false; segment->used++; return page; }
Fix 32 bit platforms.
@@ -46,12 +46,10 @@ void *(janet_unwrap_pointer)(Janet x) { return janet_unwrap_pointer(x); } JanetFunction *(janet_unwrap_function)(Janet x) { return janet_unwrap_function(x); } JanetCFunction (janet_unwrap_cfunction)(Janet x) { return janet_unwrap_cfunction(x); } int (janet_unwrap_boolean)(Janet x) { return janet_unw...
board/servo_v4p1/fusb302b.c: Format with clang-format BRANCH=none TEST=none
@@ -72,7 +72,6 @@ int init_fusb302b(int p) if (ret) return ret; - ret = tcpc_read(TCPC_REG_INTERRUPTA, &interrupta); if (ret) return ret; @@ -159,7 +158,6 @@ int get_cc(int *cc1, int *cc2) else orig_meas_cc2 = 0; - /* Disable CC2 measurement switch, enable CC1 measurement switch */ reg &= ~TCPC_REG_SWITCHES0_MEAS_CC2; ...
Examples: apply flake8
@@ -77,11 +77,11 @@ def example(): slat = codes_get_array(bufr, "latitude") slon = codes_get_array(bufr, "longitude") try: - htg = codes_get(ibufr, "heightOfStationGroundAboveMeanSeaLevel") + htg = codes_get(bufr, "heightOfStationGroundAboveMeanSeaLevel") except Exception: htg = -999.0 try: - htp = codes_get(ibufr, "he...
Fix mget function signature in WASM binding
@@ -980,7 +980,7 @@ M3Result linkTicAPI(IM3Module module) _ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "map", "v(iiiiiiiiii)", &wasmtic_map))); _ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "memcpy", "v(iii)", &wasmtic_memcpy))); _ (SuppressLookupFailure (m3_LinkRawFunction (module, "env"...
event_filter struct changed
@@ -1021,30 +1021,12 @@ struct event_filter { */ enum event_severity severity; - /** - * The specific event code to retrieve. Only used if - * NVM_FILTER_ON_CODE is set in the #filter_mask. - */ - NVM_UINT16 code; - /** * The identifier to retrieve events for. * Only used if NVM_FILTER_ON_UID is set in the #filter_mask...
* vscode settings
{ "files.insertFinalNewline": false, - "cmake.generator": "Unix Makefiles", + //"cmake.generator": "Unix Makefiles", + "cmake.generator": "Ninja", "cmake.configureArgs": [ "-DCMAKE_VERBOSE_MAKEFILE=OFF", "-DENABLE_HTTP=ON", "-DBUILD_JNI_BINDING=ON", "-DBUILD_NODEJS_BINDING=ON", "-DBUILD_REACT_NATIVE_BINDING=OFF", + "-D...
Fix C99-style declaration of loop variable
@@ -719,9 +719,10 @@ integer iparam2stage_(integer *ispec, char *name__, char *opts, integer *ni, // s_copy(subnam, name__, (ftnlen)12, name_len); strncpy(subnam,name__,13); subnam[13]='\0'; -for (int i=0;i<13;i++) subnam[i]=toupper(subnam[i]); - //fprintf(stderr,"iparam2stage, name__ gelesen #%s#\n",name__); -//fprint...
Fix JVPP enum _host_to_net_ translation use ordinal value of enumeration instead of accessing its value directly.
@@ -117,8 +117,8 @@ $json_definition static inline void _host_to_net_${c_name}(JNIEnv * env, jobject _host, vl_api_${c_name}_t * _net) { jclass enumClass = (*env)->FindClass(env, "${class_FQN}"); - jfieldID valueFieldId = (*env)->GetStaticFieldID(env, enumClass, "value", "${jni_signature}"); - ${jni_type} value = (*env...
README: Update CI status badges Switch from Travis to GH Actions badges.
## Overview -[![Build/Test](https://travis-ci.org/apache/mynewt-core.svg?branch=master)][travis] +<a href="https://github.com/apache/mynewt-core/actions/workflows/build_targets.yml"> + <img src="https://github.com/apache/mynewt-core/actions/workflows/build_targets.yml/badge.svg"> +<a/> -[travis]: https://travis-ci.org/...
Allow base-4.7 (GHC 7.8)
@@ -19,7 +19,7 @@ source-repository head library exposed-modules: Foreign.Lua.Module.Text - build-depends: base >= 4.8 && < 4.11 + build-depends: base >= 4.7 && < 4.11 , hslua >= 0.9 && < 0.10 , text >= 1 && < 1.3 hs-source-dirs: src
Compatible with new SetPrivKey Function
@@ -147,7 +147,7 @@ Value sendalert(const Array& params, bool fHelp) alert.vchMsg = vector<unsigned char>(sMsg.begin(), sMsg.end()); vector<unsigned char> vchPrivKey = ParseHex(params[1].get_str()); - key.SetPrivKey(CPrivKey(vchPrivKey.begin(), vchPrivKey.end())); // if key is not correct openssl may crash + key.SetPri...
grid: fixing inter and manifest link
<link rel="icon" href="/src/assets/favicon.svg" sizes="any" type="image/svg+xml" /> <link rel="mask-icon" href="/src/assets/safari-pinned-tab.svg" color="#000000" /> <link rel="apple-touch-icon" sizes="180x180" href="/src/assets/apple-touch-icon.png" /> - <link rel="manifest" href="/src/assets/site.webmanifest" /> + <l...
sdl/hints: add SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS for 2.0.9
@@ -4,6 +4,11 @@ package sdl #include "sdl_wrapper.h" #include "hints.h" +#if !(SDL_VERSION_ATLEAST(2,0,9)) +#define SDL_HINT_MOUSE_DOUBLE_CLICK_TIME "" +#define SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS "" +#endif + #if !(SDL_VERSION_ATLEAST(2,0,8)) #define SDL_HINT_IOS_HIDE_HOME_INDICATOR "" #define SDL_HINT_RETURN_KEY_HIDE...
Add tests for VAQ with both rate controls.
@@ -11,3 +11,5 @@ valgrind_test $common_args --no-rdoq --no-deblock --no-sao --no-signhide --subme valgrind_test $common_args --no-rdoq --no-signhide --subme=0 valgrind_test $common_args --rdoq --no-deblock --no-sao --subme=0 valgrind_test $common_args --vaq=8 +valgrind_test $common_args --vaq=8 --bitrate 3500 +valgrin...
hoon: add staging redirections for mook, mock.
{$1 p/(list)} :: blocks {$2 p/(list {@ta *})} :: error report == :: +++ noot $% {$0 p/*} :: success + {$1 p/*} :: block + {$2 p/(list tank)} :: stack trace + == :: ++ toon $% {$0 p/*} :: success {$1 p/(list)} :: blocks {$2 p/(list tank)} :: stack trace ++ mack |= {sub/* fol/*} ^- (unit) - =+ ton=(mink [sub fol] |=({* *...
odissey: extend parser with keyword list
* Advanced PostgreSQL connection pooler. */ -typedef struct od_parsertoken od_parsertoken_t; +typedef struct od_token od_token_t; +typedef struct od_keyword od_keyword_t; typedef struct od_parser od_parser_t; enum { @@ -19,7 +20,7 @@ enum { OD_PARSER_STRING }; -struct od_parsertoken +struct od_token { int type; int lin...
interface: mentionText prefaces color with hash Fixes profile overlays in mentions.
@@ -76,7 +76,7 @@ export function Mention(props: { <ProfileOverlay ship={ship} contact={contact} - color={uxToHex(contact?.color ?? '0x0')} + color={`#${uxToHex(contact?.color ?? '0x0')}`} group={group} onDismiss={onDismiss} hideAvatars={false}
spawnd: don't spawn boot drivers
@@ -290,6 +290,7 @@ void spawn_app_domains(void) || strncmp(si.shortname, "cpu", si.shortnamelen) == 0 // Adding following condition for cases like "cpu_omap44xx" || strncmp(si.shortname, "cpu", strlen("cpu")) == 0 + || strncmp(si.shortname, "boot_", strlen("boot_")) == 0 || strncmp(si.shortname, "monitor", si.shortnam...
Connection params tweaks.
@@ -197,7 +197,7 @@ static bool eir_found(struct bt_data *data, void *user_data) LOG_DBG("Found existing connection"); split_central_process_connection(default_conn); } else { - param = BT_LE_CONN_PARAM_DEFAULT; + param = BT_LE_CONN_PARAM(0x0005, 0x000a, 5, 400); err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, pa...
base: make atomics c++ safe
@@ -77,14 +77,14 @@ static inline bool atomic_dec_and_test(atomic_t *a) return (atomic_sub_and_fetch(a, 1) == 0); } -static inline bool atomic_cmpxchg(atomic_t *a, int old, int new) +static inline bool atomic_cmpxchg(atomic_t *a, int oldv, int newv) { - return __sync_bool_compare_and_swap(&a->cnt, old, new); + return _...
VERSION bump to version 2.0.111
@@ -62,7 +62,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 110) +set(LIBYANG_MICRO_VERSION 111) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}...
add mkl support (addresses
@@ -15,6 +15,7 @@ MAKEFLAGS += -R # use for parallel make AR=./ar_lock.sh +MKL?=0 CUDA?=0 ACML?=0 OMP?=1 @@ -107,6 +108,7 @@ else endif CXX ?= g++ +LINKER ?= $(CC) @@ -131,6 +133,9 @@ CUDA_BASE ?= /usr/local/ ACML_BASE ?= /usr/local/acml/acml4.4.0/gfortran64_mp/ +# mkl +MKL_BASE ?= /opt/intel/mkl/lib/intel64/ + # fftw ...
fixed sample to not run out of memory
@@ -11,7 +11,7 @@ typedef struct Vect2D_f16 mov; } _particule; -_particule partics[MAX_PARTIC]; +_particule* partics; s16 numpartic; @@ -28,7 +28,7 @@ static void updatePartic(_particule *part_pos, s16 num); static void drawPartic(_particule *part_pos, s16 num, u8 col); -int main() +int main(u16 hard) { char col; @@ -4...
bcc/python: fix attach kprobe/kretprobe using regex Attach kprobe/kretprobe using regular expression should fail explicitly if no functions are traceable. Currently we catch all exceptions and if no functions are available, program continue with no BPF programs attached. In this commit, change this behavior to explicit...
@@ -782,11 +782,17 @@ class BPF(object): if event_re: matches = BPF.get_kprobe_functions(event_re) self._check_probe_quota(len(matches)) + failed = 0 + probes = [] for line in matches: try: self.attach_kprobe(event=line, fn_name=fn_name) except: - pass + failed += 1 + probes.append(line) + if failed == len(matches): + ...
metadata: rework intro
# # SpecElektra is a specification language that describes content -# of the global key database. +# of KDB (the global key database). # -# Put simply, SpecElektra (configuration in the spec namespace) +# Put simply, SpecElektra (i.e. configuration in the spec: namespace) # allows you to describe how the configuration ...
Bugfix enable console RX UART for gdbstub for runtime mode only.
@@ -1515,9 +1515,9 @@ err: esp_err_t uart_driver_install(uart_port_t uart_num, int rx_buffer_size, int tx_buffer_size, int event_queue_size, QueueHandle_t *uart_queue, int intr_alloc_flags) { esp_err_t r; -#ifdef CONFIG_ESP_GDBSTUB_ENABLED +#ifdef CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME ESP_RETURN_ON_FALSE((uart_num != CONFI...
framer-802154: suppress src panid and put dest pan id by default
@@ -148,8 +148,6 @@ framer_802154_setup_params(packetbuf_attr_t (*get_attr)(uint8_t type), params->fcf.ack_required = get_attr(PACKETBUF_ATTR_MAC_ACK); params->fcf.sequence_number_suppression = FRAME802154_SUPPR_SEQNO; } - /* Compress PAN ID in outgoing frames by default */ - params->fcf.panid_compression = 1; /* Set I...
[scons] split function names, break some lines
@@ -337,23 +337,84 @@ if 1: ['sys/types.h', 'sys/un.h'], ]) - autoconf.haveFuncs(Split('fork stat lstat strftime dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \ - strdup strerror strstr strtol sendfile getopt socket \ - gethostbyname poll epoll_ctl getrlimit chroot \ - getuid select signal pathconf madvise ...
jenkins: do not run normal memcheck if nokdb is active
@@ -706,7 +706,7 @@ def buildAndTest(testName, image, extraCmakeFlags = [:], if(testAll) { ctest() } - if(testMem) { + if(testMem && !testNokdb) { cmemcheck() } if(testNokdb) {
fix(canvas):image cache may expire after set canvas's buff
@@ -76,6 +76,7 @@ void lv_canvas_set_buffer(lv_obj_t * obj, void * buf, lv_coord_t w, lv_coord_t h canvas->dsc.data = buf; lv_img_set_src(obj, &canvas->dsc); + lv_img_cache_invalidate_src(&canvas->dsc); } void lv_canvas_set_px_color(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_color_t c)
Fix texture allocation I think;
@@ -52,16 +52,28 @@ static void lovrTextureAllocate(Texture* texture, TextureData* textureData) { #ifndef EMSCRIPTEN if (GLAD_GL_ARB_texture_storage) { #endif + if (texture->type == TEXTURE_ARRAY) { + glTexStorage3D(texture->type, mipmapCount, internalFormat, w, h, texture->sliceCount); + } else { glTexStorage2D(textur...
Remove Limitations section
@@ -91,14 +91,3 @@ make run Run 'make help' for more details. View the OpenMP Examples [README](../examples/openmp) for more information. - -## AOMP Limitations - -<A NAME="Limitations"> - -See the release notes in github. Here are some limitations. - -``` - - Dwarf debugging is turned off for GPUs. -g will turn on hos...
base64: Replace toml with ni
@@ -111,12 +111,12 @@ The following example shows you how you can use the TOML plugin together with Ba ```sh # Mount TOML and Base64 plugin (provides `binary`) with the configuration key `binary/meta` -kdb mount test_config.toml user/tests/base64 toml base64 binary/meta= +kdb mount test_config.toml user/tests/base64 ni...
[TRIE] add test for private update
@@ -22,6 +22,51 @@ import ( //"github.com/dgraph-io/badger/options" ) +func TestEmptyModTrie(t *testing.T) { + smt := NewModSMT(32, hash, nil) + if !bytes.Equal(smt.DefaultHash(256), smt.Root) { + t.Fatal("empty trie root hash not correct") + } +} + +func TestModUpdateAndGet(t *testing.T) { + smt := NewModSMT(32, hash,...
add gcc8 version matching
@@ -333,6 +333,7 @@ GCCVERSIONGTEQ4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 4) GCCVERSIONGT4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \> 4) GCCVERSIONGT5 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \> 5) GCCVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 7) +GCCVERSIO...
snap screen up with the software keyboard on Android, scale border to whole window
@@ -590,24 +590,33 @@ static void calcTextureRect(SDL_Rect* rect) { bool integerScale = studio_config(platform.studio)->options.integerScale; - SDL_GetWindowSize(platform.window, &rect->w, &rect->h); + s32 sw, sh, w, h; + SDL_GetWindowSize(platform.window, &sw, &sh); enum{Width = TIC80_FULLWIDTH, Height = TIC80_FULLHEI...
Add echo statements to Travis Build
@@ -79,3 +79,13 @@ rm -rf libcrypto-root && ln -s $LIBCRYPTO_ROOT libcrypto-root # Set the libfuzzer to use for fuzz tests export LIBFUZZER_ROOT=$LIBFUZZER_INSTALL_DIR + +echo "TRAVIS_OS_NAME=$TRAVIS_OS_NAME" +echo "S2N_LIBCRYPTO=$S2N_LIBCRYPTO" +echo "BUILD_S2N=$BUILD_S2N" +echo "GCC6_REQUIRED=$GCC6_REQUIRED" +echo "L...
docs: make sure NetworkManager is running on rhel when enabling IPoIB
@@ -40,7 +40,8 @@ naming as appropriate if system contains dual-ported or multiple HCAs). [sms](*\#*) perl -pi -e "s/master_ipoib/${sms_ipoib}/" /etc/sysconfig/network-scripts/ifcfg-ib0 [sms](*\#*) perl -pi -e "s/ipoib_netmask/${ipoib_netmask}/" /etc/sysconfig/network-scripts/ifcfg-ib0 -# Initiate ib0 +# Verify Network...
Even more ScePowerForDriver NIDs
@@ -4097,6 +4097,31 @@ modules: nid: 0x1082DA7F ScePowerForDriver: functions: + kscePowerGetResumeCount: 0x0074EF9B + kscePowerRegisterCallback: 0x04B7766E + kscePowerIsBatteryExist: 0x0AFD0D8B + kscePowerIsBatteryCharging: 0x1E490401 + kscePowerGetBatteryLifePercent: 0x2085D15D + kscePowerWlanDeactivate: 0x23BB0A60 + ...
Fix animation alpha;
@@ -76,8 +76,12 @@ void lovrAnimatorUpdate(Animator* animator, float dt) { } bool lovrAnimatorEvaluate(Animator* animator, const char* bone, mat4 transform) { - bool touched = false; + float mixedTranslation[3] = { 0, 0, 0 }; + float mixedRotation[4] = { 0, 0, 0, 1 }; + float mixedScale[3] = { 1, 1, 1 }; + Track* track...
removes clay mount auto-sync on restart
@@ -1199,8 +1199,6 @@ u3_unix_ef_hill(u3_pier *pir_u, u3_noun hil) _unix_scan_mount_point(pir_u, mon_u); } u3z(hil); - pir_u->unx_u->dyr = c3y; - u3_unix_ef_look(pir_u, c3y); } /* u3_unix_io_init(): initialize unix sync.
Print errors on code ran from Swift
-from pyto import Python +from pyto import Python, PyOutputHelper, ConsoleViewController from time import sleep from console import run_script import threading +import traceback import stopit def raise_exception(script, exception): @@ -31,7 +32,9 @@ while True: if code == Python.shared.codeToRun: Python.shared.codeToRu...
wifi/netif: Fix wifi_ap_handlers comments to relate to AP
@@ -50,7 +50,7 @@ esp_err_t esp_netif_attach_wifi_ap(esp_netif_t *esp_netif); esp_err_t esp_wifi_set_default_wifi_sta_handlers(void); /** - * @brief Sets default wifi event handlers for STA interface + * @brief Sets default wifi event handlers for AP interface * * @return * - ESP_OK on success, error returned from esp_...
first attempt at coll resize
@@ -869,8 +869,9 @@ static void coll_embedhook(t_pd *z, t_binbuf *bb, t_symbol *bindsym){ binbuf_add(bb, cnt, at); binbuf_add(bb, ep->e_size, ep->e_data); binbuf_addsemi(bb); - } - } + }; + }; + if(x->x_ob.te_width != 0) binbuf_addv(bb, "ssf;", &s__X, gensym("f"), (float)x->x_ob.te_width); } static void collcommon_edit...
landscape: support pending state in migration
~ `[flag members.u.group u.assoc graph] :: +++ import-flags + |= [=^groups =associations:met =network:gra] + |= =mark + ^- (set flag:i) + ~(key by ((import-for-mark ~ groups associations network) mark)) +:: ++ import-for-mark - |= [her=ship =^groups =associations:met =network:gra] + |= [her=(unit ship) =^groups =associ...
better subpackage name
@@ -293,12 +293,12 @@ Group: System Environment/Base Pdsh module providing support for targeting hosts based on netgroup. Provides -g groupname and -X groupname options to pdsh. -%package mod-slurm +%package -n pdsh-mod-slurm%{PROJ_DELIM} Summary: Provides support for running pdsh under SLURM allocations Group: System ...
Fixing memory leak introduced in changeset
@@ -2451,7 +2451,10 @@ nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg, goto fail; } - if (nxt_buf_mem_used_size(&b->mem) != 0) { + if (nxt_buf_mem_used_size(&b->mem) == 0) { + nxt_work_queue_add(&task->thread->engine->fast_work_queue, + b->completion_handler, task, b, b->parent); + } else ...
cli: fs.open/fs.close events, change file_name to file
@@ -67,8 +67,8 @@ var sourceFields = map[string][]string{ "http_status"}, "http-metrics": {"duration", "req_per_sec"}, - "fs.open": {"file_name"}, - "fs.close": {"file_name", + "fs.open": {"file"}, + "fs.close": {"file", "file_read_bytes", "file_read_ops", "file_write_bytes",
sysrepo BUGFIX recursive oper subscription type analysis Children nodes must be checked in case there are state nodes under config nodes. Fixes
@@ -4385,6 +4385,7 @@ sr_oper_get_items_subscribe(sr_session_ctx_t *session, const char *module_name, sr_conn_ctx_t *conn; char *schema_path = NULL; const struct lys_module *mod; + struct lys_node *next, *elem; struct ly_set *set = NULL; sr_mod_oper_sub_type_t sub_type; sr_mod_t *shm_mod; @@ -4428,24 +4429,28 @@ sr_ope...
in_tail: warn the user if Multiline is On and it's using a single Parser
@@ -97,6 +97,13 @@ int flb_tail_mult_create(struct flb_tail_config *ctx, } } + /* Double check and warn if the user is using something not expected */ + tmp = flb_input_get_property("parser", i_ins); + if (tmp) { + flb_warn("[in_tail] the 'Parser %s' config is omitted in Multiline mode", + tmp); + } + return 0; }
Disable MSVC exceptions.
@@ -323,7 +323,7 @@ if (sys.platform != 'darwin' and sys.platform != 'win32') or env['TOOLSET'] == ' env.VariantDir('$VARIANT', '$LIBTCOD_ROOT_DIR') env_libtcod = env.Clone() -env_libtcod.Append(CPPDEFINES=['LIBTCOD_EXPORTS']) +env_libtcod.Append(CPPDEFINES=['LIBTCOD_EXPORTS', ('_HAS_EXCEPTIONS', 0)]) if not using_msvc...
[snitch] Implement bypass logic
@@ -41,6 +41,7 @@ module snitch_read_only_cache #( ) ( input logic clk_i, input logic rst_ni, + input logic enable_i, input logic flush_valid_i, output logic flush_ready_o, input logic [AxiAddrWidth-1:0] start_addr_i [NrAddrRules], @@ -171,8 +172,20 @@ module snitch_read_only_cache #( // select logic always_comb begin ...
Don't raise errors at setting signals, calling `os.fork` and `os.waitpid` Yes that's horrible, but many third party module don't care about sandbox and always assume that we can call subprocesses, handle signals etc.
@@ -28,6 +28,7 @@ from _ios_getpass import getpass as _ios_getpass import getpass import webbrowser import sharing +import _signal from pip import BUNDLED_MODULES # MARK: - Warnings @@ -124,11 +125,32 @@ __builtins__.Target = pyto.SelectorTarget.shared __builtins__.deprecated = ["runAsync", "runSync", "generalPasteboar...
[LWIP] Update LwIP 2.0.2 opts header file for rtt.
#define DEFAULT_UDP_RECVMBOX_SIZE 1 /* ---------- RAW options ---------- */ +#ifdef RT_LWIP_RAW +#define LWIP_RAW 1 +#else +#define LWIP_RAW 0 +#endif + #define DEFAULT_RAW_RECVMBOX_SIZE 1 #define DEFAULT_ACCEPTMBOX_SIZE 10 #endif /* PPP_SUPPORT */ -/* no read/write/close for socket */ +/** + * LWIP_POSIX_SOCKETS_IO_NA...
Fix function parsing for debugger. Since the JerryScript can able to parse functions directly the PARSER_LEXICAL_ENV_NEEDED and the PARSER_NO_REG_STORE flags should be in the context's status flags for executing eval operations by the debugger. JerryScript-DCO-1.0-Signed-off-by: Imre Kiss
@@ -2117,6 +2117,14 @@ parser_parse_source (const uint8_t *arg_list_p, /**< function argument list */ else { context.status_flags = PARSER_IS_FUNCTION; +#ifdef JERRY_DEBUGGER + if (JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED) + { + /* This option has a high memory and performance costs, + * but it is nece...
Fix state restoration on the REPL
@@ -128,9 +128,12 @@ import UIKit if !opened, let script = editor?.document?.fileURL.path, !Python.shared.isScriptRunning(script) { opened = true editor?.currentDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0] - DispatchQueue.main.asyncAfter(deadline: .now()+0.3) { + _ = Timer.sched...