message
stringlengths
6
474
diff
stringlengths
8
5.22k
More windows bs
@@ -192,8 +192,14 @@ jobs: shell: 'bash.exe' steps: - checkout - - run: cmake -H. -Bbuild - - run: cmake --build build + - run: choco install cmake -y + - run: git clone https://git.cryptomilk.org/projects/cmocka.git + - run: /c/Program\ Files/Cmake/bin/cmake -S cmocka -B cmocka_build + - run: /c/Program\ Files/Cmake/bin/cmake --build cmocka_build + - run: > + /c/Program\ Files/Cmake/bin/cmake -S . -B libcbor_build \ + -DWITH_TESTS=ON -DCMOCKA_INCLUDE_DIR=cmocka/include -DCMOCKA_LIBRARIES=cmocka_build/src/Debug + - run: /c/Program\ Files/Cmake/bin/cmake --build libcbor_build workflows: build-and-test:
cirrus, actions: upgrade macOS images to version 11, disable dbus workaround
@@ -15,7 +15,7 @@ jobs: # well on Windows or Mac. You can convert this to a matrix build if you need # cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: macos-10.15 + runs-on: macos-11 strategy: # Do not abort all jobs upon first failure fail-fast: false
prefix item visibility selection with >=
@@ -154,7 +154,7 @@ export default class SettingsDialog extends Component { value={visibility} > {Object.keys(VISIBILITY_LEVELS).map(lvl => - <MenuItem key={lvl} value={lvl} primaryText={lvl} /> + <MenuItem key={lvl} value={lvl} primaryText={'>= ' + lvl} /> )} </SelectField> <SavedIcon saved={this.getSaved('check/type')} style={{ paddingBottom: 16 }} />
[mod_proxy] set Content-Length, if available set Content-Length if client sent Transfer-Encoding: chunked and not streaming to backend (request body has been fully received)
@@ -668,6 +668,23 @@ static int proxy_create_env(server *srv, handler_ctx *hctx) { } proxy_set_header(con, "X-Forwarded-Proto", con->uri.scheme->ptr); + if (HTTP_METHOD_GET != con->request.http_method + && HTTP_METHOD_HEAD != con->request.http_method + && con->request.content_length >= 0) { + /* set Content-Length if client sent Transfer-Encoding: chunked + * and not streaming to backend (request body has been fully received) */ + data_string *ds = (data_string *) array_get_element(con->request.headers, "Content-Length"); + if (NULL == ds || buffer_string_is_empty(ds->value)) { + char buf[LI_ITOSTRING_LENGTH]; + li_itostrn(buf, sizeof(buf), con->request.content_length); + if (NULL == ds) { + proxy_set_header(con, "Content-Length", buf); + } else { + buffer_copy_string(ds->value, buf); + } + } + } + /* request header */ for (i = 0; i < con->request.headers->used; i++) { data_string *ds;
board/vilboz/board.c: Format with clang-format BRANCH=none TEST=none
@@ -55,17 +55,13 @@ static struct stprivate_data g_lis2dwl_data; static struct lsm6dsm_data g_lsm6dsm_data = LSM6DSM_DATA; /* Matrix to rotate accelrator into standard reference frame */ -static const mat33_fp_t base_standard_ref = { - { FLOAT_TO_FP(-1), 0, 0}, +static const mat33_fp_t base_standard_ref = { { FLOAT_TO_FP(-1), 0, 0 }, { 0, FLOAT_TO_FP(-1), 0 }, - { 0, 0, FLOAT_TO_FP(1)} -}; + { 0, 0, FLOAT_TO_FP(1) } }; -static const mat33_fp_t lid_standard_ref = { - { FLOAT_TO_FP(1), 0, 0}, +static const mat33_fp_t lid_standard_ref = { { FLOAT_TO_FP(1), 0, 0 }, { 0, FLOAT_TO_FP(-1), 0 }, - { 0, 0, FLOAT_TO_FP(-1)} -}; + { 0, 0, FLOAT_TO_FP(-1) } }; /* TODO(gcc >= 5.0) Remove the casts to const pointer at rot_standard_ref */ struct motion_sensor_t motion_sensors[] = { @@ -219,8 +215,7 @@ void ppc_interrupt(enum gpio_signal signal) int board_set_active_charge_port(int port) { - int is_valid_port = (port >= 0 && - port < CONFIG_USB_PD_PORT_MAX_COUNT); + int is_valid_port = (port >= 0 && port < CONFIG_USB_PD_PORT_MAX_COUNT); int i; if (port == CHARGE_PORT_NONE) { @@ -241,7 +236,6 @@ int board_set_active_charge_port(int port) return EC_ERROR_INVAL; } - /* Check if the port is sourcing VBUS. */ if (ppc_is_sourcing_vbus(port)) { CPRINTFUSB("Skip enable C%d", port); @@ -323,7 +317,6 @@ static void reset_nct38xx_port(int port) msleep(NCT3807_RESET_POST_DELAY_MS); } - void board_reset_pd_mcu(void) { /* Reset TCPC0 */ @@ -367,8 +360,7 @@ int board_pd_set_frs_enable(int port, int enable) /* Use the TCPC to enable fast switch when FRS included */ if (port == USBC_PORT_C0) { - rv = ioex_set_level(IOEX_USB_C0_TCPC_FASTSW_CTL_EN, - !!enable); + rv = ioex_set_level(IOEX_USB_C0_TCPC_FASTSW_CTL_EN, !!enable); } return rv; @@ -517,7 +509,6 @@ __override void board_set_charge_limit(int port, int supplier, int charge_ma, */ charge_ma = charge_ma * 95 / 100; - charge_set_input_current_limit(MAX(charge_ma, - CONFIG_CHARGER_INPUT_CURRENT), - charge_mv); + charge_set_input_current_limit( + MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv); }
travis: Selectively fetch git submodules only when needed. This saves time when building on Travis CI: unconditionally fetching all submodules takes about 40 seconds, but not all are needed for any given port, so only fetch as necessary.
@@ -10,6 +10,8 @@ cache: env: global: - MAKEOPTS="-j4" +git: + submodules: false # define the successive stages stages: @@ -30,6 +32,7 @@ jobs: - sudo apt-get install libnewlib-arm-none-eabi - arm-none-eabi-gcc --version script: + - git submodule update --init lib/lwip lib/mbedtls lib/stm32lib - make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C ports/stm32 - make ${MAKEOPTS} -C ports/stm32 BOARD=PYBV11 MICROPY_PY_WIZNET5K=5200 MICROPY_PY_CC3K=1 @@ -60,6 +63,7 @@ jobs: - gcc --version - python3 --version script: + - git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi - make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix coverage @@ -80,6 +84,7 @@ jobs: - stage: test env: NAME="unix port build and tests" script: + - git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi - make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix @@ -91,6 +96,7 @@ jobs: install: - sudo apt-get install gcc-multilib libffi-dev:i386 script: + - git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi - make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix nanbox @@ -100,6 +106,7 @@ jobs: - stage: test env: NAME="unix stackless port build and tests" script: + - git submodule update --init lib/axtls lib/berkeley-db-1.xx lib/libffi - make ${MAKEOPTS} -C mpy-cross - make ${MAKEOPTS} -C ports/unix deplibs - make ${MAKEOPTS} -C ports/unix CFLAGS_EXTRA="-DMICROPY_STACKLESS=1 -DMICROPY_STACKLESS_STRICT=1" @@ -122,6 +129,7 @@ jobs: - sudo apt-get install libnewlib-arm-none-eabi - arm-none-eabi-gcc --version script: + - git submodule update --init lib/nrfx - make ${MAKEOPTS} -C ports/nrf # bare-arm and minimal ports
Added removal of libRemarks
@@ -59,5 +59,6 @@ $SUDO rm -rf $AOMP/hcc/lib/LLVM* $SUDO rm -rf $AOMP/hcc/lib/libclang* $SUDO rm -rf $AOMP/hcc/lib/libLLVM* $SUDO rm -rf $AOMP/hcc/lib/libLTO* +$SUDO rm -rf $AOMP/hcc/lib/libRemarks* echo "Done with $0"
Remove "pending" warning from record tag errors See discussion on issue
@@ -879,6 +879,8 @@ describe("Pallene coder /", function() end) it("check record tags", function() + -- TODO: change this message to mention the relevant record types + -- instead of only saying "userdata" run_test([[ local prim = test.make_prim(123) local ok, err = pcall(test.get_x, prim) @@ -886,7 +888,6 @@ describe("Pallene coder /", function() assert(string.find(err, "expected userdata but found userdata", nil, true)) ]]) - pending("fix error message") end) it("implements __index and __newindex", function()
Fix Model memory leaks;
@@ -203,7 +203,16 @@ void lovrModelDestroy(void* ref) { for (uint32_t i = 0; i < model->data->primitiveCount; i++) { lovrRelease(Mesh, model->meshes[i]); } + for (uint32_t i = 0; i < model->data->textureCount; i++) { + lovrRelease(Texture, model->textures[i]); + } + for (uint32_t i = 0; i < model->data->materialCount; i++) { + lovrRelease(Material, model->materials[i]); + } + lovrRelease(Material, model->userMaterial); + lovrRelease(Animator, model->animator); lovrRelease(ModelData, model->data); + free(model->globalNodeTransforms); } void lovrModelDraw(Model* model, mat4 transform, uint32_t instances) {
date: add metadata in contract
- infos/recommends = - infos/placements = presetstorage postgetstorage - infos/status = recommended productive maintained reviewed conformant compatible coverage specific unittest tested libc final -- infos/metadata = +- infos/metadata = check/date check/date/format - infos/description = validates date and time strings ## Validation options ##
schema compilation BUGFIX NULL pointer dereference
@@ -3930,7 +3930,9 @@ lys_compile_node_case(struct lysc_ctx *ctx, struct lysp_node *node_p, int option return cs; error: + if (cs) { lysc_node_free(ctx->ctx, (struct lysc_node*)cs); + } return NULL; #undef UNIQUE_CHECK
ip6_to_ip4.h coverity fix
@@ -479,7 +479,7 @@ ip6_to_ip4_tcp_udp (vlib_buffer_t * p, ip6_to_ip4_set_fn_t fn, void *ctx, { ip6_header_t *ip6; u16 *checksum; - ip_csum_t csum; + ip_csum_t csum = 0; ip4_header_t *ip4; u16 fragment_id; u16 flags;
Specify Makefile build as C++ 11
@@ -43,7 +43,7 @@ HEADERS = \ OBJECTS = $(SOURCES:.cpp=.o) -CPPFLAGS = -O3 -Wall -W -Wextra -msse2 -mfpmath=sse +CPPFLAGS = -std=c++11 -O3 -Wall -W -Wextra -msse2 -mfpmath=sse astcenc: $(OBJECTS) g++ -o $@ $^ $(CPPFLAGS) -lpthread
libc/stdio: Don't set FL_[LONG|SHORT] repeatly in vsprintf_internal
@@ -459,8 +459,11 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream, { flags |= FL_REPD_TYPE; } - + else + { flags |= FL_LONG; + } + flags &= ~FL_SHORT; continue; } @@ -471,8 +474,11 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream, { flags |= FL_REPD_TYPE; } - + else + { flags |= FL_SHORT; + } + flags &= ~FL_LONG; continue; }
Remove unnecessary test before free
@@ -119,9 +119,7 @@ Context *context_new(GlobalContext *glb) void context_destroy(Context *ctx) { #ifndef AVM_NO_FP - if (ctx->fr) { free(ctx->fr); - } #endif list_remove(&ctx->processes_table_head);
Adding some doc Adding some dev documentation. No code change.
@@ -563,6 +563,7 @@ io_region *alloc_region(int ndims) /** * Allocate space for an IO description struct. * + * @param ios pointer to the IO system info. * @param piotype the PIO data type (ex. PIO_FLOAT, PIO_INT, etc.). * @param ndims the number of dimensions. * @returns pointer to the newly allocated io_desc_t or NULL if
acquires pier lockfile on io_init instead of io_talk
@@ -1201,19 +1201,6 @@ u3_unix_ef_hill(u3_pier *pir_u, u3_noun hil) u3z(hil); } -/* u3_unix_io_init(): initialize unix sync. -*/ -void -u3_unix_io_init(u3_pier *pir_u) -{ - u3_unix* unx_u = pir_u->unx_u; - - unx_u->mon_u = NULL; - - unx_u->alm = c3n; - unx_u->dyr = c3n; -} - /* u3_unix_acquire(): acquire a lockfile, killing anything that holds it. */ static void @@ -1316,12 +1303,24 @@ u3_unix_ef_look(u3_pier *pir_u, u3_noun all) } } +/* u3_unix_io_init(): initialize unix sync. +*/ +void +u3_unix_io_init(u3_pier *pir_u) +{ + u3_unix* unx_u = pir_u->unx_u; + unx_u->mon_u = NULL; + unx_u->alm = c3n; + unx_u->dyr = c3n; + + u3_unix_acquire(pir_u->pax_c); +} + /* u3_unix_io_talk(): start listening for fs events. */ void u3_unix_io_talk(u3_pier *pir_u) { - u3_unix_acquire(pir_u->pax_c); } /* u3_unix_io_exit(): terminate unix I/O.
BugID:19675668: Fix Windows path for AOS_SDK_PATH
@@ -103,7 +103,7 @@ def copy_template_file(tempfile, templatedir, destdir, projectname, board): line = line.replace("@boardname@", board) if "@aos_sdk_path@" in line: - line = line.replace("@aos_sdk_path@", os.environ.get("AOS_SDK_PATH")) + line = line.replace("@aos_sdk_path@", os.environ.get("AOS_SDK_PATH").replace("\\", "/")) contents += [line] @@ -135,7 +135,7 @@ config AOS_BUILD_APP config AOS_SDK_PATH string default "%s" -""" % (board, projectname, os.environ.get("AOS_SDK_PATH")) +""" % (board, projectname, os.environ.get("AOS_SDK_PATH").replace("\\", "/")) with open(config_file, "a") as f: f.write(contents) @@ -297,7 +297,7 @@ def cli(projectname, board, projectdir, templateapp): (md5sum, include_list) = compute_header_md5sum(destdir) depends = get_depends_from_source(comp_info, include_list) config_data = { - "AOS_SDK_PATH": os.environ.get("AOS_SDK_PATH"), + "AOS_SDK_PATH": os.environ.get("AOS_SDK_PATH").replace("\\", "/"), "DEPENDENCIES": " ".join(depends), "MD5SUM_HEADER": md5sum, }
new floating rule
@@ -44,8 +44,8 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ - {"Gimp", NULL, NULL, 0, 1, -1}, - {"pavucontrol", NULL, NULL, 0, 1, -1}, + {"Pavucontrol", NULL, NULL, 0, 1, -1}, + {"Welcome.py", NULL, NULL, 0, 1, -1}, }; /* layout(s) */
board/delbin/board.h: Format with clang-format BRANCH=none TEST=none
/* USBC PPC*/ #define CONFIG_USBC_PPC_SYV682X - /* BC 1.2 */ /* Volume Button feature */ #define I2C_ADDR_EEPROM_FLAGS 0x50 #define CONFIG_I2C_CONTROLLER - #ifndef __ASSEMBLER__ #include "gpio_signal.h" @@ -160,11 +158,7 @@ enum battery_type { BATTERY_TYPE_COUNT, }; -enum pwm_channel { - PWM_CH_FAN = 0, - PWM_CH_KBLIGHT, - PWM_CH_COUNT -}; +enum pwm_channel { PWM_CH_FAN = 0, PWM_CH_KBLIGHT, PWM_CH_COUNT }; enum sensor_id { LID_ACCEL = 0, @@ -173,11 +167,7 @@ enum sensor_id { SENSOR_COUNT, }; -enum usbc_port { - USBC_PORT_C0 = 0, - USBC_PORT_C1, - USBC_PORT_COUNT -}; +enum usbc_port { USBC_PORT_C0 = 0, USBC_PORT_C1, USBC_PORT_COUNT }; void board_reset_pd_mcu(void); void motion_interrupt(enum gpio_signal signal);
Breakout at end.
@@ -402,6 +402,7 @@ check_modules_exist(const char* module_conf) int is_ok = 0; while(*s && isspace((unsigned char)*s)) s++; + if(!*s) break; while(names[i]) { if(strncmp(names[i], s, strlen(names[i])) == 0) { is_ok = 1;
UserNotes: Fix saved priority getting set multiple times for saved processes
@@ -209,7 +209,7 @@ IO_PRIORITY_HINT GetProcessIoPriority( ) { HANDLE processHandle; - IO_PRIORITY_HINT ioPriority = -1; + IO_PRIORITY_HINT ioPriority = ULONG_MAX; if (NT_SUCCESS(PhOpenProcess( &processHandle, @@ -222,7 +222,7 @@ IO_PRIORITY_HINT GetProcessIoPriority( &ioPriority ))) { - ioPriority = -1; + ioPriority = ULONG_MAX; } NtClose(processHandle); @@ -406,8 +406,14 @@ VOID NTAPI MenuItemCallback( } else { + IO_PRIORITY_HINT ioPriority; + object = CreateDbObject(FILE_TAG, &processItem->ProcessName->sr, NULL); - object->IoPriorityPlusOne = GetProcessIoPriority(processItem->ProcessId) + 1; + + if ((ioPriority = GetProcessIoPriority(processItem->ProcessId)) != ULONG_MAX) + { + object->IoPriorityPlusOne = ioPriority + 1; + } } UnlockDb(); @@ -427,8 +433,14 @@ VOID NTAPI MenuItemCallback( } else { + IO_PRIORITY_HINT ioPriority; + object = CreateDbObject(COMMAND_LINE_TAG, &processItem->CommandLine->sr, NULL); - object->IoPriorityPlusOne = GetProcessIoPriority(processItem->ProcessId) + 1; + + if ((ioPriority = GetProcessIoPriority(processItem->ProcessId)) != ULONG_MAX) + { + object->IoPriorityPlusOne = ioPriority + 1; + } } UnlockDb(); @@ -1209,6 +1221,12 @@ VOID ProcessesUpdatedCallback( if (object = FindDbObjectForProcess(processItem, INTENT_PROCESS_IO_PRIORITY)) { if (object->IoPriorityPlusOne != 0) + { + IO_PRIORITY_HINT ioPriority; + + ioPriority = GetProcessIoPriority(processItem->ProcessId); + + if (ioPriority != ULONG_MAX && ioPriority != object->IoPriorityPlusOne - 1) { HANDLE processHandle; @@ -1223,13 +1241,19 @@ VOID ProcessesUpdatedCallback( } } } + } if (object = FindDbObjectForProcess(processItem, INTENT_PROCESS_AFFINITY)) { if (object->AffinityMask != 0) { + ULONG_PTR affinityMask; HANDLE processHandle; + if (NT_SUCCESS(GetProcessAffinity(processItem->ProcessId, &affinityMask))) + { + if (affinityMask != object->AffinityMask) + { if (NT_SUCCESS(PhOpenProcess( &processHandle, PROCESS_SET_INFORMATION, @@ -1241,6 +1265,8 @@ VOID ProcessesUpdatedCallback( } } } + } + } listEntry = listEntry->Flink; }
Fixed issue where no message was printed if the primary input file did not include saBodyFiles.
@@ -989,7 +989,6 @@ void ReadBodyFileNames(CONTROL *control,FILES *files,OPTIONS *options,INFILE *in LineExit(infile->cIn,lTmp[0]); } } else { - if (control->Io.iVerbose >= VERBERR) fprintf(stderr,"ERROR: Option %s is required in file %s.\n",options->cName,infile->cIn); exit(EXIT_INPUT); }
Added note to include 32BLIT_PATH in cmake
@@ -23,4 +23,7 @@ emcmake cmake .. -G "Unix Makefiles" make python3 -m http.server ``` + +If your project is based on the template, make sure to include the `-D32BLIT_PATH="/path/to/32blit/repo"` parameter to the `cmake` command. + Finally, open the URL given by Python's HTTP server in your browser and open your project's .html file.
Testing: Use Assert because if NDEBUG was defined the assert macro is disabled
#include <stdio.h> #include <stdlib.h> -#include <assert.h> -#include "grib_api.h" +#include "grib_api_internal.h" int main(int argc, char** argv) { @@ -25,23 +24,23 @@ int main(int argc, char** argv) grib_iterator* iter = NULL; h = grib_handle_new_from_samples(0, sample_filename); - assert(h); + Assert(h); iter = grib_iterator_new(h, 0, &err); - assert(!err); - assert(iter); + Assert(!err); + Assert(iter); - assert(grib_iterator_has_next(iter)); + Assert(grib_iterator_has_next(iter)); n = 0; while (grib_iterator_next(iter, &lat, &lon, &value)) { if (n < numberOfDataPoints - 1) - assert(grib_iterator_has_next(iter)); + Assert(grib_iterator_has_next(iter)); n++; } - assert(n == numberOfDataPoints); + Assert(n == numberOfDataPoints); - assert(grib_iterator_has_next(iter) == 0); + Assert(grib_iterator_has_next(iter) == 0); grib_iterator_delete(iter);
Restructured ++head to be slightly prettier.
:: ++ head :: parse heading %+ cook - |= $: :: a: list of # - :: b: tag flow of header line + |= a/manx ^- marl + =. a.g.a :_(a.g.a [%id (sanitize-to-id c.a)]) + [a]~ :: - a/tape - b/(list manx) - == - ^- (list manx) - :: hag: header tag, h1 through h6 - :: - =* hag (cat 3 'h' (add '0' =+((lent a) ?:((gth - 6) 6 -)))) - :: sid: header text flattened as id + ;~ plug :: - =/ sid ^- tape - :: assemble, normalize and kebab-case + :: # -> 1 -> %h1, ### -> 3 -> %h3, etc + :(cook |=(a/@u /(crip "h{<a>}")) lent (stun [1 6] hax)) :: + ;~(pfix whit down) + == + :: :: + ++ sanitize-to-id + |= a/(list manx) ^- tape =- %- zing %+ turn `(list tape)`(flop -) |= tape ^- tape :: =| ges/(list tape) |- ^- (list tape) - ?~ b ges + ?~ a ges %= $ - b t.b + a t.a ges - ?: ?=({{$$ {$$ *} $~} $~} i.b) + ?: ?=({{$$ {$$ *} $~} $~} i.a) :: capture text :: - [v.i.a.g.i.b ges] + [v.i.a.g.i.a ges] :: descend into children :: - $(b c.i.b) - == - :: header as tag with id attribute - :: - [[[hag [%id sid] ~] b] ~] - ;~ plug - ;~(sfix (star (just '#')) whit) - down + $(a c.i.a) == :: :: ++ made :: compose block
net/oic; ble transport was missing flag indicating that it uses TCP style CoAP headers.
@@ -45,7 +45,7 @@ void oc_connectivity_shutdown_gatt(void); static const struct oc_transport oc_gatt_transport = { .ot_ep_size = sizeof(struct oc_endpoint_ble), - .ot_flags = 0, + .ot_flags = OC_TRANSPORT_USE_TCP, .ot_tx_ucast = oc_send_buffer_gatt, .ot_tx_mcast = oc_send_buffer_gatt, .ot_get_trans_security = oc_get_trans_security_gatt,
Do not use meta element for stating a document language. Per
@@ -227,7 +227,6 @@ print_html_header (FILE * fp) "<head>" "<meta charset='UTF-8' />" "<meta http-equiv='X-UA-Compatible' content='IE=edge'>" - "<meta http-equiv='Content-Language' content='en'>" "<meta name='google' content='notranslate'>" "<meta name='viewport' content='width=device-width, initial-scale=1'>" "<meta name='robots' content='noindex, nofollow' />");
ci: remove comment for dash compatibility
@@ -143,8 +143,7 @@ cache: fi .set_include_nightly_run: &set_include_nightly_run | - # in bash regex, (?:..) -> (..) - if [[ "$CI_MERGE_REQUEST_LABELS" =~ ^([^,\n\r]+,)*include_nightly_run(,[^,\n\r]+)*$ ]]; then + if echo "$CI_MERGE_REQUEST_LABELS" | egrep "^([^,\n\r]+,)*include_nightly_run(,[^,\n\r]+)*$"; then export INCLUDE_NIGHTLY_RUN="1" fi
Updated AutoSelectSyncCheckpoint()
@@ -3004,7 +3004,7 @@ bool ProcessBlock(CNode* pfrom, CBlock* pblock) // ppcoin: if responsible for sync-checkpoint send it if (pfrom && !CSyncCheckpoint::strMasterPrivKey.empty()) - Checkpoints::SendSyncCheckpoint(Checkpoints::AutoSelectSyncCheckpoint()); + Checkpoints::SendSyncCheckpoint(Checkpoints::AutoSelectSyncCheckpoint()->GetBlockHash()); return true; }
doc: rewrite decision.
# Multiple File Backends +Usually, a backend refers to exactly one file per namespace. +This file can be returned using `kdb file`. + ## Problem -- For XDG in the `system` namespace may contain several files (XDG_CONFIG_DIRS) -- Unreachable sources (e.g. `curl`) need some fallback -- As fallback source if some data cannot be stored in some format +In some situations a single mountpoint refers to more than one file per namespace: + +- For XDG in the `system` namespace may contain several files (XDG_CONFIG_DIRS). +- A fallback file if some data cannot be stored in some format (Idea from @kodebach: + writing the same content to several files, merging when reading) ## Constraints ## Decision -Multiple File Backends are not supported as they: +Multiple File Backends are not supported for now in the case of writing files. +Read-only fallbacks should not be a problem. -- make it impossible for admins to modify content of all files -- do not work atomically (a journal would be needed) -- do not work together with mmap +## Rationale -Instead all but the first of the files in `XDG_CONFIG_DIRS` are ignored -and unreachable sources yield an error. +Writeable multiple file backends would: -## Rationale +- make it impossible for admins to modify content of all files using Elektra +- do not work atomically (a journal would be needed) +- do not work together with mmap (as it only checks one file for cache misses) ## Implications
override with newer config.guess for aarch64
@@ -105,6 +105,11 @@ export BUILDROOT=%buildroot export FFLAGS="$FFLAGS -I$MPI_INCLUDE_DIR" export TAUROOT=`pwd` +# override with newer config.guess for aarch64 +%ifarch aarch64 +cp /usr/lib/rpm/config.guess utils/opari2/build-config/. +%endif + # Try and figure out architecture detectarch=unknown detectarch=`./utils/archfind`
bugID:18002625:[breeze-awsss] Add hint when no awss in ble settings.
@@ -61,6 +61,9 @@ GLOBAL_DEFINES += ESP8266_CHIPSET endif ifeq ($(LINKKITAPP_CONFIG_COMBOAPP),y) +ifneq ($(CONFIG_COMP_BZ_EN_AWSS), y) +$(error need enable AWSS in breeze settings first) +endif $(NAME)_COMPONENTS += breeze breeze_hal $(NAME)_SOURCES += combo/combo_net.c GLOBAL_DEFINES += EN_COMBO_NET
bcc: Remove bpf_probe_read_user availability checks on compile time If wrong kernel-headers are installed, then this can provide false result for probe read selection. Instead look for only kallsyms.
@@ -110,9 +110,6 @@ static std::string check_bpf_probe_read_user(llvm::StringRef probe, bool& overlap_addr) { if (probe.str() == "bpf_probe_read_user" || probe.str() == "bpf_probe_read_user_str") { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0) - return probe.str(); -#else // Check for probe_user symbols in backported kernel before fallback void *resolver = get_symbol_resolver(); uint64_t addr = 0; @@ -132,7 +129,6 @@ static std::string check_bpf_probe_read_user(llvm::StringRef probe, return "bpf_probe_read"; else return "bpf_probe_read_str"; -#endif } return ""; }
Slightly reword README.md
@@ -34,17 +34,17 @@ cd ocf ## Deployment OCF doesn't compile as separate library. It's designed to be included into another -software. For this purpose OCF Makefile provides two useful targets for deploying -OCF source into target directories. Assuming OCFDIR is ocf directory, and SRCDIR and -INCDIR are your source and include directories, you can use following commands to -deploy OCF into your project: +software stack. For this purpose OCF provides Makefile with two useful targets for +deploying its source into target directories. Assuming OCFDIR is OCF directory, and +SRCDIR and INCDIR are respectively your source and include directories, use following +commands to deploy OCF into your project: ~~~{.sh} make -C $OCFDIF src O=$SRCDIR make -C $OCFDIF inc O=$INCDIR ~~~ -This by default will not copy OCF source files but create symbolic links to them, +By default this will not copy OCF source files but create symbolic links to them, to avoid source duplication and allow for easy OCF code modification. If you prefer to copy OCF source files (e.g. you don't want to distribute whole OCF repository as your submodule) you can use following commands:
c-timestamp: fix truncation error
@@ -77,7 +77,7 @@ timestamp_to_tm(const timestamp_t *tsp, struct tm *tmp, const bool local) if (local) sec += tsp->offset * 60; assert((sec / 86400) <= UINT32_MAX); - rdn = (uint32_t)sec / 86400; + rdn = (uint32_t)(sec / 86400); sod = sec % 86400; rdn_to_struct_tm(rdn, tmp);
Call static function using class name, not an instance.
@@ -145,7 +145,7 @@ inline TVector<TStorageType> CompressVector(const T* data, ui32 size, ui32 bitsP params.SetBlockSize(indexHelper.GetEntriesPerType() * 8192); NPar::LocalExecutor().ExecRange([&](int blockIdx) { - NPar::LocalExecutor().BlockedLoopBody(params, [&](int i) { + NPar::TLocalExecutor::BlockedLoopBody(params, [&](int i) { const ui32 offset = indexHelper.Offset((ui32)i); const ui32 shift = indexHelper.Shift((ui32)i); CB_ENSURE((data[i] & mask) == data[i], TStringBuilder() << "Error: key contains too many bits: max bits per key: allowed " << bitsPerKey << ", observe key " << static_cast<ui64>(data[i]));
apps/nshlib/nsh.h: Fix typo.. #undef not #undefine.
# define HAVE_DF_HUMANREADBLE 1 # define HAVE_DF_BLOCKOUTPUT 1 # if defined(CONFIG_FS_PROCFS_EXCLUDE_USAGE) -# undefine HAVE_DF_HUMANREADBLE +# undef HAVE_DF_HUMANREADBLE # endif # if defined(CONFIG_FS_PROCFS_EXCLUDE_BLOCKS) -# undefine HAVE_DF_BLOCKOUTPUT +# undef HAVE_DF_BLOCKOUTPUT # endif #endif
scripts: mention JAVA_HOME in configure-common
@@ -12,6 +12,16 @@ then SOURCE=$(readlink -f "$1") fi +# set JAVA_HOME if you want to use a non-default Java. +#cd /opt +#JAVA_IN_OPT=$(readlink -f $(find . -maxdepth 1 -name 'jdk*' -print -quit)) +# +#if [ "x$JAVA_HOME" = "x" -a "x$JAVA_IN_OPT" != "x" ] +#then +# export JAVA_HOME="$JAVA_IN_OPT" +#fi +#echo "Using java home: $JAVA_HOME" + if [ "$SOURCE" = "$BUILD" ] then if echo $* | grep FORCE_IN_SOURCE_BUILD=ON
Add Patreon to funding
# These are supported funding model platforms github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: # Replace with a single Patreon username +patreon: FlightlessMango open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
Fix some timing issues where opening a project while a project was already open would sometimes fail
@@ -41,6 +41,7 @@ let playWindowSgb = false; let hasCheckedForUpdate = false; let documentEdited = false; let documentName = ""; +let mainWindowCloseCancelled = false; const isDevMode = !!process.execPath.match(/[\\/]electron/); @@ -148,6 +149,7 @@ const createWindow = async (projectPath: string) => { preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY, }, }); + mainWindowCloseCancelled = false; mainWindowState.manage(mainWindow); @@ -181,6 +183,7 @@ const createWindow = async (projectPath: string) => { mainWindow.on("close", (e) => { if (documentEdited && mainWindow) { + mainWindowCloseCancelled = false; const choice = dialog.showMessageBoxSync(mainWindow, { type: "question", buttons: [ @@ -200,6 +203,7 @@ const createWindow = async (projectPath: string) => { } else if (choice === 1) { // Cancel e.preventDefault(); + mainWindowCloseCancelled = true; } else { // Don't Save } @@ -216,6 +220,21 @@ const createWindow = async (projectPath: string) => { }); }; +const waitUntilWindowClosed = (): Promise<void> => { + return new Promise((resolve, reject) => { + const check = () => { + if (mainWindow === null) { + resolve(); + } else if (mainWindowCloseCancelled) { + reject(); + } else { + setTimeout(check, 10); + } + }; + check(); + }); +}; + const openHelp = async (helpPage: string) => { if (helpPage === "sprites") { shell.openExternal("https://www.gbstudio.dev/docs/sprites/"); @@ -608,6 +627,10 @@ const newProject = async () => { }; const openProjectPicker = async () => { + if (mainWindow) { + mainWindow.close(); + await waitUntilWindowClosed(); + } const files = dialog.showOpenDialogSync({ properties: ["openFile"], filters: [ @@ -623,16 +646,22 @@ const openProjectPicker = async () => { }; const switchProject = async () => { + if (mainWindow) { + mainWindow.close(); + await waitUntilWindowClosed(); + } if (splashWindow) { splashWindow.close(); } await createSplash("recent"); +}; + +const openProject = async (projectPath: string) => { if (mainWindow) { mainWindow.close(); + await waitUntilWindowClosed(); } -}; -const openProject = async (projectPath: string) => { const ext = Path.extname(projectPath); if (validProjectExt.indexOf(ext) === -1) { dialog.showErrorBox( @@ -654,16 +683,10 @@ const openProject = async (projectPath: string) => { addRecentProject(projectPath); - const oldMainWindow = mainWindow; await createWindow(projectPath); - const newMainWindow = mainWindow; if (splashWindow) { splashWindow.close(); } - if (oldMainWindow) { - oldMainWindow.close(); - mainWindow = newMainWindow; - } }; const addRecentProject = (projectPath: string) => {
tutorial: Update release notes
@@ -390,7 +390,7 @@ This section keeps you up-to-date with the multi-language support provided by El - Add tutorial for manual installation from the AUR on Arch Linux _(@Bujuhu)_ - <<TODO>> -- <<TODO>> +- Add markdown shell recorder validation to install.webui.md _(@deoknats861)_ - <<TODO>> - <<TODO>> - <<TODO>>
Pad packet containing PATH_RESPONSE or PATH_CHALLENGE frames
@@ -2883,6 +2883,7 @@ static ngtcp2_ssize conn_write_pkt(ngtcp2_conn *conn, ngtcp2_pkt_info *pi, pkt_empty = 0; rtb_entry_flags |= NGTCP2_RTB_FLAG_ACK_ELICITING; + require_padding = 1; /* We don't retransmit PATH_RESPONSE. */ } } @@ -3526,7 +3527,9 @@ ngtcp2_conn_write_single_frame_pkt(ngtcp2_conn *conn, ngtcp2_pkt_info *pi, } lfr.type = NGTCP2_FRAME_PADDING; - if (type == NGTCP2_PKT_SHORT) { + if (fr->type == NGTCP2_FRAME_PATH_CHALLENGE) { + lfr.padding.len = ngtcp2_ppe_padding(&ppe); + } else if (type == NGTCP2_PKT_SHORT) { lfr.padding.len = ngtcp2_ppe_padding_size(&ppe, conn_min_short_pktlen(conn)); } else {
readme: newest version - recommendation
@@ -25,7 +25,7 @@ A security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with inte ## Code - * Latest stable version: [1.5](https://github.com/google/honggfuzz/releases), but using the __master__ branch is highly encouraged + * Latest stable version: [1.5](https://github.com/google/honggfuzz/releases) * [Changelog](https://github.com/google/honggfuzz/blob/master/CHANGELOG) ## Requirements
push-hook: fix duplicate messages being sent
%+ weld (push-updates:hc q.cage.sign) cards - == ++ on-leave |= =path =/ prefix=path resource+(en-path:resource u.rid) =/ paths=(list path) + %~ tap in + %- silt %+ turn (incoming-subscriptions prefix) |=([ship pax=path] pax)
Honda: fix address checks for Alt Nidec * Honda: fix address checks for Alt Nidec * Revert "Honda: temporarily revert new address checks (#797)" This reverts commit
@@ -28,16 +28,16 @@ AddrCheckStruct honda_nidec_addr_checks[] = { {0x296, 0, 4, .check_checksum = true, .max_counter = 3U, .expected_timestep = 40000U}, { 0 }}}, {.msg = {{0x158, 0, 8, .check_checksum = true, .max_counter = 3U, .expected_timestep = 10000U}, { 0 }, { 0 }}}, {.msg = {{0x17C, 0, 8, .check_checksum = true, .max_counter = 3U, .expected_timestep = 10000U}, { 0 }, { 0 }}}, + {.msg = {{0x326, 0, 8, .check_checksum = true, .max_counter = 3U, .expected_timestep = 100000U}, { 0 }, { 0 }}}, }; #define HONDA_NIDEC_ADDR_CHECKS_LEN (sizeof(honda_nidec_addr_checks) / sizeof(honda_nidec_addr_checks[0])) -// For Nidecs with main on signal on 0x326 +// For Nidecs with main on signal on an alternate msg AddrCheckStruct honda_nidec_alt_addr_checks[] = { {.msg = {{0x1A6, 0, 8, .check_checksum = true, .max_counter = 3U, .expected_timestep = 40000U}, {0x296, 0, 4, .check_checksum = true, .max_counter = 3U, .expected_timestep = 40000U}, { 0 }}}, {.msg = {{0x158, 0, 8, .check_checksum = true, .max_counter = 3U, .expected_timestep = 10000U}, { 0 }, { 0 }}}, {.msg = {{0x17C, 0, 8, .check_checksum = true, .max_counter = 3U, .expected_timestep = 10000U}, { 0 }, { 0 }}}, - {.msg = {{0x326, 0, 8, .check_checksum = true, .max_counter = 3U, .expected_timestep = 100000U}, { 0 }, { 0 }}}, }; #define HONDA_NIDEC_ALT_ADDR_CHECKS_LEN (sizeof(honda_nidec_alt_addr_checks) / sizeof(honda_nidec_alt_addr_checks[0])) @@ -329,15 +329,11 @@ static const addr_checks* honda_nidec_init(int16_t param) { honda_alt_brake_msg = false; honda_bosch_long = false; - honda_rx_checks = (addr_checks){honda_nidec_addr_checks, HONDA_NIDEC_ADDR_CHECKS_LEN}; - - /* if (GET_FLAG(param, HONDA_PARAM_NIDEC_ALT)) { honda_rx_checks = (addr_checks){honda_nidec_alt_addr_checks, HONDA_NIDEC_ALT_ADDR_CHECKS_LEN}; } else { honda_rx_checks = (addr_checks){honda_nidec_addr_checks, HONDA_NIDEC_ADDR_CHECKS_LEN}; } - */ return &honda_rx_checks; }
vnet: update help message for intfc state Add useful help information on set interface state.
@@ -829,7 +829,7 @@ done: ?*/ VLIB_CLI_COMMAND (set_state_command, static) = { .path = "set interface state", - .short_help = "Set interface state", + .short_help = "set interface state <if-name> [up|down|punt|enable]", .function = set_state, }; /* *INDENT-ON* */
[core] config_check_cond_nocache() xor return code
@@ -551,31 +551,25 @@ static cond_result_t config_check_cond_nocache(request_st * const r, const data_ log_error(r->conf.errh, __FILE__, __LINE__, "%s compare to %s", dc->comp_key, l->ptr); + int match; switch(dc->cond) { case CONFIG_COND_NE: case CONFIG_COND_EQ: - if (buffer_is_equal(l, &dc->string)) { - return (dc->cond == CONFIG_COND_EQ) ? COND_RESULT_TRUE : COND_RESULT_FALSE; - } else { - return (dc->cond == CONFIG_COND_EQ) ? COND_RESULT_FALSE : COND_RESULT_TRUE; - } + match = (dc->cond == CONFIG_COND_EQ); + match ^= (buffer_is_equal(l, &dc->string)); + break; case CONFIG_COND_NOMATCH: case CONFIG_COND_MATCH: { cond_match_t *cond_match = r->cond_match + dc->context_ndx; - if (data_config_pcre_exec(dc, cache, l, cond_match) > 0) { - return (dc->cond == CONFIG_COND_MATCH) ? COND_RESULT_TRUE : COND_RESULT_FALSE; - } else { - /* cache is already cleared */ - return (dc->cond == CONFIG_COND_MATCH) ? COND_RESULT_FALSE : COND_RESULT_TRUE; - } - } - default: - /* no way */ + match = (dc->cond == CONFIG_COND_MATCH); + match ^= (data_config_pcre_exec(dc, cache, l, cond_match) > 0); break; } - + default: return COND_RESULT_FALSE; } + return match ? COND_RESULT_FALSE : COND_RESULT_TRUE; +} __attribute_noinline__ static cond_result_t config_check_cond_calc(request_st * const r, const int context_ndx, cond_cache_t * const cache) {
libbarrelfish: pmap: x86_64: add debug flag to enable slab refill debugging on per-application basis
@@ -600,6 +600,7 @@ static errval_t refill_slabs_fixed_allocator(struct pmap_x86 *pmap, struct slab_ * Can only be called for the current pmap * Will recursively call into itself till it has enough slabs */ +bool debug_refill = false; static errval_t refill_slabs(struct pmap_x86 *pmap, struct slab_allocator *slab, size_t request) { errval_t err; @@ -612,10 +613,10 @@ static errval_t refill_slabs(struct pmap_x86 *pmap, struct slab_allocator *slab, slab->blocksize); bytes = ROUND_UP(bytes, BASE_PAGE_SIZE); - /* - debug_printf("%s: req=%zu, bytes=%zu, slab->blocksize=%zu\n", - __FUNCTION__, slabs_req, bytes, slab->blocksize); - */ + if (debug_refill) { + debug_printf("%s: req=%zu, bytes=%zu, slab->blocksize=%zu, slab->freecount=%zu\n", + __FUNCTION__, slabs_req, bytes, slab->blocksize, slab_freecount(slab)); + } /* Get a frame of that size */ struct capref cap;
blackbox: fix compress call for vec4
@@ -61,8 +61,8 @@ void blackbox_update() { blackbox.cpu_load = state.cpu_load; blackbox.vbat_filter = state.vbattfilt * 10; - vec3_compress(&blackbox.rx_raw, &state.rx, 1024); - vec3_compress(&blackbox.rx_filter, &state.rx_filtered, 1024); + vec4_compress(&blackbox.rx_raw, &state.rx, 1024); + vec4_compress(&blackbox.rx_filter, &state.rx_filtered, 1024); blackbox.rx_aux = 0; for (uint32_t i = 0; i < AUX_CHANNEL_MAX; i++) {
Fix include for EMCC build
#include <brotli/port.h> #include <brotli/types.h> -#if defined(OS_LINUX) || defined(OS_CYGWIN) +#if defined(OS_LINUX) || defined(OS_CYGWIN) || defined(__EMSCRIPTEN__) #include <endian.h> #elif defined(OS_FREEBSD) #include <machine/endian.h>
[lwIP] update net/SConscript for lwip 2.0.0
@@ -8,7 +8,7 @@ cwd = GetCurrentDir() list = os.listdir(cwd) # the default version of LWIP is 1.4.1 -if not GetDepend('RT_USING_LWIP132') and not GetDepend('RT_USING_LWIP140') and not GetDepend('RT_USING_LWIP_HEAD'): +if not GetDepend('RT_USING_LWIP132') and not GetDepend('RT_USING_LWIP140') and not GetDepend('RT_USING_LWIP200'): AddDepend('RT_USING_LWIP141') for d in list:
Fix switch/case code style For readability and consistency, indent case statatements, and remove unnecessary additional blocks.
@@ -85,10 +85,9 @@ static void event_loop(void) { break; } break; - case SDL_TEXTINPUT: { + case SDL_TEXTINPUT: input_manager_process_text_input(&input_manager, &event.text); break; - } case SDL_KEYDOWN: case SDL_KEYUP: input_manager_process_key(&input_manager, &event.key); @@ -96,18 +95,16 @@ static void event_loop(void) { case SDL_MOUSEMOTION: input_manager_process_mouse_motion(&input_manager, &event.motion); break; - case SDL_MOUSEWHEEL: { + case SDL_MOUSEWHEEL: input_manager_process_mouse_wheel(&input_manager, &event.wheel); break; - } case SDL_MOUSEBUTTONDOWN: - case SDL_MOUSEBUTTONUP: { + case SDL_MOUSEBUTTONUP: input_manager_process_mouse_button(&input_manager, &event.button); break; } } } -} SDL_bool scrcpy(const char *serial, Uint16 local_port, Uint16 max_size, Uint32 bit_rate) { if (!server_start(&server, serial, local_port, max_size, bit_rate)) {
Fix the string literal.
@@ -56,7 +56,7 @@ jobs: args: 'build "-s app -b ${{ matrix.board }} -- -DSHIELD=petejohanson_proton_handwire"' - name: Archive Build uses: actions/upload-artifact@v2 - if: ${{ matrix.board == "nice_nano "}} + if: ${{ matrix.board == 'nice_nano' }} with: name: zmk-uf2 path: build/zephyr/zmk.uf2
Leaf: Fix spelling in ReadMe
@@ -71,7 +71,7 @@ user/grandparent/parent/___dirdata = Parent user/grandparent/parent/child = Child user/mother = user/mother/___dirdata = Mother -user/mother/daughter = Daugther +user/mother/daughter = Daughter user/mother/son = Son ```
Fix wrong flag identifiers.
@@ -669,7 +669,7 @@ string_modifiers // modifier. If we don't check for this then we can end up with // "base64 ascii" resulting in whatever is on the stack for "ascii" // overwriting the values for base64. - if (($2.flags & STRING_GFLAGS_BASE64) || + if (($2.flags & STRING_FLAGS_BASE64) || ($2.flags & STRING_FLAGS_BASE64_WIDE)) { if ($$.alphabet != NULL) @@ -760,7 +760,7 @@ string_modifier } | _BASE64_ { - $$.flags = STRING_GFLAGS_BASE64; + $$.flags = STRING_FLAGS_BASE64; $$.alphabet = sized_string_new(DEFAULT_BASE64_ALPHABET); } | _BASE64_ '(' _TEXT_STRING_ ')' @@ -777,7 +777,7 @@ string_modifier fail_if_error(result); - $$.flags = STRING_GFLAGS_BASE64; + $$.flags = STRING_FLAGS_BASE64; $$.alphabet = $3; } | _BASE64_WIDE_
Fix inclusion of ConfigurationManager
@@ -162,9 +162,6 @@ set(NF_CoreCLR_SRCS nanoHAL_Time.cpp nanoHAL_Watchdog.c - # HAL stubs - nanoHAL_ConfigurationManager_stubs.c - # PAL nanoPAL_BlockStorage.c nanoPAL_NativeDouble.cpp @@ -177,9 +174,13 @@ set(NF_CoreCLR_SRCS GenericPort_stubs.c ) -# include configuration manager implementation, if feature is enabled +# include configuration manager file if(NF_FEATURE_HAS_CONFIG_BLOCK) + # feature enabled, full support list(APPEND NF_CoreCLR_SRCS nanoHAL_ConfigurationManager.c) +else() + # feature disabled, stubs only + list(APPEND NF_CoreCLR_SRCS nanoHAL_ConfigurationManager_stubs.c) endif() foreach(SRC_FILE ${NF_CoreCLR_SRCS})
[tests] partially fix test_smc.py, still error due to _DSPhi
@@ -58,7 +58,8 @@ def test_smc1(): # Creation of the Simulation processSimulation = TimeStepping(processTD, 0) processSimulation.setName("plant simulation") - processSimulation.setNonSmoothDynamicalSystemPtr(process.nonSmoothDynamicalSystem()) + processSimulation.setNonSmoothDynamicalSystemPtr( + process.nonSmoothDynamicalSystem()) # Declaration of the integrator processIntegrator = ZeroOrderHoldOSI() processSimulation.prepareIntegratorForDS(processIntegrator, processDS, process, t0)
debug: fix for a possible NULL dereferencing Check results of allocations and list operations for NULL.
@@ -49,8 +49,14 @@ debug_add_handler(debug_fn fn, debug_level_e level, void *user_data) lnode_t *new_node; debug_handler_t *handler = (debug_handler_t *) u_malloc(sizeof(debug_handler_t)); + if (!handler) + return 0; if (!handlers) { handlers = list_create(LISTCOUNT_T_MAX); + if (!handlers) { + u_free(handler); + return 0; + } } handler->fn = fn; handler->level = level; @@ -63,6 +69,10 @@ debug_add_handler(debug_fn fn, debug_level_e level, void *user_data) handler->id = 1; new_node = lnode_create(handler); + if (!new_node) { + u_free(handler); + return 0; + } list_append(handlers, new_node); return handler->id;
xpath BUGFIX avoid integer overflow
@@ -5064,7 +5064,8 @@ xpath_string_length(struct lyxp_set **args, uint16_t arg_count, struct lyxp_set static LY_ERR xpath_substring(struct lyxp_set **args, uint16_t arg_count, struct lyxp_set *set, uint32_t options) { - int32_t start, len; + int64_t start; + int32_t len; uint16_t str_start, str_len, pos; struct lysc_node_leaf *sleaf; LY_ERR rc = LY_SUCCESS;
trogdor: enable CONFIG_CMD_CHARGEN This patch enables the console command 'chargen'. BRANCH=trogdor TEST=buildall
#define I2C_PORT_EEPROM NPCX_I2C_PORT5_0 #define I2C_PORT_SENSOR NPCX_I2C_PORT7_0 +/* UART */ +#define CONFIG_CMD_CHARGEN + /* Define the host events which are allowed to wake AP up from S3 */ #define CONFIG_MKBP_HOST_EVENT_WAKEUP_MASK \ (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) | \
hw/mcu/cmac: Fix calculating time-to-next timer Need to use proper comparator.
@@ -431,9 +431,10 @@ cmac_timer_next_at(void) to_next = min(to_next, reg32 - val32); } - if (mask & CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_EQ_Y_SEL_Msk) { - reg32 = (CMAC->CM_LL_TIMER1_EQ_Y_HI_REG << 10) | - CMAC->CM_LL_TIMER1_EQ_Y_LO_REG; + if (mask & (CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_36_10_EQ_Y_SEL_Msk | + CMAC_CM_LL_INT_MSK_SET_REG_LL_TIMER1_9_0_EQ_Y_SEL_Msk)) { + reg32 = (CMAC->CM_LL_TIMER1_36_10_EQ_Y_REG << 10) | + CMAC->CM_LL_TIMER1_9_0_EQ_Y_REG; to_next = min(to_next, reg32 - val32); }
reception small optimizations
@@ -101,15 +101,14 @@ void Recep_GetHeader(volatile unsigned char *data) ******************************************************************************/ void Recep_GetData(volatile unsigned char *data) { - uint8_t current_data = *data; if (keep) { - MsgAlloc_SetData(current_data); - } - if ((data_count < data_size) && keep) + MsgAlloc_SetData(*data); + if (data_count < data_size) { // Continue CRC computation until the end of data - LuosHAL_ComputeCRC((unsigned char *)&current_data, 1, (unsigned char *)&crc_val); + LuosHAL_ComputeCRC((unsigned char *)data, 1, (unsigned char *)&crc_val); + } } if (data_count > data_size) { @@ -123,20 +122,19 @@ void Recep_GetData(volatile unsigned char *data) { Transmit_SendAck(); } - ctx.data_cb = Recep_GetHeader; MsgAlloc_EndMsg(module_concerned_by_current_msg, &module_concerned_stack_pointer); } else { ctx.status.rx_error = TRUE; - module_concerned_stack_pointer = 0; - MsgAlloc_InvalidMsg(); if ((current_msg->header.target_mode == IDACK)) { Transmit_SendAck(); } - ctx.data_cb = Recep_GetHeader; + module_concerned_stack_pointer = 0; + MsgAlloc_InvalidMsg(); } + ctx.data_cb = Recep_GetHeader; } Recep_Reset(); return; @@ -170,7 +168,6 @@ void Recep_GetCollision(volatile unsigned char *data) } ctx.tx_data = ctx.tx_data + 1; } - /****************************************************************************** * @brief end of a reception * @param None @@ -314,9 +311,10 @@ uint8_t Recep_ModuleConcerned(header_t *header) } break; case BROADCAST: - for (int i = 0; i < ctx.vm_number; i++) + while (module_concerned_stack_pointer < ctx.vm_number) { - module_concerned_by_current_msg[module_concerned_stack_pointer++] = (vm_t *)&ctx.vm_table[i]; + module_concerned_by_current_msg[module_concerned_stack_pointer] = (vm_t *)&ctx.vm_table[module_concerned_stack_pointer]; + module_concerned_stack_pointer++; } MsgAlloc_ValidHeader(); return TRUE;
update testshell_markdown_line
@@ -69,23 +69,23 @@ kdb export -c "format=%s: %s" user:/line simpleini sudo kdb mount line /tests/line base64 line -kdb set /tests/line/add something -kdb set /tests/line/ignored huhu -kdb set /tests/line ignored # adding parent key does nothing -kdb set /tests/line/add here +kdb set user:/tests/line/add something +kdb set user:/tests/line/ignored huhu +kdb set user:/tests/line ignored # adding parent key does nothing +kdb set user:/tests/line/add here -cat `kdb file /tests/line` +cat `kdb file user:/tests/line` #> something #> huhu #> here -kdb ls /tests/line +kdb ls user:/tests/line # STDOUT-REGEX: line.+line/#0.+line/#1.+line/#2 -kdb set /tests/line/#1 huhu +kdb set user:/tests/line/#1 huhu # STDOUT-REGEX: .+Set string to "huhu" -kdb export /tests/line line +kdb export user:/tests/line line #> something #> huhu #> here @@ -101,18 +101,18 @@ sudo kdb umount /tests/line sudo kdb mount line /tests/line base64 line # create and initialize testfile -echo 'setting1 true' > `kdb file /tests/line` -echo 'setting2 false' >> `kdb file /tests/line` -echo 'setting3 1000' >> `kdb file /tests/line` -echo '#comment' >> `kdb file /tests/line` -echo >> `kdb file /tests/line` -echo >> `kdb file /tests/line` -echo '//some other comment' >> `kdb file /tests/line` -echo >> `kdb file /tests/line` -echo 'setting4 -1' >> `kdb file /tests/line` +echo 'setting1 true' > `kdb file user:/tests/line` +echo 'setting2 false' >> `kdb file user:/tests/line` +echo 'setting3 1000' >> `kdb file user:/tests/line` +echo '#comment' >> `kdb file user:/tests/line` +echo >> `kdb file user:/tests/line` +echo >> `kdb file user:/tests/line` +echo '//some other comment' >> `kdb file user:/tests/line` +echo >> `kdb file user:/tests/line` +echo 'setting4 -1' >> `kdb file user:/tests/line` # output filecontent and display line numbers -awk '{print NR-1 "-" $0}' < `kdb file /tests/line` +awk '{print NR-1 "-" $0}' < `kdb file user:/tests/line` #> 0-setting1 true #> 1-setting2 false #> 2-setting3 1000
drivers/ramlog: Set protocol attribute, SEM_PRIO_NONE for rl_waitsem. The rl_waitsem sempahore is used for signaling and so it should not have priority inheritance enabled.
@@ -686,6 +686,12 @@ int ramlog_consoleinit(void) #ifndef CONFIG_RAMLOG_NONBLOCKING if ((priv->rl_waitsem.flags & FLAGS_INITIALIZED) == 0) { sem_init(&priv->rl_waitsem, 0, 0); + + /* + * The rl_waitsem semaphore is used for signaling and, hence, + * should not have priority inheritance enabled. + */ + sem_setprotocol(&priv->rl_waitsem, SEM_PRIO_NONE); } #endif @@ -718,6 +724,13 @@ int ramlog_sysloginit(void) #ifndef CONFIG_RAMLOG_NONBLOCKING if ((g_sysdev.rl_waitsem.flags & FLAGS_INITIALIZED) == 0) { sem_init(&g_sysdev.rl_waitsem, 0, 0); + + /* + * The rl_waitsem semaphore is used for signaling and, hence, + * should not have priority inheritance enabled. + */ + sem_setprotocol(&g_sysdev.rl_waitsem, SEM_PRIO_NONE); + } #endif
Remove unnecessary openlibs calls.
@@ -163,7 +163,6 @@ testStackValueInstance t = QM.monadicIO $ do testOpen :: String -> (LuaState -> IO ()) -> Test testOpen lib openfn = TestLabel ("open" ++ lib) . TestCase . assert $ do l <- newstate - openlibs l openfn l ret <- istable l (-1) close l @@ -172,7 +171,6 @@ testOpen lib openfn = TestLabel ("open" ++ lib) . TestCase . assert $ do testOpenBase :: Test testOpenBase = TestLabel "openbase" . TestCase . assert $ do l <- newstate - openlibs l openbase l -- openbase returns one table in lua 5.2 and later #if LUA_VERSION_NUMBER >= 502
tests for centered radial trajectory
@@ -11,6 +11,30 @@ tests/test-traj-over: traj scale nrmse TESTS += tests/test-traj-over +tests/test-traj-dccen: traj nrmse + set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\ + $(TOOLDIR)/traj -x128 -y71 -r -c traja.ra ;\ + $(TOOLDIR)/traj -x128 -y71 -q-0.5:-0.5:0. -r trajb.ra ;\ + $(TOOLDIR)/nrmse -t 0.0000001 traja.ra trajb.ra ;\ + rm *.ra ; cd .. ; rmdir $(TESTS_TMP) + touch $@ + +TESTS += tests/test-traj-dccen + + + +tests/test-traj-dccen-over: traj nrmse + set -e; mkdir $(TESTS_TMP) ; cd $(TESTS_TMP) ;\ + $(TOOLDIR)/traj -x64 -y71 -r -c -o2. traja.ra ;\ + $(TOOLDIR)/traj -x64 -y71 -q-0.5:-0.5:0. -r -o2. trajb.ra ;\ + $(TOOLDIR)/nrmse -t 0.0000001 traja.ra trajb.ra ;\ + rm *.ra ; cd .. ; rmdir $(TESTS_TMP) + touch $@ + +TESTS += tests/test-traj-dccen-over + + + # compare customAngle to default angle tests/test-traj-custom: traj poly nrmse
Note that dhparam does support X9.42 Fix other wording, too. Fixes:
@@ -30,6 +30,10 @@ B<openssl dhparam> This command is used to manipulate DH parameter files. +See L<openssl-genpkey(1)/EXAMPLES> for examples on how to generate +a key using a named safe prime group without generating intermediate +parameters. + =head1 OPTIONS =over 4 @@ -109,20 +113,12 @@ This option prints out the DH parameters in human readable form. This command replaces the B<dh> and B<gendh> commands of previous releases. -OpenSSL currently only supports the older PKCS#3 DH, not the newer X9.42 -DH. - -This command manipulates DH parameters not keys. - -=head1 BUGS - -There should be a way to generate and manipulate DH keys. - =head1 SEE ALSO L<openssl(1)>, L<openssl-pkeyparam(1)>, -L<openssl-dsaparam(1)> +L<openssl-dsaparam(1)>, +L<openssl-genpkey(1)>. =head1 HISTORY
misc: register Leap with make_repo utility
@@ -8,6 +8,7 @@ if [ -s "/etc/os-release" ];then [[ `grep "CentOS" /etc/os-release` ]] && repodir=/etc/yum.repos.d [[ `grep "Red Hat" /etc/os-release` ]] && repodir=/etc/yum.repos.d [[ `grep "SLES" /etc/os-release` ]] && repodir=/etc/zypp/repos.d + [[ `grep "Leap" /etc/os-release` ]] && repodir=/etc/zypp/repos.d else echo "Error: no /etc/os-release file found" exit 1
Add a note_id
@@ -117,6 +117,7 @@ typedef int32_t clap_event_type; typedef struct clap_event_note { clap_event_header_t header; + int16_t note_id; // -1 if unspecified, otherwise >0 int16_t port_index; int16_t key; // 0..127 int16_t channel; // 0..15 @@ -146,7 +147,8 @@ typedef struct clap_event_note_expression { clap_note_expression expression_id; - // target a specific port, key and channel, -1 for global + // target a specific note_id, port, key and channel, -1 for global + int16_t note_id; int16_t port_index; int16_t key; int16_t channel; @@ -161,10 +163,11 @@ typedef struct clap_event_param_value { clap_id param_id; // @ref clap_param_info.id void *cookie; // @ref clap_param_info.cookie - // target a specific port, key and channel, -1 for global + // target a specific note_id, port, key and channel, -1 for global + int16_t note_id; int16_t port_index; - int16_t key; int16_t channel; + int16_t key; double value; } clap_event_param_value_t; @@ -176,10 +179,11 @@ typedef struct clap_event_param_mod { clap_id param_id; // @ref clap_param_info.id void *cookie; // @ref clap_param_info.cookie - // target a specific port, key and channel, -1 for global + // target a specific note_id, port, key and channel, -1 for global + int16_t note_id; int16_t port_index; - int16_t key; int16_t channel; + int16_t key; double amount; // modulation amount } clap_event_param_mod_t;
Changelog note for - Merge PR from Jaap: Fix generation of libunbound.pc.
1 December 2021: George - Merge PR #511 from yan12125: Reduce unnecessary linking. + - Merge PR #493 from Jaap: Fix generation of libunbound.pc. 30 November 2021: Wouter - Fix to remove git tracking and ci information from release tarballs.
removed tests in root cmake file for device testing
@@ -66,20 +66,20 @@ add_subdirectory(src/dictionary/open_address_hash) add_subdirectory(src/dictionary/skip_list) add_subdirectory(src/dictionary/linear_hash) -add_subdirectory(src/tests/unit/iinq) -add_subdirectory(src/tests/unit/dictionary/bpp_tree) -add_subdirectory(src/tests/unit/dictionary/flat_file) -add_subdirectory(src/tests/unit/dictionary/open_address_file_hash) -add_subdirectory(src/tests/unit/dictionary/open_address_hash) -add_subdirectory(src/tests/unit/dictionary/skip_list) -add_subdirectory(src/tests/unit/dictionary/linear_hash) +#add_subdirectory(src/tests/unit/iinq) +#add_subdirectory(src/tests/unit/dictionary/bpp_tree) +#add_subdirectory(src/tests/unit/dictionary/flat_file) +#add_subdirectory(src/tests/unit/dictionary/open_address_file_hash) +#add_subdirectory(src/tests/unit/dictionary/open_address_hash) +#add_subdirectory(src/tests/unit/dictionary/skip_list) +#add_subdirectory(src/tests/unit/dictionary/linear_hash) add_subdirectory(src/tests/behaviour/dictionary) -add_subdirectory(src/tests/behaviour/dictionary/flat_file) -add_subdirectory(src/tests/behaviour/dictionary/skip_list) -add_subdirectory(src/tests/behaviour/dictionary/bpp_tree) -add_subdirectory(src/tests/behaviour/dictionary/open_address_hash) -add_subdirectory(src/tests/behaviour/dictionary/open_address_file_hash) +#add_subdirectory(src/tests/behaviour/dictionary/flat_file) +#add_subdirectory(src/tests/behaviour/dictionary/skip_list) +#add_subdirectory(src/tests/behaviour/dictionary/bpp_tree) +#add_subdirectory(src/tests/behaviour/dictionary/open_address_hash) +#add_subdirectory(src/tests/behaviour/dictionary/open_address_file_hash) add_subdirectory(src/tests/behaviour/dictionary/linear_hash)
net/tcp: fix potential busy loop in tcp_send_buffered.c if the wrbuffer does not have enough space to send the rest of the data, then the send function will loop infinitely in nonblock mode, add send timeout check to avoid this issue.
@@ -1361,7 +1361,8 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf, tcp_wrbuffer_release(wrb); } - if (nonblock) + if (nonblock || (timeout != UINT_MAX && + tcp_send_gettimeout(start, timeout) == 0)) { nerr("ERROR: Failed to add data to the I/O chain\n"); ret = -EAGAIN;
wait for init ctx
@@ -495,16 +495,6 @@ main(int argc, char *argv[]) } } - if (config_log_level == 0) { - neat_log_level(ctx, NEAT_LOG_ERROR); - } else if (config_log_level == 1){ - neat_log_level(ctx, NEAT_LOG_WARNING); - } else if (config_log_level == 2){ - neat_log_level(ctx, NEAT_LOG_INFO); - }else { - neat_log_level(ctx, NEAT_LOG_DEBUG); - } - if (optind == argc) { config_active = 0; if (config_log_level >= 1) { @@ -527,6 +517,16 @@ main(int argc, char *argv[]) goto cleanup; } + if (config_log_level == 0) { + neat_log_level(ctx, NEAT_LOG_ERROR); + } else if (config_log_level == 1){ + neat_log_level(ctx, NEAT_LOG_WARNING); + } else if (config_log_level == 2){ + neat_log_level(ctx, NEAT_LOG_INFO); + }else { + neat_log_level(ctx, NEAT_LOG_DEBUG); + } + if (config_active) { for (i = 0; i < config_num_flows; i++) { if ((flows[i] = neat_new_flow(ctx)) == NULL) {
Remove redundant variable Author: Amul Sul Discussion:
@@ -176,7 +176,6 @@ transformCreateStmt(CreateStmt *stmt, const char *queryString) Oid namespaceid; Oid existing_relid; ParseCallbackState pcbstate; - bool is_foreign_table = IsA(stmt, CreateForeignTableStmt); /* * We must not scribble on the passed-in CreateStmt, so copy it. (This is @@ -333,8 +332,11 @@ transformCreateStmt(CreateStmt *stmt, const char *queryString) /* * Postprocess check constraints. + * + * For regular tables all constraints can be marked valid immediately, + * because the table is new therefore empty. Not so for foreign tables. */ - transformCheckConstraints(&cxt, !is_foreign_table ? true : false); + transformCheckConstraints(&cxt, !cxt.isforeign); /* * Postprocess extended statistics.
Further readability for spawnexample.
@@ -36399,8 +36399,11 @@ int playlevel(char *filename) return ((type == 2 && endgame != 2) || p_alive); } -// Spawn sample entity for select screen. -static entity *spawnexample(int i) +// Caskey, Damon V (retool, OA unknown) +// 2019-01-03 +// +// For select screen. Spawn sample entity for player_index. +static entity *spawnexample(int player_index) { #define SPAWN_MODEL_NAME NULL #define SPAWN_MODEL_INDEX -1 @@ -36417,19 +36420,19 @@ static entity *spawnexample(int i) set = levelsets + current_set; // Get spawn attributes and spawn entity. - pos_x = (float)psmenu[i][0]; + pos_x = (float)psmenu[player_index][0]; pos_y = 0; - pos_z = (float)psmenu[i][1]; - direction = spdirection[i]; + pos_z = (float)psmenu[player_index][1]; + direction = spdirection[player_index]; // Next selectable model in cycle. We'll use this // to decide what we spawn. - model = nextplayermodeln(NULL, i); + model = nextplayermodeln(NULL, player_index); example = spawn(pos_x, pos_z, pos_y, direction, SPAWN_MODEL_NAME, SPAWN_MODEL_INDEX, model); // Copy model's name to player property. - strcpy(player[i].name, model->name); + strcpy(player[player_index].name, model->name); // If color selection is allowed and we want // players with same models to use different @@ -36437,15 +36440,15 @@ static entity *spawnexample(int i) // just go with default map. if (colourselect && (set->nosame & 2)) { - player[i].colourmap = nextcolourmapn(model, -1, i); + player[player_index].colourmap = nextcolourmapn(model, -1, player_index); } else { - player[i].colourmap = 0; + player[player_index].colourmap = 0; } // Apply map to spawned entity. - ent_set_colourmap(example, player[i].colourmap); + ent_set_colourmap(example, player[player_index].colourmap); // So the entity knows how it came to be. example->spawntype = SPAWN_TYPE_PLAYER_SELECT;
BlessTest: Fix compilation
@@ -103,7 +103,7 @@ TestBless ( // TODO: This should properly handle folder boot entries. // if (!EFI_ERROR (Status)) { - Status = OcLoadBootEntry (Chosen, OC_LOAD_DEFAULT_POLICY, ImageHandle, &BooterHandle); + Status = OcLoadBootEntry (AppleBootPolicy, Chosen, OC_LOAD_DEFAULT_POLICY, ImageHandle, &BooterHandle); if (!EFI_ERROR (Status)) { Status = gBS->StartImage (BooterHandle, NULL, NULL); if (EFI_ERROR (Status)) {
Fix compilation error in lv_chart
@@ -731,7 +731,6 @@ static void lv_chart_draw_cols(lv_obj_t * chart, const lv_area_t * mask) col_a.y2 = chart->coords.y2; lv_coord_t x_act; - printf("\n", y_tmp); /*Go through all points*/ for(i = 0; i < ext->point_cnt; i ++) { @@ -749,7 +748,6 @@ static void lv_chart_draw_cols(lv_obj_t * chart, const lv_area_t * mask) lv_coord_t p_act = (ser->start_point + i) % ext->point_cnt; y_tmp = (int32_t)((int32_t) ser->points[p_act] - ext->ymin) * h; y_tmp = y_tmp / (ext->ymax - ext->ymin); - printf("ytmp:%d\n", y_tmp); col_a.y1 = h - y_tmp + chart->coords.y1; mask_ret = lv_area_intersect(&col_mask, mask, &col_a);
[BSP] [stm32f769-st-disco] fix error 'undefined reference to *entry*' after scons --menuconfig
@@ -3,6 +3,8 @@ menu "Hardware Drivers Config" config SOC_STM32F769NI bool select SOC_SERIES_STM32F7 + select RT_USING_COMPONENTS_INIT + select RT_USING_USER_MAIN default y menu "Onboard Peripheral Drivers"
Added SCE_SYSMODULE_AACENC to sysmodule.h
@@ -68,6 +68,7 @@ typedef enum SceSysmoduleModuleId { SCE_SYSMODULE_NEAR_UTIL = 0x002B, SCE_SYSMODULE_NP_TUS = 0x002C, SCE_SYSMODULE_MP4 = 0x002D, + SCE_SYSMODULE_AACENC = 0x002E, SCE_SYSMODULE_HANDWRITING = 0x002F, SCE_SYSMODULE_ATRAC = 0x0030, SCE_SYSMODULE_NP_SNS_FACEBOOK = 0x0031,
Solve minor bug in cs_loader_impl target for building with Guix.
@@ -34,6 +34,7 @@ if(OPTION_BUILD_GUIX) execute_process( COMMAND sh -c "${DOTNET_COMMAND} nuget locals all --list | grep global-packages | awk '{print $NF}'" OUTPUT_VARIABLE DOTNET_SOURCE + OUTPUT_STRIP_TRAILING_WHITESPACE ) else() set(DOTNET_SOURCE)
Add New to main menu
@@ -1867,6 +1867,7 @@ enum { Main_menu_quit = 1, Main_menu_controls, Main_menu_opers_guide, + Main_menu_new, Main_menu_open, Main_menu_save, Main_menu_save_as, @@ -1879,6 +1880,7 @@ enum { void push_main_menu(void) { Qmenu* qm = qmenu_create(Main_menu_id); qmenu_set_title(qm, "ORCA"); + qmenu_add_choice(qm, "New", Main_menu_new); qmenu_add_choice(qm, "Open...", Main_menu_open); qmenu_add_choice(qm, "Save", Main_menu_save); qmenu_add_choice(qm, "Save As...", Main_menu_save_as); @@ -2785,6 +2787,31 @@ int main(int argc, char** argv) { case Main_menu_about: push_about_msg(); break; + case Main_menu_new: { + Usz new_field_h, new_field_w; + if (ged_suggest_nice_grid_size(ged_state.win_h, ged_state.win_w, + ged_state.softmargin_y, + ged_state.softmargin_x, + (int)ged_state.ruler_spacing_y, + (int)ged_state.ruler_spacing_x, + &new_field_h, &new_field_w)) { + undo_history_push(&ged_state.undo_hist, &ged_state.field, + ged_state.tick_num); + field_resize_raw(&ged_state.field, new_field_h, new_field_w); + memset(ged_state.field.buffer, '.', + new_field_h * new_field_w * sizeof(Glyph)); + ged_cursor_confine(&ged_state.ged_cursor, new_field_h, + new_field_w); + mbuf_reusable_ensure_size(&ged_state.mbuf_r, new_field_h, + new_field_w); + ged_update_internal_geometry(&ged_state); + ged_make_cursor_visible(&ged_state); + ged_state.needs_remarking = true; + ged_state.is_draw_dirty = true; + heapstr_set_cstr(&file_name, ""); + ged_state.filename = "unnamed"; // slightly redundant + } + } break; case Main_menu_open: push_open_form(file_name.str); break;
fix more case for skin.ini
@@ -118,7 +118,10 @@ class Skin: raise Exception('invalid section name found: ' + line[1:-1]) sl = line.split(':') + try: key, value = sl[0], sl[1] + except IndexError as e: + continue my_command = section + '["' + key + '"] = ' + '"' + str(value) + '"' exec(my_command)
docs: update a description of overview Fix .
## Introduction ### Overview -In this article, we discribe system requirements for BoAT Framework (C language version) on cellular modules. BoAT is an SDK that runs on the module's application processor. For the cellular module with an OpenCPU, BoAT is linked and called by the application as a library. For cellular modules without OpenCPU,BoAT APIs will be wrapped into AT commands to works fine in host MCUs. +This article describes the system requirements for BoAT Framework (C language version) on cellular modules. BoAT is an SDK that runs on the module's application processor. For the cellular module with an OpenCPU, BoAT is linked and called by the application as a library. For cellular modules without OpenCPU,BoAT APIs will be wrapped into AT commands to works fine in host MCUs. ### Abbreviated Terms |Term |Explanation |
mist: update tmp_path for mk_dist utility
@@ -27,7 +27,7 @@ my @distros = ('Leap_15','CentOS_8'); my $base_repo_path = "/repos/OpenHPC"; my $dest_dir = "/repos/dist/$release"; -my $tmp_path = "/repos/tmp/dist"; +my $tmp_path = "/stage/dist/tmp"; # basic usage sub usage {
Add test for calling update when nonce not set Previously only testing calling update_ad in this state.
@@ -4224,6 +4224,19 @@ void aead_multipart_state_test( int key_type_arg, data_t *key_data, psa_aead_abort( &operation ); + /* ------------------------------------------------------- */ + + operation = psa_aead_operation_init( ); + + PSA_ASSERT( psa_aead_encrypt_setup( &operation, key, alg ) ); + + TEST_EQUAL( psa_aead_update( &operation, input_data->x, + input_data->len, output_data, + output_size, &output_length ), + PSA_ERROR_BAD_STATE ); + + psa_aead_abort( &operation ); + /* Test for double setting nonce. */ operation = psa_aead_operation_init( );
Changed keepalive callback to avoid sending immediate keepalive when the network is congested
@@ -275,7 +275,7 @@ keepalive_packet_sent(void *ptr, int status, int transmissions) LOG_INFO_(", st %d-%d\n", status, transmissions); /* We got no ack, try to recover by switching to the last neighbor we received an EB from */ - if(status != MAC_TX_OK) { + if(status == MAC_TX_NOACK) { if(linkaddr_cmp(&last_eb_nbr_addr, &linkaddr_null)) { LOG_WARN("not able to re-synchronize, received no EB from other neighbors\n"); if(sync_count == 0) {
pier: improves replay printfs
@@ -1656,10 +1656,14 @@ _pier_boot_ready(u3_pier* pir_u) // _pier_work_boot(pir_u, c3n); } + else if ( (1ULL + god_u->dun_d) == log_u->com_d ) { + fprintf(stderr, "pier: replaying event %" PRIu64 "\r\n", + log_u->com_d); + } else { fprintf(stderr, "pier: replaying events %" PRIu64 " through %" PRIu64 "\r\n", - god_u->dun_d, + (c3_d)(1ULL + god_u->dun_d), log_u->com_d); }
extra-build-config.md: Document DISABLE_VC4GRAPHICS
@@ -31,6 +31,10 @@ Accommodate the values above to your own needs (ex: ext3 / ext4). See: <https://www.raspberrypi.org/documentation/configuration/config-txt/memory.md> +## VC4 + +By default, each machine uses `vc4` for graphics. This will in turn sets mesa as provider for `gl` libraries. `DISABLE_VC4GRAPHICS` can be set to `1` to disable this behaviour falling back to using `userland`. Be aware that `userland` has not support for 64-bit arch. If you disable `vc4` on a 64-bit Raspberry Pi machine, expect build breakage. + ## Add purchased license codecs To add you own licenses use variables `KEY_DECODE_MPG2` and `KEY_DECODE_WVC1` in
testcase/task_manager: Reverse the wrong param for task_manager_register_task TC The 4th param of task_manager_register_task should be entry point for task.
@@ -848,7 +848,7 @@ static void utc_task_manager_register_task_n(void) static void utc_task_manager_register_task_p(void) { - tm_not_builtin_handle = task_manager_register_task("not_builtin", 100, 1024, 0 , NULL, TM_APP_PERMISSION_DEDICATE, TM_RESPONSE_WAIT_INF); + tm_not_builtin_handle = task_manager_register_task("not_builtin", 100, 1024, not_builtin_task, NULL, TM_APP_PERMISSION_DEDICATE, TM_RESPONSE_WAIT_INF); TC_ASSERT_GEQ("task_manager_register_task", tm_not_builtin_handle, 0); TC_SUCCESS_RESULT();
engine: retrieve output instance context before it gets invalidated
@@ -102,6 +102,7 @@ static inline int flb_engine_manager(flb_pipefd_t fd, struct flb_config *config) struct flb_task *task; struct flb_task_retry *retry; struct flb_output_thread *out_th; + struct flb_output_instance *ins; bytes = flb_pipe_r(fd, &val, sizeof(val)); if (bytes == -1) { @@ -154,6 +155,7 @@ static inline int flb_engine_manager(flb_pipefd_t fd, struct flb_config *config) task = config->tasks_map[task_id].task; out_th = flb_output_thread_get(thread_id, task); + ins = out_th->o_ins; /* A thread has finished, delete it */ if (ret == FLB_OK) { @@ -166,7 +168,7 @@ static inline int flb_engine_manager(flb_pipefd_t fd, struct flb_config *config) flb_input_chunk_get_name(task->ic), retries, out_th->id, flb_input_name(task->i_ins), - flb_output_name(out_th->o_ins)); + flb_output_name(ins)); } } flb_task_retry_clean(task, out_th->parent); @@ -195,7 +197,7 @@ static inline int flb_engine_manager(flb_pipefd_t fd, struct flb_config *config) flb_input_chunk_get_name(task->ic), task_id, flb_input_name(task->i_ins), - flb_output_name(out_th->o_ins)); + flb_output_name(ins)); flb_output_thread_destroy_id(thread_id, task); if (task->users == 0 && mk_list_size(&task->retries) == 0) { @@ -226,7 +228,7 @@ static inline int flb_engine_manager(flb_pipefd_t fd, struct flb_config *config) "input=%s > output=%s", flb_input_chunk_get_name(task->ic), flb_input_name(task->i_ins), - flb_output_name(out_th->o_ins)); + flb_output_name(ins)); flb_task_retry_destroy(retry); if (task->users == 0 && mk_list_size(&task->retries) == 0) { @@ -241,7 +243,7 @@ static inline int flb_engine_manager(flb_pipefd_t fd, struct flb_config *config) retry_seconds, task->id, flb_input_name(task->i_ins), - flb_output_name(out_th->o_ins)); + flb_output_name(ins)); } } else if (ret == FLB_ERROR) {
Don't send a warning alert in TLSv1.3 TLSv1.3 ignores the alert level, so we should suppress sending of warning only alerts. Fixes
@@ -984,6 +984,8 @@ static int final_server_name(SSL *s, unsigned int context, int sent) return 0; case SSL_TLSEXT_ERR_ALERT_WARNING: + /* TLSv1.3 doesn't have warning alerts so we suppress this */ + if (!SSL_IS_TLS13(s)) ssl3_send_alert(s, SSL3_AL_WARNING, altmp); return 1;
DM Cx: code cleanup for getting cpu state cnt Then we could use a common interface to get cx count. Acked-by: Kevin Tian
#include "dm.h" #include "acpi.h" -static uint8_t get_vcpu_px_cnt(struct vmctx *ctx, int vcpu_id) +static inline int get_vcpu_pm_info(struct vmctx *ctx, int vcpu_id, + uint64_t pm_type, uint64_t *pm_info) { - uint64_t pm_ioctl_buf = 0; - enum pm_cmd_type cmd_type = PMCMD_GET_PX_CNT; - - pm_ioctl_buf = ((ctx->vmid << PMCMD_VMID_SHIFT) & PMCMD_VMID_MASK) + *pm_info = ((ctx->vmid << PMCMD_VMID_SHIFT) & PMCMD_VMID_MASK) | ((vcpu_id << PMCMD_VCPUID_SHIFT) & PMCMD_VCPUID_MASK) - | cmd_type; + | (pm_type & PMCMD_TYPE_MASK); + + return vm_get_cpu_state(ctx, pm_info); +} + +static inline uint8_t get_vcpu_px_cnt(struct vmctx *ctx, int vcpu_id) +{ + uint64_t px_cnt; - if (vm_get_cpu_state(ctx, &pm_ioctl_buf)) { + if (get_vcpu_pm_info(ctx, vcpu_id, PMCMD_GET_PX_CNT, &px_cnt)) { return 0; } - return (uint8_t)pm_ioctl_buf; + return (uint8_t)px_cnt; } static int get_vcpu_px_data(struct vmctx *ctx, int vcpu_id,
puff: re-enable TCPMv2 TEST=Relevant bugs are fixed BRANCH=None Cq-Depend: chromium:2039504, chromium:2036592
#undef CONFIG_CHARGE_MANAGER_SAFE_MODE /* USB type C */ -/* TODO: (b/147255678) Use TCPMv2 */ -#if 0 -#define CONFIG_USB_SM_FRAMEWORK -#endif - +#define CONFIG_USB_SM_FRAMEWORK /* Use TCPMv2 */ #undef CONFIG_USB_CHARGER #define CONFIG_USB_POWER_DELIVERY #define CONFIG_USB_PID 0x5040
scheduler/job.c: use gziptoany for raw files (not just raw printers)
@@ -501,6 +501,7 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */ int backroot; /* Run backend as root? */ int pid; /* Process ID of new filter process */ int banner_page; /* 1 if banner page, 0 otherwise */ + int raw_file; /* 1 if file type is vnd.cups-raw */ int filterfds[2][2] = { { -1, -1 }, { -1, -1 } }; /* Pipes used between filters */ int envc; /* Number of environment variables */ @@ -746,8 +747,11 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */ * Add decompression/raw filter as needed... */ + raw_file = !strcmp(job->filetypes[job->current_file]->super, "application") && + !strcmp(job->filetypes[job->current_file]->type, "vnd.cups-raw"); + if ((job->compressions[job->current_file] && (!job->printer->remote || job->num_files == 1)) || - (!job->printer->remote && job->printer->raw && job->num_files > 1)) + (!job->printer->remote && (job->printer->raw || raw_file) && job->num_files > 1)) { /* * Add gziptoany filter to the front of the list...
[numerics] cancel output of problems for gfc3d wr solvers
#include "gfc3d_compute_error.h" #include "SolverOptions.h" // for SICONOS_DPARAM_TOL -#define OUTPUT_DEBUG */ +/* #define OUTPUT_DEBUG *\/ */ + #include "debug.h" // for DEBUG_EXPR, DEBUG_P... @@ -493,6 +494,8 @@ int freeLocalProblem(FrictionContactProblem* localproblem) void gfc3d_nsgs_wr(GlobalFrictionContactProblem* problem, double *reaction, double *velocity, double* globalVelocity, int *info, SolverOptions* options) { + + /* verbose=1; */ DEBUG_BEGIN("gfc3d_nsgs_wr\n"); NumericsMatrix *H = problem->H; // We compute only if the local problem has contacts
readthedocs: download doxygen from sourceforge The Doxygen website has been DDoSed and taken offline by the ISP. Download the binaries from sourceforge instead for now.
@@ -10,7 +10,7 @@ build: python: "3.8" jobs: post_install: - - wget -nv https://www.doxygen.nl/files/doxygen-1.9.4.linux.bin.tar.gz + - wget -nv https://sourceforge.net/projects/doxygen/files/rel-1.9.4/doxygen-1.9.4.linux.bin.tar.gz/download -O doxygen-1.9.4.linux.bin.tar.gz - tar zxf doxygen-1.9.4.linux.bin.tar.gz doxygen-1.9.4/bin/doxygen --strip-components 2 --one-top-level=tools/doxygen - rm doxygen-1.9.4.linux.bin.tar.gz
endecode_test.c: Fix build errors on OPENSSL_NO_{DH,DSA,EC,EC2M}
@@ -40,6 +40,8 @@ static OSSL_PARAM *ec_explicit_tri_params_explicit = NULL; # endif #endif +#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_DSA) \ + || !defined(OPENSSL_NO_EC) static EVP_PKEY *make_template(const char *type, OSSL_PARAM *genparams) { EVP_PKEY *pkey = NULL; @@ -69,6 +71,7 @@ static EVP_PKEY *make_template(const char *type, OSSL_PARAM *genparams) return pkey; } +#endif static EVP_PKEY *make_key(const char *type, EVP_PKEY *template, OSSL_PARAM *genparams) @@ -514,6 +517,8 @@ static int test_unprotected_via_PEM(const char *type, EVP_PKEY *key) dump_pem, 0); } +#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_DSA) \ + || !defined(OPENSSL_NO_EC) static int check_params_DER(const char *type, const void *data, size_t data_len) { const unsigned char *datap = data; @@ -568,6 +573,7 @@ static int test_params_via_PEM(const char *type, EVP_PKEY *key) test_text, check_params_PEM, dump_pem, 0); } +#endif /* ndef(OPENSSL_NO_DH) || ndef(OPENSSL_NO_DSA) || ndef(OPENSSL_NO_EC) */ static int check_unprotected_legacy_PEM(const char *type, const void *data, size_t data_len)
skip rpath check
@@ -52,6 +52,7 @@ Development files for Singularity %install %{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install} rm -f $RPM_BUILD_ROOT/%{_libdir}/lib*.la +export NO_BRP_CHECK_RPATH=true %clean
makefile: force upgrade generator installation
@@ -110,7 +110,7 @@ deps-haskell: verify-prereq-haskell deps-generator: verify-prereq-generator $(call announce-begin,"Installing generator dependencies") virtualenv -p python2 $(SWIFTNAV_ROOT)/.venv - $(PYTHON) -m pip install $(SWIFTNAV_ROOT)/generator/ + $(PYTHON) -m pip install -U $(SWIFTNAV_ROOT)/generator/ $(call announce-end,"Finished installing generator dependencies") # Generators