message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
Slight rewording of README intro
* Shift away focus from converting Lua code, as it is not clear
that this will be the dominant use-case;
* Clarify status as an initial prototype;
* Do not make performance claims yet. | [](https://travis-ci.org/titan-lang/titan-v0)
[](https://codecov.io/gh/titan-lang/titan-v0/branch/master)
-Titan is a programming language, based on the syntax and semantics of
-[Lua](http://www.lua.org), to be a statically-typed, ahead-of-time compiled
-sister language to Lua. Converting Lua code to Titan should yield a
-significant speedup, in some cases approaching the speed of C code.
+Titan is a new programming language, designed to be a statically-typed,
+ahead-of-time compiled sister language to [Lua](http://www.lua.org). It is an
+application programming language with a focus on performance.
-The Titan compiler is under development and it is compiling Titan modules
+This repository contains the work-in-progress for the initial prototype
+of the Titan compiler. It is under active development and it targets compiling Titan modules
to C code in the [artisanal style](https://github.com/titan-lang/artisanal-titan).
-For more information, please, see the [reference manual](https://github.com/titan-lang/titan-lang-docs/blob/master/manual.md).
+For more information, please see the [reference manual](https://github.com/titan-lang/titan-lang-docs/blob/master/manual.md).
# Requirements for running the compiler
|
oculus mobile driver now supports restart cookie | #include "graphics/canvas.h"
#include "core/os.h"
#include "core/ref.h"
+#include "event/event.h"
#include "lib/glad/glad.h"
#include <android/log.h>
#include <assert.h>
@@ -34,6 +35,7 @@ static struct {
void* renderUserdata;
uint32_t msaa;
float offset;
+ Variant nextBootCookie; // Only used during restart event
} state;
// Headset driver object
@@ -419,6 +421,12 @@ static void bridgeLovrInitState() {
lua_pushvalue(L, -1); // Double at named key
lua_setfield(L, -3, "exe");
lua_rawseti(L, -2, -3);
+ if (state.nextBootCookie.type != TYPE_NIL) {
+ luax_pushvariant(L, &state.nextBootCookie);
+ lovrVariantDestroy(&state.nextBootCookie);
+ state.nextBootCookie.type = TYPE_NIL;
+ lua_setfield(L, -2, "restart");
+ }
// Mimic the arguments "--root /assets" as parsed by lovrInit
lua_pushliteral(L, "--root");
@@ -512,6 +520,7 @@ void bridgeLovrUpdate(BridgeLovrUpdateData *updateData) {
lovrSetErrorCallback(luax_vthrow, T);
if (lua_resume(T, 1) != LUA_YIELD) {
if (lua_type(T, -2) == LUA_TSTRING && !strcmp(lua_tostring(T, -2), "restart")) {
+ luax_checkvariant(T, -1, &state.nextBootCookie);
state.renderCallback = NULL;
state.renderUserdata = NULL;
lua_close(L);
|
doc: add a fancy CHANGES entry to celebrate the new Markdown format | @@ -24,6 +24,31 @@ OpenSSL 3.0
### Changes between 1.1.1 and 3.0 [xx XXX xxxx] ###
+
+ * The main project documents (README, NEWS, CHANGES, INSTALL, SUPPORT)
+ have been converted to Markdown with the goal to produce documents
+ which not only look pretty when viewed online in the browser, but
+ remain well readable inside a plain text editor.
+
+ To achieve this goal, a 'minimalistic' Markdown style has been applied
+ which avoids formatting elements that interfere too much with the
+ reading flow in the text file. For example, it
+
+ * avoids [ATX headings][] and uses [setext headings][] instead
+ (which works for `<h1>` and `<h2>` headings only).
+ * avoids [inline links][] and uses [reference links][] instead.
+ * avoids [fenced code blocks][] and uses [indented code blocks][] instead.
+
+ [ATX headings]: https://github.github.com/gfm/#atx-headings
+ [setext headings]: https://github.github.com/gfm/#setext-headings
+ [inline links]: https://github.github.com/gfm/#inline-link
+ [reference links]: https://github.github.com/gfm/#reference-link
+ [fenced code blocks]: https://github.github.com/gfm/#fenced-code-blocks
+ [indented code blocks]: https://github.github.com/gfm/#indented-code-blocks
+
+ *Matthias St. Pierre*
+
+
* The test suite is changed to preserve results of each test recipe.
A new directory test-runs/ with subdirectories named like the
test recipes are created in the build tree for this purpose.
|
automagically reset boards before upload | import os
+import time
+
+import serial
+import serial.tools.list_ports
Import("env", "projenv")
+def before_upload(source, target, env):
+ for port in serial.tools.list_ports.grep("USB VID:PID=0483:5740 SER=0x8000000"):
+ with serial.Serial(port.device) as ser:
+ ser.write(b'R\r\n')
+ time.sleep(2)
+
+env.AddPreAction("upload", before_upload)
+
env.AddPostAction(
"$BUILD_DIR/${PROGNAME}.elf",
env.VerboseAction(" ".join([
|
fix:fix ethereum test case(test_001CreateWallet_0009CreateWalletWithInternalGeneration) | @@ -253,6 +253,7 @@ END_TEST
START_TEST(test_001CreateWallet_0009CreateWalletWithInternalGeneration)
{
BSINT32 rtnVal;
+ BoatIotSdkInit();
BoatEthWalletConfig wallet = get_ethereum_wallet_settings();
extern BoatIotSdkContext g_boat_iot_sdk_context;
wallet.prikeyCtx_config.prikey_genMode = BOAT_WALLET_PRIKEY_GENMODE_INTERNAL_GENERATION;
|
os/arch/Kconfig : Add suppress configs for interrupt and timer interrupt
1. SUPPRESS_INTERRUPTS : Do not enable interrupts
2. SUPPRESS_TIMER_INTS : Do not initialize or enable the system timer | @@ -536,6 +536,18 @@ config ARCH_RAMVECTORS
If ARCH_RAMVECTORS is defined, then the architecture will support
modifiable vectors in a RAM-based vector table.
+config SUPPRESS_INTERRUPTS
+ bool "Suppress all interrupts"
+ default n
+ ---help---
+ Do not enable interrupts
+
+config SUPPRESS_TIMER_INTS
+ bool "No timer"
+ default n
+ ---help---
+ Do not initialize or enable the system timer
+
comment "Board Settings"
config BOARD_LOOPSPERMSEC
|
pressed_date initialization
pressed_date inited in create function. | @@ -98,6 +98,10 @@ lv_obj_t * lv_calendar_create(lv_obj_t * par, const lv_obj_t * copy)
ext->showed_date.month = 1;
ext->showed_date.day = 1;
+ ext->pressed_date.year = 0;
+ ext->pressed_date.month = 0
+ ext->pressed_date.day = 0
+
ext->highlighted_dates = NULL;
ext->highlighted_dates_num = 0;
ext->day_names = NULL;
|
Support stop move step, when inc_ct is 0 | @@ -184,7 +184,7 @@ bool DeRestPluginPrivate::addTaskSetBrightness(TaskItem &task, uint8_t bri, bool
* Add a color temperature increase task to the queue
*
* \param task - the task item
- * \param ct - step size -65534 ..65534
+ * \param ct - step size -65534 ..65534, 0 to stop running step
* \return true - on success
* false - on error
*/
@@ -198,16 +198,23 @@ bool DeRestPluginPrivate::addTaskIncColorTemperature(TaskItem &task, int32_t ct)
task.zclFrame.payload().clear();
task.zclFrame.setSequenceNumber(zclSeq++);
- task.zclFrame.setCommandId(0x4C); // Step color temperature
task.zclFrame.setFrameControl(deCONZ::ZclFCClusterCommand |
deCONZ::ZclFCDirectionClientToServer |
deCONZ::ZclFCDisableDefaultResponse);
+
+ if (ct == 0)
+ {
+ task.zclFrame.setCommandId(0x47); // Stop move step
+ }
+ else
+ { // payload
+ task.zclFrame.setCommandId(0x4C); // Step color temperature
+
quint8 direction = ct > 0 ? 1 : 3; // up, down
quint16 stepSize = ct > 0 ? ct : -ct;
- { // payload
QDataStream stream(&task.zclFrame.payload(), QIODevice::WriteOnly);
stream.setByteOrder(QDataStream::LittleEndian);
@@ -232,7 +239,7 @@ bool DeRestPluginPrivate::addTaskIncColorTemperature(TaskItem &task, int32_t ct)
* Add a brightness increase task to the queue
*
* \param task - the task item
- * \param bri - step size -254 ..254
+ * \param bri - step size -254 ..254, 0 to stop running step
* \return true - on success
* false - on error
*/
|
Fix maximum decoded picture buffer size | @@ -383,13 +383,15 @@ static void encoder_state_write_bitstream_seq_parameter_set(bitstream_t* stream,
//for each layer
if (encoder->cfg.gop_lowdelay) {
- WRITE_UE(stream, encoder->cfg.ref_frames, "sps_max_dec_pic_buffering");
- WRITE_UE(stream, 0, "sps_num_reorder_pics");
+ const int dpb = encoder->cfg.ref_frames;
+ WRITE_UE(stream, dpb - 1, "sps_max_dec_pic_buffering_minus1");
+ WRITE_UE(stream, 0, "sps_max_num_reorder_pics");
} else {
- WRITE_UE(stream, encoder->cfg.ref_frames + encoder->cfg.gop_len, "sps_max_dec_pic_buffering");
- WRITE_UE(stream, encoder->cfg.gop_len, "sps_num_reorder_pics");
+ const int dpb = MIN(16, encoder->cfg.gop_len);
+ WRITE_UE(stream, dpb - 1, "sps_max_dec_pic_buffering_minus1");
+ WRITE_UE(stream, encoder->cfg.gop_len - 1, "sps_max_num_reorder_pics");
}
- WRITE_UE(stream, 0, "sps_max_latency_increase");
+ WRITE_UE(stream, 0, "sps_max_latency_increase_plus1");
//end for
WRITE_UE(stream, MIN_SIZE-3, "log2_min_coding_block_size_minus3");
|
sosreport: use new input variable name | @@ -249,7 +249,7 @@ int flb_sosreport(struct flb_config *config)
printf(" Name\t\t%s (%s, id=%i)\n", ins_in->name, ins_in->p->name,
ins_in->id);
printf(" Flags\t\t"); input_flags(ins_in->flags);
- printf(" Threaded\t\t%s\n", ins_in->threaded ? "Yes": "No");
+ printf(" Coroutines\t\t%s\n", ins_in->runs_in_coroutine ? "Yes": "No");
if (ins_in->tag) {
printf(" Tag\t\t\t%s\n", ins_in->tag);
}
|
Minor change to default ROM header (SRAM size = 64 KB) | @@ -7,11 +7,11 @@ const ROMHeader rom_header = {
#else
"SEGA MEGA DRIVE ",
#endif
- "(C)SGDK 2020 ",
+ "(C)SGDK 2021 ",
"SAMPLE PROGRAM ",
"SAMPLE PROGRAM ",
"GM 00000000-00",
- 0x0000,
+ 0x000,
"JD ",
0x00000000,
#if (ENABLE_BANK_SWITCH != 0)
@@ -24,7 +24,7 @@ const ROMHeader rom_header = {
"RA",
0xF820,
0x00200000,
- 0x002001FF,
+ 0x0020FFFF,
" ",
"DEMONSTRATION PROGRAM ",
"JUE "
|
build: do not make gelf support dependent on zlib | @@ -246,14 +246,6 @@ if(FLB_COVERAGE)
set(CMAKE_BUILD_TYPE "Debug")
endif()
-if(FLB_OUT_GELF)
- find_package( ZLIB )
- if ( NOT ZLIB_FOUND )
- set(FLB_OUT_GELF 0)
- endif()
-endif()
-
-
# Enable Debug symbols if specified
if(FLB_DEBUG)
set(CMAKE_BUILD_TYPE "Debug")
|
style(gui): clear compiler warning | @@ -89,6 +89,7 @@ void LCUIWidget_InitPrototype(void)
self.default_prototype.settext = Widget_DefaultTextSetter;
self.default_prototype.bindprop = Widget_DefaultPropertyBinder;
self.default_prototype.autosize = Widget_DefaultResizer;
+ self.default_prototype.paint = Widget_DefaultPainter;
}
void LCUIWidget_FreePrototype(void)
|
remove entries for repos that we no longer use | @@ -95,22 +95,8 @@ AOMP_REPO_NAME=${AOMP_REPO_NAME:-aomp}
AOMP_REPO_BRANCH=${AOMP_REPO_BRANCH:-master}
AOMP_PROJECT_REPO_NAME=${AOMP_PROJECT_REPO_NAME:-llvm-project}
AOMP_PROJECT_REPO_BRANCH=${AOMP_PROJECT_REPO_BRANCH:-AOMP-191008}
-AOMP_LLVM_REPO_NAME=${AOMP_LLVM_REPO_NAME:-llvm}
-AOMP_LLVM_REPO_BRANCH=${AOMP_LLVM_REPO_BRANCH:-release_80_AOMP_063}
-AOMP_CLANG_REPO_NAME=${AOMP_CLANG_REPO_NAME:-clang}
-AOMP_CLANG_REPO_BRANCH=${AOMP_CLANG_REPO_BRANCH:-release_80_AOMP_063}
-AOMP_LLD_REPO_NAME=${AOMP_LLD_REPO_NAME:-lld}
-AOMP_LLD_REPO_BRANCH=${AOMP_LLD_REPO_BRANCH:-release_80}
-AOMP_OPENMP_REPO_NAME=${AOMP_OPENMP_REPO_NAME:-openmp}
-AOMP_OPENMP_REPO_BRANCH=${AOMP_OPENMP_REPO_BRANCH:-release_80_AOMP_063}
AOMP_LIBDEVICE_REPO_NAME=${AOMP_LIBDEVICE_REPO_NAME:-rocm-device-libs}
AOMP_LIBDEVICE_REPO_BRANCH=${AOMP_LIBDEVICE_REPO_BRANCH:-roc-ocl-2.9.x}
-AOMP_OCLRUNTIME_REPO_NAME=${AOMP_OCLRUNTIME_REPO_NAME:-rocm-opencl-runtime}
-AOMP_OCLRUNTIME_REPO_BRANCH=${AOMP_OCLRUNTIME_REPO_BRANCH:-roc-2.9.x}
-AOMP_OCLDRIVER_REPO_NAME=${AOMP_OCLDRIVER_REPO_NAME:-rocm-opencl-driver}
-AOMP_OCLDRIVER_REPO_BRANCH=${AOMP_OCLDRIVER_REPO_BRANCH:-roc-2.9.x}
-AOMP_OCLICD_REPO_NAME=${AOMP_OCLICD_REPO_NAME:-opencl-icd-loader}
-AOMP_OCLICD_REPO_BRANCH=${AOMP_OCLICD_REPO_BRANCH:-master}
AOMP_HCC_REPO_NAME=${AOMP_HCC_REPO_NAME:-hcc}
AOMP_HCC_REPO_BRANCH=${AOMP_HCC_REPO_BRANCH:-roc-2.9.x}
AOMP_HIP_REPO_NAME=${AOMP_HIP_REPO_NAME:-hip}
|
Mark all code blocks as C | @@ -725,7 +725,7 @@ If you prefer a different order, call `mbedtls_ssl_conf_curves()` when configuri
### SSL key export interface change
This affects users of the SSL key export APIs:
-```
+```C
mbedtls_ssl_conf_export_keys_cb()
mbedtls_ssl_conf_export_keys_ext_cb()
```
@@ -876,7 +876,7 @@ Those users will need to modify the API of their session cache
implementation to that of a key-value store with keys being
session IDs and values being instances of `mbedtls_ssl_session`:
-```
+```C
typedef int mbedtls_ssl_cache_get_t( void *data,
unsigned char const *session_id,
size_t session_id_len,
@@ -992,7 +992,7 @@ The compile-time options `MBEDTLS_TLS_DEFAULT_ALLOW_SHA1_IN_CERTIFICATES` and `M
The curve secp256k1 has also been removed from the default X.509 and TLS profiles. [RFC 8422](https://datatracker.ietf.org/doc/html/rfc8422#section-5.1.1) deprecates it in TLS, and it is very rarely used, although it is not known to be weak at the time of writing.
If you still need to accept certificates signed with algorithms that have been removed from the default profile, call `mbedtls_x509_crt_verify_with_profile` instead of `mbedtls_x509_crt_verify` and pass a profile that allows the curves and hashes you want. For example, to allow SHA-224:
-```
+```C
mbedtls_x509_crt_profile my_profile = mbedtls_x509_crt_profile_default;
my_profile.allowed_mds |= MBEDTLS_X509_ID_FLAG( MBEDTLS_MD_SHA224 );
```
|
Fix VrApi casing; | @@ -481,7 +481,7 @@ static struct ModelData* vrapi_newModelData(Device device, bool animated) {
model->buffers[0] = (ModelBuffer) {
.blob = 0,
- .offset = (char*) mesh->vertexPositions - (char*) mesh,
+ .offset = (char*) mesh->VertexPositions - (char*) mesh,
.data = (char*) mesh->VertexPositions,
.size = sizeof(mesh->VertexPositions),
.stride = sizeof(mesh->VertexPositions[0])
@@ -489,7 +489,7 @@ static struct ModelData* vrapi_newModelData(Device device, bool animated) {
model->buffers[1] = (ModelBuffer) {
.blob = 0,
- .offset = (char*) mesh->vertexNormals - (char*) mesh,
+ .offset = (char*) mesh->VertexNormals - (char*) mesh,
.data = (char*) mesh->VertexNormals,
.size = sizeof(mesh->VertexNormals),
.stride = sizeof(mesh->VertexNormals[0]),
@@ -497,7 +497,7 @@ static struct ModelData* vrapi_newModelData(Device device, bool animated) {
model->buffers[2] = (ModelBuffer) {
.blob = 0,
- .offset = (char*) mesh->vertexUV0 - (char*) mesh,
+ .offset = (char*) mesh->VertexUV0 - (char*) mesh,
.data = (char*) mesh->VertexUV0,
.size = sizeof(mesh->VertexUV0),
.stride = sizeof(mesh->VertexUV0[0]),
|
out_nrlogs: register upstream with instance | @@ -313,6 +313,7 @@ static struct flb_newrelic *newrelic_config_create(struct flb_output_instance *i
return NULL;
}
ctx->u = upstream;
+ flb_output_upstream_set(ctx->u, ins);
return ctx;
}
|
made sure i called the addon in the js wrapper | -const addon =
+const addon = require("./build/Release/addon.node")
module.exports = {
metacall () {
if(arguments.length == 0) throw Error("No Argument Passed!");
var functionName = typeof arguments[0] == "string" ? arguments[0] : null
if(functionName == null) throw Error("Function Name should be of string type");
+ addon.metacall(functionName);
},
@@ -14,6 +15,7 @@ module.exports = {
if(tag == null && array == null){
throw Error("Invalid Arguments, The valid arguments should be a tag string and an Array of strings(filenames)");
}
+ addon.metacall_load_from_file(filename, arrayOfFileNames);
// check how to know when node is in debug mode....
// make call to Node Addon....
}
|
vere: restores a necessary layer of reallocation | @@ -489,7 +489,17 @@ _term_it_show_line(u3_utty* uty_u, c3_w wor_w, c3_w sap_w)
{
u3_utat* tat_u = &uty_u->tat_u;
- _term_it_dump(uty_u, tat_u->mir.byt_w, tat_u->mir.lin_y);
+ // we have to reallocate the current line on write,
+ // or we have a data race if a) the write is async,
+ // and b) a new output line arrives before the write completes.
+ //
+ {
+ c3_w len_w = tat_u->mir.byt_w;
+ c3_y* hun_y = c3_malloc(len_w);
+ memcpy(hun_y, tat_u->mir.lin_y, len_w);
+
+ _term_it_send(uty_u, len_w, hun_y);
+ }
// XX refactor to avoid updating state
//
|
Update Makefile to pass version to rpm specfile | @@ -584,7 +584,7 @@ rpm: srctar
@mkdir -p rpm/rpmbuild/SOURCES
@#@cp -af src Makefile rpm/rpmbuild/SOURCES
@mv oidc-agent.tar rpm/rpmbuild/SOURCES/
- rpmbuild --define "_topdir $(BASEDIR)/rpm/rpmbuild" -bb rpm/oidc-agent.spec
+ rpmbuild --define "_topdir $(BASEDIR)/rpm/rpmbuild" --define "_version $(VERSION) -bb rpm/oidc-agent.spec
@#rpmbuild --define "_topdir $(BASEDIR)/rpm/rpmbuild" -bb rpm/liboidc-agent3.spec
@mv rpm/rpmbuild/RPMS/*/*rpm ..
@echo "Success: RPMs are in parent directory"
|
Fix memory leaks in swaybar | @@ -191,8 +191,12 @@ static struct icon_theme *read_theme_file(char *basedir, char *theme_name) {
size_t path_len = snprintf(NULL, 0, "%s/%s/index.theme", basedir,
theme_name) + 1;
char *path = malloc(path_len);
+ if (!path) {
+ return NULL;
+ }
snprintf(path, path_len, "%s/%s/index.theme", basedir, theme_name);
FILE *theme_file = fopen(path, "r");
+ free(path);
if (!theme_file) {
return NULL;
}
@@ -293,6 +297,7 @@ static list_t *load_themes_in_dir(char *basedir) {
list_add(themes, theme);
}
}
+ closedir(dir);
return themes;
}
@@ -311,7 +316,9 @@ void init_themes(list_t **themes, list_t **basedirs) {
struct icon_theme *theme = (*themes)->items[i];
list_add(theme_names, theme->name);
}
- wlr_log(WLR_DEBUG, "Loaded themes: %s", join_list(theme_names, ", "));
+ char *theme_list = join_list(theme_names, ", ");
+ wlr_log(WLR_DEBUG, "Loaded themes: %s", theme_list);
+ free(theme_list);
list_free(theme_names);
}
|
Dockerfile: use Ubuntu mono packages
Switch to the Ubuntu mono packages
and let the renode package install
the dependencies it needs. This ensures
the image is as small as possible
even when the renode dependencies change.
This change also removes the warning
about key handling that is printed
in red when building images. | @@ -13,9 +13,7 @@ RUN apt-get -qq update && \
software-properties-common > /dev/null && \
apt-get -qq clean
-RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
- echo "deb http://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official-stable.list && \
- add-apt-repository ppa:mosquitto-dev/mosquitto-ppa && \
+RUN add-apt-repository ppa:mosquitto-dev/mosquitto-ppa && \
apt-get -qq update && \
apt-get -qq -y --no-install-recommends install \
ant \
@@ -32,7 +30,6 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E03280
libgtk2.0-0 \
libncurses5 \
libpng-dev \
- mono-complete \
mosquitto \
mosquitto-clients \
mtr-tiny \
@@ -101,8 +98,9 @@ RUN wget -nv https://www.nordicsemi.com/-/media/Software-and-other-downloads/Des
# Install Renode from github releases
ARG RENODE_VERSION=1.13.0
RUN wget -nv https://github.com/renode/renode/releases/download/v${RENODE_VERSION}/renode_${RENODE_VERSION}_amd64.deb \
- && dpkg -i renode_${RENODE_VERSION}_amd64.deb \
- && rm renode_${RENODE_VERSION}_amd64.deb
+ && apt-get -qq -y --no-install-recommends install ./renode_${RENODE_VERSION}_amd64.deb > /dev/null \
+ && rm renode_${RENODE_VERSION}_amd64.deb \
+ && apt-get -qq clean
# Sphinx is required for building the readthedocs API documentation.
# RTD requirements are shared with .readthedocs.yaml for build consistency - check RTD build if modifying.
|
swapped argument order in glmm_store3()
close | @@ -133,7 +133,7 @@ glmm_load3(float v[3]) {
static inline
void
-glmm_store3(__m128 vx, float v[3]) {
+glmm_store3(float v[3], __m128 vx) {
_mm_storel_pi((__m64 *)&v[0], vx);
_mm_store_ss(&v[2], glmm_shuff1(vx, 2, 2, 2, 2));
}
|
misc: missing ntohl for bond_slave's custom dump
sw_if_index argument is u32 and it needs to be converted to host order
for format in custom dump, a very highly sophisticated stuff.
Type: fix | @@ -690,8 +690,8 @@ static void *vl_api_bond_enslave_t_print
u8 *s;
s = format (0, "SCRIPT: bond_enslave ");
- s = format (s, "bond_sw_if_index %u ", mp->bond_sw_if_index);
- s = format (s, "sw_if_index %u ", mp->sw_if_index);
+ s = format (s, "bond_sw_if_index %u ", ntohl (mp->bond_sw_if_index));
+ s = format (s, "sw_if_index %u ", ntohl (mp->sw_if_index));
if (mp->is_passive)
s = format (s, "passive ");
if (mp->is_long_timeout)
|
Renamend tests and let them use the interface of the libs | @@ -2,32 +2,30 @@ FILE (GLOB XML_FILES
${CMAKE_CURRENT_SOURCE_DIR}/testdata/*.xml
)
+ADD_EXECUTABLE (test-ixml-shared
test_document.c
)
-TARGET_INCLUDE_DIRECTORIES (test_ixml_shared
- PRIVATE ${UPNP_SOURCE_DIR}/ixml/inc
- PRIVATE ${UPNP_SOURCE_DIR}/upnp/inc
+TARGET_LINK_LIBRARIES (test-ixml-shared
+ PRIVATE ixml_shared
)
ADD_TEST (NAME test-ixml
COMMAND test-ixml-shared ${XML_FILES}
-TARGET_LINK_LIBRARIES (test_ixml_shared
- ixml_shared
)
-ADD_EXECUTABLE (test_ixml_static
- EXCLUDE_FROM_ALL
+SET_TESTS_PROPERTIES (test-ixml PROPERTIES
+ ENVIRONMENT "PATH=$<TARGET_FILE_DIR:ixml_shared>\;%PATH%"
+)
+
+ADD_EXECUTABLE (test-ixml-static
test_document.c
)
-TARGET_INCLUDE_DIRECTORIES (test_ixml_static
- PRIVATE ${UPNP_SOURCE_DIR}/ixml/inc
- PRIVATE ${UPNP_SOURCE_DIR}/upnp/inc
+TARGET_LINK_LIBRARIES (test-ixml-static
+ PRIVATE ixml_static
)
ADD_TEST (NAME test-ixml-static
COMMAND test-ixml-static ${XML_FILES}
-TARGET_LINK_LIBRARIES (test_ixml_static
- ixml_static
)
|
config_format: fluentbit: do not abort on strrchr() failure | @@ -249,11 +249,10 @@ static int local_init(struct local_ctx *ctx, char *file)
/* lookup path ending and truncate */
end = strrchr(path, '/');
- if (!end) {
- return -1;
- }
+ if (end) {
end++;
*end = '\0';
+ }
if (file) {
ctx->file = flb_sds_create(file);
|
Save zigbeechannel in db after channel change | @@ -49,6 +49,7 @@ bool DeRestPluginPrivate::startChannelChange(quint8 channel)
ccRetries = 0;
gwZigbeeChannel = channel;
+ queSaveDb(DB_CONFIG, DB_SHORT_SAVE_DELAY);
if (channelChangeState != CC_Idle)
{
|
stm32/mpconfigboard_common: Add STM32H7 common configuration. | #define MICROPY_HW_MAX_TIMER (17)
#define MICROPY_HW_MAX_UART (8)
+// Configuration for STM32H7 series
+#elif defined(STM32H7)
+
+#define MP_HAL_UNIQUE_ID_ADDRESS (0x1ff1e800)
+#define PYB_EXTI_NUM_VECTORS (24)
+#define MICROPY_HW_MAX_TIMER (17)
+#define MICROPY_HW_MAX_UART (8)
+
// Configuration for STM32L4 series
#elif defined(STM32L4)
|
Working on get functions for net and fs state. not ready; in progress. | @@ -80,6 +80,27 @@ getDuration(uint64_t start)
}
+
+static net_info *
+getNetEntry(int fd)
+{
+ if (g_netinfo && (fd > 0) && (fd <= g_cfg.numNinfo) &&
+ (g_netinfo[fd].fd == fd)) {
+ return &g_netinfo[fd];
+ }
+ return NULL;
+}
+
+static fs_info *
+getFSEntry(int fd)
+{
+ if (g_fsinfo && (fd > 0) && (fd <= g_cfg.numFSInfo) &&
+ (g_fsinfo[fd].fd == fd)) {
+ return &g_fsinfo[fd];
+ }
+ return NULL;
+}
+
static void
addSock(int fd, int type)
{
@@ -275,8 +296,9 @@ static void
doFSMetric(enum metric_t type, int fd, enum control_type_t source, const char *op)
{
pid_t pid = getpid();
+ fs_info *fs;
- if (g_fsinfo == NULL) {
+ if ((fs = getFSEntry(fd)) == NULL) {
return;
}
@@ -293,7 +315,7 @@ doFSMetric(enum metric_t type, int fd, enum control_type_t source, const char *o
STRFIELD("unit", "milliseconds", 3),
FIELDEND
};
- event_t e = {"fs.duration", g_fsinfo[fd].duration, HISTOGRAM, fields};
+ event_t e = {"fs.duration", fs->duration, HISTOGRAM, fields};
if (outSendEvent(g_out, &e)) {
scopeLog("ERROR: doFSMetric:FS_DURATION:outSendEvent\n", fd, CFG_LOG_ERROR);
}
@@ -1025,26 +1047,6 @@ init(void)
scopeLog("Constructor\n", -1, CFG_LOG_INFO);
}
-static net_info *
-getNetEntry(int fd)
-{
- if (g_netinfo && (fd > 0) && (fd <= g_cfg.numNinfo) &&
- (g_netinfo[fd].fd == fd)) {
- return &g_netinfo[fd];
- }
- return NULL;
-}
-
-static fs_info *
-getFSEntry(int fd)
-{
- if (g_fsinfo && (fd > 0) && (fd <= g_cfg.numFSInfo) &&
- (g_fsinfo[fd].fd == fd)) {
- return &g_fsinfo[fd];
- }
- return NULL;
-}
-
static void
doOpen(int fd, const char *path, enum fs_type_t type, char *func)
{
|
memif: fix the memory leak when memif cli getting wrong parameters inputs
Type: fix | @@ -53,6 +53,7 @@ memif_socket_filename_create_command_fn (vlib_main_t * vm,
else
{
vec_free (socket_filename);
+ unformat_free (line_input);
return clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);
}
@@ -125,6 +126,7 @@ memif_socket_filename_delete_command_fn (vlib_main_t * vm,
;
else
{
+ unformat_free (line_input);
return clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);
}
@@ -213,9 +215,12 @@ memif_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
unformat_ethernet_address, args.hw_addr))
args.hw_addr_set = 1;
else
+ {
+ unformat_free (line_input);
return clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);
}
+ }
unformat_free (line_input);
if (!is_pow2 (ring_size))
@@ -289,9 +294,12 @@ memif_delete_command_fn (vlib_main_t * vm, unformat_input_t * input,
vnm, &sw_if_index))
;
else
+ {
+ unformat_free (line_input);
return clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);
}
+ }
unformat_free (line_input);
if (sw_if_index == ~0)
|
Do not write invalid packet duration
Configuration packets have no PTS. Do not compute a packet duration from
their PTS.
Fixes recording to mp4 on device rotation. | @@ -301,8 +301,12 @@ run_recorder(void *data) {
continue;
}
+ // config packets have no PTS, we must ignore them
+ if (rec->packet.pts != AV_NOPTS_VALUE
+ && previous->packet.pts != AV_NOPTS_VALUE) {
// we now know the duration of the previous packet
previous->packet.duration = rec->packet.pts - previous->packet.pts;
+ }
bool ok = recorder_write(recorder, &previous->packet);
record_packet_delete(previous);
|
Sort IP addresses from getInterfaceByName | @@ -1405,6 +1405,10 @@ func (m *bpfEndpointManager) getInterfaceIP(ifaceName string) (*net.IP, error) {
if err != nil {
return nil, err
}
+ sort.Slice(addrs, func(i, j int) bool {
+ return bytes.Compare(addrs[i].(*net.IPNet).IP, addrs[j].(*net.IPNet).IP) < 0
+ })
+
for _, addr := range addrs {
if ipv4Addr := addr.(*net.IPNet).IP.To4(); ipv4Addr != nil {
return &ipv4Addr, nil
|
Rename variable in FAIL_ON_X macros.
Prevent the redefinition of the "result" variable from outer scope. | @@ -113,13 +113,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
goto _exit; \
}
-#define FAIL_ON_ERROR(x) \
- { \
- int result = (x); \
- if (result != ERROR_SUCCESS) \
- return result; \
- }
-
#define GOTO_EXIT_ON_ERROR_WITH_CLEANUP(x, cleanup) \
{ \
result = (x); \
@@ -130,13 +123,22 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
} \
}
+
+#define FAIL_ON_ERROR(x) \
+ { \
+ int __error = (x); \
+ if (__error != ERROR_SUCCESS) \
+ return __error; \
+ }
+
+
#define FAIL_ON_ERROR_WITH_CLEANUP(x, cleanup) \
{ \
- int result = (x); \
- if (result != ERROR_SUCCESS) \
+ int __error = (x); \
+ if (__error != ERROR_SUCCESS) \
{ \
cleanup; \
- return result; \
+ return __error; \
} \
}
|
Do not send a packet if the number of PTO probe packet is reset | @@ -4013,15 +4013,16 @@ static ngtcp2_ssize conn_write_pkt(ngtcp2_conn *conn, ngtcp2_pkt_info *pi,
goto build_pkt;
}
- /* We had pktns->rtb.num_retransmittable > 0 but the contents of
- those packets have been acknowledged (i.e., retransmission in
- another packet). In this case, we don't have to send any
- probe packet. */
+ /* We had pktns->rtb.num_retransmittable > 0 but we were unable
+ to reclaim any frame. In this case, we do not have to send
+ any probe packet. */
if (pktns->rtb.num_pto_eliciting == 0) {
pktns->rtb.probe_pkt_left = 0;
ngtcp2_conn_set_loss_detection_timer(conn, ts);
- /* TODO If packet is empty, we should return now if cwnd is
- zero. */
+
+ if (pkt_empty && conn_cwnd_is_zero(conn) && !require_padding) {
+ return 0;
+ }
}
}
} else {
|
landscape: register serviceworker at root | <script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
- navigator.serviceWorker.register('/serviceworker.js');
+ navigator.serviceWorker.register(
+ '/~landscape/js/bundle/serviceworker.js',
+ { scope: '/' }
+ );
});
}
</script>
|
Expressly enable -msse for 32bit DYNAMIC_ARCH kernels | @@ -46,6 +46,9 @@ endif
ifdef TARGET_CORE
ifeq ($(TARGET_CORE), $(filter $(TARGET_CORE),PRESCOTT CORE2 PENRYN DUNNINGTON ATOM NANO SANDYBRIDGE HASWELL NEHALEM ZEN BARCELONA BOBCAT BULLDOZER PILEDRIVER EXCAVATOR STEAMROLLER OPTERON_SSE3))
override CFLAGS += -msse3 -mssse3 -msse4.1
+endif
+ ifeq ($(TARGET_CORE), $(filter $(TARGET_CORE),KATMAI COPPERMINE NEHALEM BARCELONA CORE2 PRESCOTT NORTHWOOD ATHLON))
+ override CFLAGS += -msse
endif
ifeq ($(TARGET_CORE), COOPERLAKE)
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE)
|
Added domain increment check for hash | @@ -2247,6 +2247,11 @@ ACVP_RESULT acvp_cap_hash_set_domain(ACVP_CTX *ctx,
return ACVP_INVALID_ARG;
}
+ if (increment <= 0) {
+ ACVP_LOG_ERR("Invalid increment (%d) for hash set domain", increment);
+ return ACVP_INVALID_ARG;
+ }
+
if (min % increment != 0) {
ACVP_LOG_ERR("min(%d) MODULO increment(%d) must equal 0", min, increment);
return ACVP_INVALID_ARG;
|
Documentation: Remove useless whitespace | @@ -43,7 +43,6 @@ with kdb.KDB() as k:
for i in ks:
# print for every key in the keyset the key and the value
print 'key: '+ str(i) + 'value: ' + str(ks[i])
-
```
Here an example of how you can easily check if a key exists:
@@ -71,7 +70,6 @@ with kdb.KDB() as k:
ks_deepcopy = copy.deepcopy(ks)
# creating a shallow copy
ks_shallowcopy = copy.copy(ks)
-
```
Slicing works just like for normal lists in python. But be careful: Afterwards the result will be a list - not a keyset.
@@ -90,7 +88,6 @@ with kdb.KDB() as k:
b = ks[start:]
# create keyset with keys from the beginning of the keyset to end
c = ks[:end]
-
```
If you have changed anything in the keyset and want those changes to be saved to the database, you need to call `set` which is just like `get` provided by the kdb-object.
|
sha/keccak1600.c: subscribe more platforms for "complementing" optimization.
E.g. on MIPS64 it gives >20% improvement... | @@ -25,7 +25,14 @@ void SHA3_squeeze(uint64_t A[5][5], unsigned char *out, size_t len, size_t r);
# define KECCAK_2X /* default to KECCAK_2X variant */
#endif
-#if defined(__i386) || defined(__i386__) || defined(_M_IX86)
+#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
+ (defined(__x86_64) && !defined(__BMI__)) || defined(_M_X64) || \
+ defined(__mips) || defined(__riscv) || defined(__s390__) || \
+ defined(__EMSCRIPTEN__)
+/*
+ * These don't have "and with complement" instruction, so minimize amount
+ * of "not"-s. Implemented only in the [default] KECCAK_2X variant.
+ */
# define KECCAK_COMPLEMENTING_TRANSFORM
#endif
|
vere: changed to use u3_king_bail instead of manual term clean up | @@ -577,10 +577,7 @@ _boothack_doom(void)
if ( u3_nul == whu ) {
u3l_log("boot: malformed -F ship %s\r\n", u3_Host.ops_u.fak_c);
-
- u3_term_log_exit();
- fflush(stdout);
-
+ u3_king_bail();
exit(1);
}
|
Disallow forking from Python | @@ -690,7 +690,8 @@ subprocess_fork_exec(PyObject* self, PyObject *args)
need_after_fork = 1;
}
- pid = fork();
+ //pid = fork();
+ pid = -1;
if (pid == 0) {
/* Child process */
/*
|
gimble: downspeed tcpc i2c speed
BRANCH=none
TEST=make -j BOARD=gimble | @@ -18,10 +18,14 @@ const struct i2c_port_t i2c_ports[] = {
.sda = GPIO_EC_I2C_SENSOR_SDA,
},
{
+ /* I2C1
+ * TODO(b/194264003) Need to check the signals with a scope
+ * before raising to 1MHz.
+ */
/* I2C1 */
.name = "tcpc0,2",
.port = I2C_PORT_USB_C0_TCPC,
- .kbps = 1000,
+ .kbps = 400,
.scl = GPIO_EC_I2C_USB_C0_C2_TCPC_SCL,
.sda = GPIO_EC_I2C_USB_C0_C2_TCPC_SDA,
},
@@ -34,6 +38,10 @@ const struct i2c_port_t i2c_ports[] = {
.sda = GPIO_EC_I2C_USB_C0_C2_PPC_BC_SDA,
},
{
+ /* I2C4
+ * TODO(b/194264003) Need to check the signals with a scope
+ * before raising to 1MHz.
+ */
/* I2C4 C1 TCPC */
.name = "tcpc1",
.port = I2C_PORT_USB_C1_TCPC,
|
Docs: Remove GPORCA note as its now included by default | @@ -46,8 +46,6 @@ the Greenplum hosts.
- Greenplum Database does not include Symantec NetBackup integration.
-- To use GPORCA with open source Greenplum Database the software must be compiled with GPORCA enabled. Refer to the build instructions in the README file in the Greenplum Database repository.
-
- The QuickLZ compression method is not available in Greenplum Database. QuickLZ <codeph>compresstype</codeph> values are ignored when specified in a <codeph>CREATE TABLE
[AS]</codeph> operation, but will cause an error on subsequent <codeph>INSERT</codeph> or
<codeph>SELECT</codeph> operations on the table.
|
added comments for JLink connection work. | * This file is part of the TinyUSB stack.
*/
+/* How to connect JLink and GR-CITRUS
+ *
+ * GR-CITRUS needs to solder some pads to enable JTAG interface.
+ * - Short the following pads individually with solder.
+ * - J4
+ * - J5
+ * - Short EMLE pad and 3.3V(GR-CITRUS pin name) with a wire.
+ *
+ * The pads are [the back side of GR-CITRUS](https://www.slideshare.net/MinaoYamamoto/grcitrusrx631/2).
+ *
+ * Connet the pins between GR-CITRUS and JLink as follows.
+ *
+ * | JTAG Function | GR-CITRUS pin name| JLink pin No.| note |
+ * |:-------------:|:-----------------:|:------------:|:--------:|
+ * | VTref | 3.3V | 1 | |
+ * | TRST | 5 | 3 | |
+ * | GND | GND | 4 | |
+ * | TDI | 3 | 5 | |
+ * | TMS | 2 | 7 | |
+ * | TCK | 14 | 9 | short J4 |
+ * | TDO | 9 | 13 | short J5 |
+ * | nRES | RST | 15 | |
+ *
+ * JLink firmware needs to update to V6.96 or newer version to avoid
+ * [a bug](https://forum.segger.com/index.php/Thread/7758-SOLVED-Bug-in-JLink-from-V6-88b-regarding-RX65N)
+ * regarding downloading.
+ *
+ * When using SEGGER RTT, `RX_NEWLIB=0` should be added to make command arguments.
+ * The option is used to change the C runtime library to `optlib` from `newlib`.
+ * RTT may not work with `newlib`.
+ */
+
#include "../board.h"
#include "iodefine.h"
#include "interrupt_handlers.h"
|
Add -s auto-completion for bash
Fixes <https://github.com/Genymobile/scrcpy/pull/3522>
PR <https://github.com/Genymobile/scrcpy/pull/3523> | @@ -93,6 +93,11 @@ _scrcpy() {
COMPREPLY=($(compgen -W 'verbose debug info warn error' -- "$cur"))
return
;;
+ -s|--serial)
+ # Use 'adb devices' to list serial numbers
+ COMPREPLY=($(compgen -W "$("${ADB:-adb}" devices | awk '$2 == "device" {print $1}')" -- ${cur}))
+ return
+ ;;
-b|--bitrate \
|--codec-options \
|--crop \
@@ -103,7 +108,6 @@ _scrcpy() {
|-m|--max-size \
|-p|--port \
|--push-target \
- |-s|--serial \
|--tunnel-host \
|--tunnel-port \
|--v4l2-buffer \
|
Deallocate additional volume mbr from correct heap | @@ -277,7 +277,7 @@ closure_function(3, 1, void, mbr_read,
volume_add(uuid, label, bound(req_handler), bound(length));
else
init_debug("unformatted storage device, ignoring");
- deallocate(heap_locked(init_heaps), mbr, SECTOR_SIZE);
+ deallocate((heap)heap_linear_backed(init_heaps), mbr, PAGESIZE);
} else {
/* The on-disk kernel log dump section is immediately before the first partition. */
struct partition_entry *first_part = partition_at(mbr, 0);
|
framework/ble_manager: fix BLE minor bug
fix BLE minor bug | @@ -181,7 +181,7 @@ ble_result_e blemgr_handle_request(blemgr_msg_s *msg)
}
for (i = 0; i < BLE_MAX_CONNECTION_COUNT; i++) {
- memset(&g_client_table[i], 0, sizeof(ble_client_ctx));
+ memset(&g_client_table[i], 0, sizeof(ble_client_ctx_internal));
}
for (i = 0; i < SCAN_WHITELIST_SIZE; i++) {
|
move TIMERTHRESHOLD to opentimers.h | //=========================== define ==========================================
+
+//===== sctimer scheduling
+// the timer with higher priority can be scheduled in advance even if
+// there is a timer being scheduled early than the higher priority timer
+// but within TIMERTHRESHOLD.
+// E.g if priority of timer0 > priority of timer1: if timer0 schedules timer at
+// 100 and timer 1 schedules timer at 95 and current timer count is 80,
+// then timer0 will be scheduled first than timer1.
+#define TIMERTHRESHOLD 10
+
/// Maximum number of timers that can run concurrently
#define MAX_NUM_TIMERS 10
#define MAX_TICKS_NUMBER ((PORT_TIMER_WIDTH)0xFFFFFFFF)
|
Remove debug output for Haar importer | @@ -151,40 +151,27 @@ def cascade_binary(path, n_stages, name):
# write num stages
fout.write(struct.pack('i', len(stages)))
- count = 0
# write num feat in stages
for s in stages:
fout.write(struct.pack('B', s)) # uint8_t
- count+=1
- print("Stage count (num feats): %d"%count)
- count = 0
# write stages thresholds
for t in stage_threshold:
fout.write(struct.pack('h', int(float(t.childNodes[0].nodeValue)*256))) #int16_t
- count+=1
- print("Stage count (threshold): %d"%count)
- count = 0
# write features threshold 1 per feature
for t in threshold:
fout.write(struct.pack('h', int(float(t.childNodes[0].nodeValue.split()[3])*4096))) #int16_t
- count+=1
- print("Feature count (threshold): %d"%count)
- count = 0
# write alpha1 1 per feature
for a in alpha1:
fout.write(struct.pack('h', int(float(a)*256))) #int16_t
- count+=1
- print("Feature count (left/right): %d"%count)
- count = 0
# write alpha2 1 per feature
for a in alpha2:
fout.write(struct.pack('h', int(float(a)*256))) #int16_t
- # write num_rects per feature TODO: FROM internalNodes!
+ # write num_rects per feature
for f in threshold:
idx = int(f.childNodes[0].nodeValue.split()[2])
write_rect_num(feature, fout, idx)
|
re-create DB if its file is corrupted or encrypted with an unknown key | @@ -241,8 +241,15 @@ void CDBAdapter::open (String strDbPath, String strVer, boolean bTemp, boolean c
boolean bExist = CRhoFile::isFileExist(strDbPath.c_str());
int nRes = sqlite3_open(strDbPath.c_str(),&m_dbHandle);
- if ( !checkDbError(nRes) )
+ if ( nRes==SQLITE_NOTADB ) {//kill db and try again
+ LOG(INFO) + "Open DB: DB file exists, but it is either corrupted or encrypted with an unknown key - no way to recover, kill the DB and create it from scratch.";
+ CRhoFile::deleteFile(strDbPath.c_str());
+ nRes = sqlite3_open(strDbPath.c_str(),&m_dbHandle);
+ }
+
+ if ( !checkDbError(nRes) ) {
return;
+ }
//TODO: raise exception if error
//if (RHOCONF().getBool("encrypt_database"))
|
read regions count on every loop iteration | @@ -398,7 +398,7 @@ void* _mi_mem_alloc_aligned(size_t size, size_t alignment, bool* commit, bool* l
if (p == NULL) {
// no free range in existing regions -- try to extend beyond the count.. but at most 8 regions
- for (idx = count; idx < count + 8 && idx < MI_REGION_MAX; idx++) {
+ for (idx = count; idx < mi_atomic_read_relaxed(®ions_count) + 8 && idx < MI_REGION_MAX; idx++) {
if (!mi_region_try_alloc_blocks(idx, blocks, size, commit, large, is_zero, &p, id, tld)) return NULL; // error
if (p != NULL) break;
}
|
Check Python version for startup | @@ -43,7 +43,25 @@ if is_running $ZK_PID_FILE; then
exit 1
fi
+version=$(python -V 2>&1 | grep -Po '(?<=Python )(.+)')
+if [[ -z "$version" ]]
+then
+
+echo "No Python!"
+exit 1
+else
+case "$(python --version 2>&1)" in
+ *" 2.7"*)
+ echo "Compatible Python version detected"
+ ;;
+ *)
+ echo "Wrong Python version! Please install Python 2.7.X"
+ exit 1
+ ;;
+esac
+
+fi
if [[ "$STATE" = *installed* ]];
then
|
Update pwm.c
rt_malloc -> rt_calloc | @@ -185,16 +185,14 @@ int fh_pwm_probe(void *priv_data)
PWM_Enable(pwm_obj, RT_FALSE);
- pwm_dev = rt_malloc(sizeof(struct rt_device));
+ pwm_dev = rt_calloc(sizeof(struct rt_device));
if (pwm_dev == RT_NULL)
{
- rt_kprintf("ERROR: %s rt_device malloc failed\n", __func__);
- return -RT_EIO;
+ rt_kprintf("ERROR: %s rt_device calloc failed\n", __func__);
+ return -RT_ENOMEM;
}
- rt_memset(pwm_dev, 0, sizeof(struct rt_device));
-
pwm_dev->user_data = &pwm_drv;
pwm_dev->open =fh_pwm_open;
pwm_dev->close = fh_pwm_close;
|
file-server: migrate to new dir | $% [%clay =path]
[%glob =glob:glob]
==
-+$ state-1
- $: %1
- =configuration:srv
++$ state-base
+ $: =configuration:srv
=serving
==
++$ state-2
+ $: %2
+ state-base
+ ==
--
::
%+ verb |
%- agent:dbug
::
-=| state-1
+=| state-2
=* state -
^- agent:gall
|_ =bowl:gall
^- [content ?]
[[%clay clay-path] public]
==
- ?> ?=(%1 -.old-state)
+ =? old-state ?=(%1 -.old-state)
+ %= old-state
+ - %2
+ serving (~(del by serving.old-state) /'~landscape'/js/index)
+ ==
+ ?> ?=(%2 -.old-state)
[~ this(state old-state)]
::
+$ versioned-state
- $% state-1
- state-0
+ $% state-0
+ state-1
+ state-2
==
::
+$ serving-0 (map url-base=path [=clay=path public=?])
=configuration:srv
=serving-0
==
+ +$ state-1
+ $: %1
+ state-base
+ ==
--
::
++ on-poke
|
Make sure an unknown number of pages doesn't disable duplex printing (Issue | @@ -39,7 +39,7 @@ static void start_job(pappl_job_t *job);
pappl_pr_options_t * // O - Job options data or `NULL` on error
papplJobCreatePrintOptions(
pappl_job_t *job, // I - Job
- unsigned num_pages, // I - Number of pages
+ unsigned num_pages, // I - Number of pages (`0` for unknown)
bool color) // I - Is the document in color?
{
pappl_pr_options_t *options; // New options data
@@ -156,7 +156,7 @@ papplJobCreatePrintOptions(
int last, first = ippGetRange(attr, 0, &last);
// pages-ranges values
- if (first > (int)num_pages)
+ if (first > (int)num_pages && num_pages != 0)
{
options->first_page = num_pages + 1;
options->last_page = num_pages + 1;
@@ -166,7 +166,7 @@ papplJobCreatePrintOptions(
{
options->first_page = (unsigned)first;
- if (last > (int)num_pages)
+ if (last > (int)num_pages && num_pages != 0)
options->last_page = num_pages;
else
options->last_page = (unsigned)last;
@@ -174,12 +174,19 @@ papplJobCreatePrintOptions(
options->num_pages = options->last_page - options->first_page + 1;
}
}
- else
+ else if (num_pages > 0)
{
options->first_page = 1;
options->last_page = num_pages;
options->num_pages = num_pages;
}
+ else
+ {
+ // Unknown number of pages...
+ options->first_page = 1;
+ options->last_page = INT_MAX;
+ options->num_pages = 0;
+ }
// print-color-mode
if ((attr = ippFindAttribute(job->attrs, "print-color-mode", IPP_TAG_KEYWORD)) != NULL)
@@ -299,7 +306,7 @@ papplJobCreatePrintOptions(
// sides
if ((attr = ippFindAttribute(job->attrs, "sides", IPP_TAG_KEYWORD)) != NULL)
options->sides = _papplSidesValue(ippGetString(attr, 0, NULL));
- else if (printer->driver_data.sides_default != PAPPL_SIDES_ONE_SIDED && options->num_pages > 1)
+ else if (printer->driver_data.sides_default != PAPPL_SIDES_ONE_SIDED && options->num_pages != 1)
options->sides = printer->driver_data.sides_default;
else
options->sides = PAPPL_SIDES_ONE_SIDED;
|
docs - remove duplicate sentence in max_connections guc descript | @@ -1870,7 +1870,7 @@ Increasing the limit allocates more shared memory on the master host at server s
The maximum number of concurrent connections to the database server. In a Greenplum Database system, user client connections go through the Greenplum master instance only. Segment instances should allow 5-10 times the amount as the master. When you increase this parameter, [max\_prepared\_transactions](#max_prepared_transactions) must be increased as well. For more information about limiting concurrent connections, see "Configuring Client Authentication" in the *Greenplum Database Administrator Guide*.
-Increasing this parameter may cause Greenplum Database to request more shared memory. Increasing this parameter might cause Greenplum Database to request more shared memory. See [shared\_buffers](#shared_buffers) for information about Greenplum server instance shared memory buffers.
+Increasing this parameter may cause Greenplum Database to request more shared memory. See [shared\_buffers](#shared_buffers) for information about Greenplum server instance shared memory buffers.
|Value Range|Default|Set Classifications|
|-----------|-------|-------------------|
|
replace -isystem by -I only if it starts with | @@ -44,7 +44,7 @@ function _translate_arguments(arguments)
if idx == 1 and is_host("windows") and path.extension(arg) == "" then
arg = arg .. ".exe"
end
- if arg:find("-isystem", 1, true) then
+ if arg:startswith("-isystem", 1, true) then
arg = arg:replace("-isystem", "-I")
elseif arg:find("[%-/]external:I") then
arg = arg:gsub("[%-/]external:I", "-I")
|
Fix the checks of EVP_PKEY_public_check | @@ -397,7 +397,7 @@ static int test_fromdata_rsa(void)
goto err;
if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0)
- || !TEST_true(EVP_PKEY_public_check(key_ctx))
+ || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0)
|| !TEST_true(EVP_PKEY_private_check(key_ctx))
|| !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0))
goto err;
@@ -661,7 +661,7 @@ static int test_fromdata_dh_named_group(void)
goto err;
if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0)
- || !TEST_true(EVP_PKEY_public_check(key_ctx))
+ || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0)
|| !TEST_true(EVP_PKEY_private_check(key_ctx))
|| !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0))
goto err;
@@ -842,7 +842,7 @@ static int test_fromdata_dh_fips186_4(void)
goto err;
if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0)
- || !TEST_true(EVP_PKEY_public_check(key_ctx))
+ || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0)
|| !TEST_true(EVP_PKEY_private_check(key_ctx))
|| !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0))
goto err;
@@ -1113,7 +1113,7 @@ static int test_fromdata_ecx(int tst)
goto err;
} else {
/* The private key check should fail if there is only a public key */
- if (!TEST_true(EVP_PKEY_public_check(ctx2))
+ if (!TEST_int_gt(EVP_PKEY_public_check(ctx2), 0)
|| !TEST_false(EVP_PKEY_private_check(ctx2))
|| !TEST_int_le(EVP_PKEY_check(ctx2), 0))
goto err;
@@ -1607,7 +1607,7 @@ static int test_fromdata_dsa_fips186_4(void)
goto err;
if (!TEST_int_gt(EVP_PKEY_check(key_ctx), 0)
- || !TEST_true(EVP_PKEY_public_check(key_ctx))
+ || !TEST_int_gt(EVP_PKEY_public_check(key_ctx), 0)
|| !TEST_true(EVP_PKEY_private_check(key_ctx))
|| !TEST_int_gt(EVP_PKEY_pairwise_check(key_ctx), 0))
goto err;
@@ -1661,7 +1661,7 @@ static int test_check_dsa(void)
if (!TEST_ptr(ctx = EVP_PKEY_CTX_new_from_name(NULL, "DSA", NULL))
|| !TEST_int_le(EVP_PKEY_check(ctx), 0)
- || !TEST_false(EVP_PKEY_public_check(ctx))
+ || !TEST_int_le(EVP_PKEY_public_check(ctx), 0)
|| !TEST_false(EVP_PKEY_private_check(ctx))
|| !TEST_int_le(EVP_PKEY_pairwise_check(ctx), 0))
goto err;
|
[mod_geoip] call from handle_request_env hook
(instead of handle_subrequest_start hook)
The handle_request_env hook is called on demand by dynamic handlers
and this change makes mod_geoip available for mod_magnet lua code. | @@ -211,12 +211,7 @@ static int mod_geoip_patch_connection(server *srv, connection *con, plugin_data
}
#undef PATCH
-URIHANDLER_FUNC(mod_geoip_subrequest) {
- plugin_data *p = p_d;
-
- mod_geoip_patch_connection(srv, con, p);
-
- if (!buffer_is_empty(p->conf.db_name)) {
+static handler_t mod_geoip_query (connection *con, plugin_data *p) {
const char *remote_ip;
data_string *ds;
GeoIPRecord *gir;
@@ -391,12 +386,18 @@ URIHANDLER_FUNC(mod_geoip_subrequest) {
GeoIPRecord_delete(gir);
}
- }
- /* keep walking... (johnnie walker style ;) */
return HANDLER_GO_ON;
}
+CONNECTION_FUNC(mod_geoip_handle_request_env) {
+ plugin_data *p = p_d;
+ mod_geoip_patch_connection(srv, con, p);
+ if (buffer_is_empty(p->conf.db_name)) return HANDLER_GO_ON;
+
+ return mod_geoip_query(con, p);
+}
+
/* this function is called at dlopen() time and inits the callbacks */
int mod_geoip_plugin_init(plugin *p);
@@ -405,7 +406,7 @@ int mod_geoip_plugin_init(plugin *p) {
p->name = buffer_init_string("geoip");
p->init = mod_geoip_init;
- p->handle_subrequest_start = mod_geoip_subrequest;
+ p->handle_request_env = mod_geoip_handle_request_env;
p->set_defaults = mod_geoip_set_defaults;
p->cleanup = mod_geoip_free;
|
Add support for cubic spline keyframe interpolation; | @@ -248,7 +248,7 @@ void lovrModelDraw(Model* model, mat4 transform, uint32_t instances) {
}
void lovrModelAnimate(Model* model, uint32_t animationIndex, float time, float alpha) {
- if (alpha == 0.f) {
+ if (alpha <= 0.f) {
return;
}
@@ -277,24 +277,39 @@ void lovrModelAnimate(Model* model, uint32_t animationIndex, float time, float a
float t1 = channel->times[keyframe - 1];
float t2 = channel->times[keyframe];
float z = (time - t1) / (t2 - t1);
- float next[4];
-
- memcpy(property, channel->data + (keyframe - 1) * n, n * sizeof(float));
- memcpy(next, channel->data + keyframe * n, n * sizeof(float));
switch (channel->smoothing) {
case SMOOTH_STEP:
- if (z >= .5f) {
- memcpy(property, next, n * sizeof(float));
+ memcpy(property, channel->data + (z >= .5f ? keyframe : keyframe - 1) * n, n * sizeof(float));
+ break;
+ case SMOOTH_LINEAR:
+ memcpy(property, channel->data + (keyframe - 1) * n, n * sizeof(float));
+ lerp(property, channel->data + keyframe * n, z);
+ break;
+ case SMOOTH_CUBIC: {
+ int stride = 3 * n;
+ float* p0 = channel->data + (keyframe - 1) * stride + 1 * n;
+ float* m0 = channel->data + (keyframe - 1) * stride + 2 * n;
+ float* p1 = channel->data + (keyframe - 0) * stride + 1 * n;
+ float* m1 = channel->data + (keyframe - 0) * stride + 0 * n;
+ float dt = t2 - t1;
+ float z2 = z * z;
+ float z3 = z2 * z;
+ float a = 2.f * z3 - 3.f * z2 + 1.f;
+ float b = 2.f * z3 - 3.f * z2 + 1.f;
+ float c = (-2.f * z3 + 3.f * z2);
+ float d = (z3 * -z2) * dt;
+ for (size_t j = 0; j < n; j++) {
+ property[j] = a * p0[j] + b * m0[j] + c * p1[j] + d * m1[j];
+ }
+ break;
}
+ default:
break;
- case SMOOTH_LINEAR: lerp(property, next, z); break;
- case SMOOTH_CUBIC: lovrThrow("Cubic spline interpolation is not supported yet"); break;
- default: break;
}
}
- if (alpha == 1.f) {
+ if (alpha >= 1.f) {
memcpy(transform->properties[channel->property], property, n * sizeof(float));
} else {
lerp(transform->properties[channel->property], property, alpha);
|
build: bump wlroots dependency to 0.16.0 | @@ -61,7 +61,7 @@ math = cc.find_library('m')
rt = cc.find_library('rt')
# Try first to find wlroots as a subproject, then as a system dependency
-wlroots_version = ['>=0.15.0', '<0.16.0']
+wlroots_version = ['>=0.16.0', '<0.17.0']
wlroots_proj = subproject(
'wlroots',
default_options: ['examples=false'],
|
State which files isn the example do what | #include "main.h"
int main(int argc, char const *argv[]) {
- /* accept command line arguments and setup default values. */
+ /* accept command line arguments and setup default values, see "cli.c" */
initialize_cli(argc, argv);
- /* initialize HTTP service */
+ /* initialize HTTP service, see "http_service.h" */
initialize_http_service();
/* start facil */
facil_run(.threads = fio_cli_get_int("t"), .processes = fio_cli_get_int("w"));
+ /* cleanup CLI, see "cli.c" */
free_cli();
return 0;
}
|
Fixed TLS connections hanging.
After event is delivered from the kernel its further processing is blocked.
Non-ready TSL I/O operation should mark connection I/O state as not ready
to unblock events and to allow their further processing. Otherwise
the connection hangs. | @@ -855,12 +855,11 @@ nxt_openssl_conn_test_error(nxt_task_t *task, nxt_conn_t *c, int ret,
switch (tls->ssl_error) {
case SSL_ERROR_WANT_READ:
+ c->socket.read_ready = 0;
if (io != NXT_OPENSSL_READ) {
nxt_fd_event_block_write(task->thread->engine, &c->socket);
- c->socket.read_ready = 0;
-
if (nxt_fd_event_is_disabled(c->socket.read)) {
nxt_fd_event_enable_read(task->thread->engine, &c->socket);
}
@@ -869,12 +868,11 @@ nxt_openssl_conn_test_error(nxt_task_t *task, nxt_conn_t *c, int ret,
return NXT_AGAIN;
case SSL_ERROR_WANT_WRITE:
+ c->socket.write_ready = 0;
if (io != NXT_OPENSSL_WRITE) {
nxt_fd_event_block_read(task->thread->engine, &c->socket);
- c->socket.write_ready = 0;
-
if (nxt_fd_event_is_disabled(c->socket.write)) {
nxt_fd_event_enable_write(task->thread->engine, &c->socket);
}
|
haskell-build-fixes: cmake issue when no ONLY_SHARED plugin | @@ -24,7 +24,9 @@ find_util (elektra-export-symbols EXE_SYM_LOC EXE_SYM_ARG)
# do not include plugins configured with SHARED_ONLY in the exported symbols as those are only used for the FULL and STATIC builds
get_property (SHARED_ONLY_PLUGINS GLOBAL PROPERTY SHARED_ONLY_PLUGINS)
set (ADDED_PLUGINS_WITHOUT_ONLY_SHARED ${ADDED_PLUGINS})
+if (SHARED_ONLY_PLUGINS)
list (REMOVE_ITEM ADDED_PLUGINS_WITHOUT_ONLY_SHARED ${SHARED_ONLY_PLUGINS})
+endif (SHARED_ONLY_PLUGINS)
set (ARG ${KDB_DEFAULT_RESOLVER} ${KDB_DEFAULT_STORAGE} ${ADDED_PLUGINS_WITHOUT_ONLY_SHARED})
add_custom_command (OUTPUT exported_symbols.h DEPENDS elektra-export-symbols COMMAND ${EXE_SYM_LOC} ARGS ${EXE_SYM_ARG} ${ARG})
|
sse: added WASM implementation for mm_and_ps | @@ -292,6 +292,8 @@ simde_mm_and_ps (simde__m128 a, simde__m128 b) {
#if defined(SIMDE_SSE_NEON)
r_.neon_i32 = vandq_s32(a_.neon_i32, b_.neon_i32);
+#elif defined(SIMDE_SSE_WASM_SIMD128)
+ r_.wasm_v128 = wasm_v128_and(a_.wasm_v128, b_.wasm_v128);
#elif defined(SIMDE_VECTOR_SUBSCRIPT_OPS)
r_.i32 = a_.i32 & b_.i32;
#else
|
x509_vfy.c: Remove superfluous assignment to 'ret' in check_chain() | @@ -484,11 +484,9 @@ static int check_chain(X509_STORE_CTX *ctx)
CHECK_CB((ctx->param->flags & X509_V_FLAG_X509_STRICT) != 0
&& ret != 1 && ret != 0,
ctx, x, i, X509_V_ERR_INVALID_CA);
- ret = 1;
break;
case 0:
CHECK_CB(ret != 0, ctx, x, i, X509_V_ERR_INVALID_NON_CA);
- ret = 1;
break;
default:
/* X509_V_FLAG_X509_STRICT is implicit for intermediate CAs */
@@ -496,7 +494,6 @@ static int check_chain(X509_STORE_CTX *ctx)
|| ((i + 1 < num
|| ctx->param->flags & X509_V_FLAG_X509_STRICT)
&& ret != 1), ctx, x, i, X509_V_ERR_INVALID_CA);
- ret = 1;
break;
}
if (num > 1) {
|
linux-raspberrypi_dev: Disable version sanity check | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.9:"
-LINUX_VERSION ?= "4.10.0-rc8"
+LINUX_VERSION ?= "4.10"
LINUX_RPI_DEV_BRANCH ?= "rpi-4.10.y"
SRCREV = "${AUTOREV}"
@@ -12,3 +12,7 @@ require linux-raspberrypi.inc
# set by default in rpi-4.8.y and later branches so we need to provide it
# manually. This value unused if KERNEL_IMAGETYPE is not uImage.
KERNEL_EXTRA_ARGS += "LOADADDR=0x00008000"
+
+# Disable version check so that we don't have to edit this recipe every time
+# upstream bumps the version
+KERNEL_VERSION_SANITY_SKIP = "1"
|
tools: fix multi-byte character appearance in idf.py monitor | @@ -233,13 +233,11 @@ class RunTool:
ansi_escape = re.compile(r'\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])')
return ansi_escape.sub('', text)
- def prepare_for_print(out: bytes) -> str:
- # errors='ignore' is here because some chips produce some garbage bytes
- result = out.decode(errors='ignore')
+ def prepare_for_print(out: str) -> str:
if not output_stream.isatty():
# delete escape sequence if we printing in environments where ANSI coloring is disabled
- return delete_ansi_escape(result)
- return result
+ return delete_ansi_escape(out)
+ return out
def print_progression(output: str) -> None:
# Print a new line on top of the previous line
@@ -247,20 +245,40 @@ class RunTool:
print('\r', end='')
print(fit_text_in_terminal(output.strip('\n\r')), end='', file=output_stream)
+ async def read_stream() -> Optional[str]:
+ output_b = await input_stream.readline()
+ if not output_b:
+ return None
+ return output_b.decode(errors='ignore')
+
+ async def read_interactive_stream() -> Optional[str]:
+ buffer = b''
+ while True:
+ output_b = await input_stream.read(1)
+ if not output_b:
+ return None
try:
- with open(output_filename, 'w') as output_file:
+ return (buffer + output_b).decode()
+ except UnicodeDecodeError:
+ buffer += output_b
+ if len(buffer) > 4:
+ # Multi-byte character contain up to 4 bytes and if buffer have more then 4 bytes
+ # and still can not decode it we can just ignore some bytes
+ return buffer.decode(errors='ignore')
+
+ try:
+ with open(output_filename, 'w', encoding='utf8') as output_file:
while True:
if self.interactive:
- out = await input_stream.read(1)
+ output = await read_interactive_stream()
else:
- out = await input_stream.readline()
- if not out:
+ output = await read_stream()
+ if not output:
break
- output = prepare_for_print(out)
+ output = prepare_for_print(output)
output_file.write(output)
-
- # print output in progression way but only the progression related (that started with '[') and if verbose flag is not set
if self.force_progression and output[0] == '[' and '-v' not in self.args and output_stream.isatty():
+ # print output in progression way but only the progression related (that started with '[') and if verbose flag is not set
print_progression(output)
else:
output_stream.write(output)
|
Docs: Add additional info on enabling rotation | @@ -7087,10 +7087,14 @@ functioning. Feature highlights:
\textbf{Description}: Replaces the Apple EFI Graphics 2 protocol with a builtin
version.
- \emph{Note}: This protocol allows newer \texttt{EfiBoot} versions (at least 10.15)
+ \emph{Note 1}: This protocol allows newer \texttt{EfiBoot} versions (at least 10.15)
to expose screen rotation to macOS. Refer to \texttt{ForceDisplayRotationInEFI}
variable description on how to set screen rotation angle.
+ \emph{Note 2}: On systems without native
+ support for \texttt{ForceDisplayRotationInEFI}, \texttt{DirectGopRendering=true}
+ is also required for this setting to have a visible effect.
+
\item
\texttt{AppleFramebufferInfo}\\
\textbf{Type}: \texttt{plist\ boolean}\\
|
Fix collision group for new actors | @@ -845,21 +845,21 @@ const addActor: CaseReducer<
animSpeed: 3,
paletteId: "",
isPinned: false,
- collisionGroup: [],
+ collisionGroup: "",
script: [],
startScript: [],
updateScript: [],
hit1Script: [],
hit2Script: [],
hit3Script: [],
- },
+ } as Partial<Actor>,
action.payload.defaults || {},
{
id: action.payload.actorId,
x: clamp(action.payload.x, 0, scene.width - 2),
y: clamp(action.payload.y, 0, scene.height - 1),
}
- );
+ ) as Actor;
addActorToScene(state, scene, newActor, {});
};
|
reverse debug changes | @@ -3473,15 +3473,11 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code,
}
struct neat_he_candidate *candidate = calloc(1, sizeof(*candidate));
- if (!candidate) {
- nt_free_candidates(ctx, candidates);
+ if (!candidate)
return NEAT_ERROR_OUT_OF_MEMORY;
- }
-
candidate->pollable_socket = calloc(1, sizeof(struct neat_pollable_socket));
if (!candidate->pollable_socket) {
free(candidate);
- nt_free_candidates(ctx, candidates);
return NEAT_ERROR_OUT_OF_MEMORY;
}
@@ -3496,7 +3492,6 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code,
if (!candidate->if_name) {
free(candidate->pollable_socket);
free(candidate);
- nt_free_candidates(ctx, candidates);
return NEAT_ERROR_OUT_OF_MEMORY;
}
candidate->if_idx = result->if_idx;
@@ -3508,7 +3503,6 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code,
free(candidate->if_name);
free(candidate->pollable_socket);
free(candidate);
- nt_free_candidates(ctx, candidates);
return NEAT_ERROR_OUT_OF_MEMORY;
}
candidate->pollable_socket->dst_address = strdup(dst_buffer);
@@ -3517,7 +3511,6 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code,
free(candidate->if_name);
free(candidate->pollable_socket);
free(candidate);
- nt_free_candidates(ctx, candidates);
return NEAT_ERROR_OUT_OF_MEMORY;
}
candidate->pollable_socket->port = flow->port;
@@ -3574,7 +3567,6 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code,
candidate->pollable_socket->src_address = strdup(src_buffer);
if (!candidate->pollable_socket->src_address) {
free(candidate);
- nt_free_candidates(ctx, candidates);
return NEAT_ERROR_OUT_OF_MEMORY;
}
@@ -3588,7 +3580,6 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code,
free(candidate->if_name);
free(candidate->pollable_socket);
free(candidate);
- nt_free_candidates(ctx, candidates);
return NEAT_ERROR_OUT_OF_MEMORY;
}
candidate->pollable_socket->dst_len = result->dst_addr_len;
|
added warning message to ease plugging debugging
This message would have eased the debugging of the retransmission
plugins... | @@ -78,6 +78,9 @@ protoop_arg_t plugin_run_protoop(picoquic_cnx_t *cnx, protoop_id_t pid, int inpu
DBG_PLUGIN_PRINTF("Out %d: 0x%lx", i, outputv[i]);
}
#endif
+ } else if (outputc > 0) {
+ printf("WARNING: no output value provided for protocol operation with id 0x%x that returns %d additional outputs\n", pid, outputc);
+ printf("HINT: this is probably not what you want, so maybe check if you called the right protocol operation...\n");
}
/* ... and restore ALL the previous inputs and outputs */
|
Fix incorrect gettable OSSL_CIPHER_PARAM_TLS_MAC parameter | @@ -30,7 +30,6 @@ static const OSSL_PARAM cipher_known_gettable_params[] = {
OSSL_PARAM_int(OSSL_CIPHER_PARAM_CUSTOM_IV, NULL),
OSSL_PARAM_int(OSSL_CIPHER_PARAM_CTS, NULL),
OSSL_PARAM_int(OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK, NULL),
- { OSSL_CIPHER_PARAM_TLS_MAC, OSSL_PARAM_OCTET_PTR, NULL, 0, OSSL_PARAM_UNMODIFIED },
OSSL_PARAM_END
};
const OSSL_PARAM *ossl_cipher_generic_gettable_params(ossl_unused void *provctx)
@@ -92,6 +91,7 @@ int ossl_cipher_generic_get_params(OSSL_PARAM params[], unsigned int md,
}
CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_START(ossl_cipher_generic)
+{ OSSL_CIPHER_PARAM_TLS_MAC, OSSL_PARAM_OCTET_PTR, NULL, 0, OSSL_PARAM_UNMODIFIED },
CIPHER_DEFAULT_GETTABLE_CTX_PARAMS_END(ossl_cipher_generic)
CIPHER_DEFAULT_SETTABLE_CTX_PARAMS_START(ossl_cipher_generic)
|
set window width to 990 in vna.ui | <rect>
<x>0</x>
<y>0</y>
- <width>880</width>
+ <width>990</width>
<height>660</height>
</rect>
</property>
<property name="minimumSize">
<size>
- <width>880</width>
+ <width>990</width>
<height>660</height>
</size>
</property>
|
data integrity problem during write pipe operation.
the kernel does not provide IO pipe API that force sends data completeness in once invocation.
We need to evaluate whether should go on do IO after once return | @@ -398,8 +398,27 @@ size_t
url_execute_fwrite(void *ptr, size_t size, URL_FILE *file, CopyState pstate)
{
URL_EXECUTE_FILE *efile = (URL_EXECUTE_FILE *) file;
+ int fd = efile->handle->pipes[EXEC_DATA_P];
+ size_t offset = 0;
+ const char* p = (const char* ) ptr;
- return pipewrite(efile->handle->pipes[EXEC_DATA_P], ptr, size);
+ size_t n;
+ /* ensure all data in buffer is send out to pipe*/
+ while(size > offset)
+ {
+ n = pipewrite(fd,p,size - offset);
+
+ if(n == -1) return -1;
+
+ if(n == 0) break;
+
+ offset += n;
+ p = (const char*)ptr + offset;
+ }
+
+ if(offset < size) elog(WARNING,"partial write, expected %lu, written %lu", size, offset);
+
+ return offset;
}
/*
|
net/tcp: reprepare response buffer from unthrottle pool | @@ -118,7 +118,7 @@ uint16_t tcp_callback(FAR struct net_driver_s *dev,
/* Prepare device buffer */
- if (dev->d_iob == NULL && netdev_iob_prepare(dev, true, 0) != OK)
+ if (dev->d_iob == NULL && netdev_iob_prepare(dev, false, 0) != OK)
{
return 0;
}
@@ -190,7 +190,7 @@ uint16_t tcp_callback(FAR struct net_driver_s *dev,
if (dev->d_iob == NULL)
{
- netdev_iob_prepare(dev, true, 0);
+ netdev_iob_prepare(dev, false, 0);
}
return flags;
|
Have SCons set the number of jobs automatically. | @@ -161,6 +161,10 @@ def get_libtcod_version():
return re.match(r'.*#define TCOD_STRVERSION "([^"]+)"',
changelog.read(), re.DOTALL).groups()[0]
+try:
+ SetOption('num_jobs', os.cpu_count() or 1)
+except AttributeError:
+ pass
LIBTCOD_ROOT_DIR = '../..'
|
Add RaptureShellModule | using FFXIVClientStructs.Common;
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
+using FFXIVClientStructs.FFXIV.Client.UI.Shell;
namespace FFXIVClientStructs.FFXIV.Client.UI
{
@@ -35,6 +36,9 @@ namespace FFXIVClientStructs.FFXIV.Client.UI
[VirtualFunction(7)]
public partial RaptureAtkModule* GetRaptureAtkModule();
+ [VirtualFunction(9)]
+ public partial RaptureShellModule* GetRaptureShellModule();
+
[VirtualFunction(10)]
public partial PronounModule* GetPronounModule();
|
Allow Boost in mds | @@ -78,6 +78,8 @@ ALLOW market/indexer -> contrib/libs/boost
ALLOW market/indexer -> contrib/deprecated/boost
ALLOW maps -> contrib/libs/boost
ALLOW maps -> contrib/deprecated/boost
+ALLOW mds -> contrib/libs/boost
+ALLOW mds -> contrib/deprecated/boost
ALLOW metrika -> contrib/libs/boost
ALLOW metrika -> contrib/deprecated/boost
ALLOW netsys/tiles-vcdiff/gen-tiles -> contrib/libs/boost
|
OcCpuLib: Added iMac19,1 (i5 8600), thx AppleLife and | @@ -522,8 +522,10 @@ DetectAppleProcessorType (
if (AppleMajorType == AppleProcessorMajorI5) {
// Kaby has 0x9 stepping, and Coffee use 0xA / 0xB stepping.
if (Stepping == 9) {
- // IM181 (i5-7360U), IM182 (i5-7400), IM183 (i5-7600)
+ // IM181 (i5-7360U), IM182 (i5-7400), IM183 (i5-7600), IM191 (i5-8600) [NOTE 1]
// MBP141 (i5-7360U), MBP142 (i5-7267U)
+ //
+ // NOTE 1: IM191 is Coffee and thus 0x0609 will be used, TODO.
return AppleProcessorTypeCorei5Type5; // 0x0605
}
// MM81 (i5-8500B)
|
Allow Too Big IP in Raw Parsing | @@ -623,7 +623,7 @@ CxPlatDpRawParseIPv4(
uint16_t IPTotalLength;
IPTotalLength = CxPlatByteSwapUint16(IP->TotalLength);
- if (Length != IPTotalLength) {
+ if (Length < IPTotalLength) {
QuicTraceEvent(
DatapathErrorStatus,
"[data][%p] ERROR, %u, %s.",
@@ -674,7 +674,7 @@ CxPlatDpRawParseIPv6(
if (IP->NextHeader == IPPROTO_UDP) {
uint16_t IPPayloadLength;
IPPayloadLength = CxPlatByteSwapUint16(IP->PayloadLength);
- if (IPPayloadLength != Length - sizeof(IPV6_HEADER)) {
+ if (IPPayloadLength + sizeof(IPV6_HEADER) > Length) {
QuicTraceEvent(
DatapathErrorStatus,
"[data][%p] ERROR, %u, %s.",
|
Remove unused NGTCP2_ACKTR_FLAG_ACK_FINISHED_ACK | @@ -93,10 +93,6 @@ typedef struct ngtcp2_acktr_ack_entry {
/* NGTCP2_ACKTR_FLAG_ACTIVE_ACK indicates that there are pending
protected packet to be acknowledged. */
#define NGTCP2_ACKTR_FLAG_ACTIVE_ACK 0x02
-/* NGTCP2_ACKTR_FLAG_ACK_FINISHED_ACK is set when server received
- acknowledgement for ACK which acknowledges the last handshake
- packet from client (which contains TLSv1.3 Finished message). */
-#define NGTCP2_ACKTR_FLAG_ACK_FINISHED_ACK 0x80
/* NGTCP2_ACKTR_FLAG_CANCEL_TIMER is set when ACK delay timer is
expired and canceled. */
#define NGTCP2_ACKTR_FLAG_CANCEL_TIMER 0x0100
|
logging: flush after each write | @@ -134,7 +134,6 @@ void Logger::writeToFile(){
auto& logArray = logger->get_log_data();
if (output_file && !logArray.empty()){
- printf("%f\n", logArray.back().frametime);
output_file << logArray.back().fps << ",";
output_file << logArray.back().frametime << ",";
output_file << logArray.back().cpu_load << ",";
@@ -147,6 +146,7 @@ void Logger::writeToFile(){
output_file << logArray.back().gpu_power << ",";
output_file << logArray.back().ram_used << ",";
output_file << std::chrono::duration_cast<std::chrono::nanoseconds>(logArray.back().previous).count() << "\n";
+ output_file.flush();
} else {
printf("MANGOHUD: Failed to write log file\n");
}
|
Inserted example images to MicroPython doc
Inserted in-line images explaining MicroPython functions to the documentation | @@ -148,6 +148,8 @@ Draws a rectangle filled with the current pen colour to the buffer. The `x` and
picodisplay.rectangle(x, y, w, h)
```
+
+
### circle
Draws a circle filled with the current pen colour to the buffer. The `x` and `y` parameters specify the centre of the circle, `r` specifies the radius in pixels.
@@ -156,6 +158,8 @@ Draws a circle filled with the current pen colour to the buffer. The `x` and `y
picodisplay.rectangle(x, y, w, h)
```
+
+
### character
Draws a single character to the display buffer in the current pen colour. The `c` parameter should be the ASCII numerical representation of the character to be printed, `x` and `y` describe the top-left corner of the character's drawing field. The `character` function can also be given an optional 4th parameter, `scale`, describing the scale of the character to be drawn. Default value is 2.
@@ -175,6 +179,8 @@ picodisplay.text(string, x, y, wrap)
picodisplay.text(string, x, y, wrap, scale)
```
+
+
### set_clip
This function defines a rectangular area outside which no drawing actions will take effect. If a drawing action crosses the boundary of the clip then only the pixels inside the clip will be drawn. Note that `clip` does not remove pixels which have already been drawn, it only prevents new pixels being drawn outside the described area. A more visual description of the function of clips can be found below. Only one clip can be active at a time, and defining a new clip replaces any previous clips. The `x` and `y` parameters describe the upper-left corner of the clip area, `w` and `h` describe the width and height in pixels.
@@ -183,6 +189,8 @@ This function defines a rectangular area outside which no drawing actions will t
picodisplay.set_clip(x, y, w, h)
```
+
+
### remove_clip
This function removes any currently implemented clip.
|
actually smaller buffers to begin works better for small inputs | */
#include "all.h"
-#define JAM_NONE 0
-#define JAM_HEAD 1
-#define JAM_TAIL 2
-
typedef struct {
c3_w a_w;
c3_w b_w;
@@ -80,8 +76,8 @@ _jam_buf_top(u3_noun a)
c3_o cel_o;
c3_w* sal_w, len_w;
- buf_u.a_w = 14930352; // fib(36) # of bits starting in wor_w
- buf_u.b_w = 9227465; // fib(35)
+ buf_u.a_w = 144; // fib(12) is small enough to be reasonably fast to allocate.
+ buf_u.b_w = 89; // fib(11) is needed to get fib(13).
len_w = buf_u.a_w >> 5;
if ( (len_w << 5) != buf_u.a_w ) {
++len_w;
@@ -139,7 +135,7 @@ _jam_buf_top(u3_noun a)
++len_w;
}
sal_w = u3a_slab(len_w);
- memcpy(sal_w, buf_u.wor_w, len_w<<2);
+ memcpy(sal_w, buf_u.wor_w, len_w*sizeof(c3_w));
u3a_free(buf_u.wor_w);
u3h_free(har_p);
return u3a_mint(sal_w, len_w);
|
Fix compileShader; | @@ -1162,13 +1162,9 @@ static int l_lovrGraphicsCompileShader(lua_State* L) {
ShaderStage stage = luax_checkenum(L, 1, ShaderStage, NULL);
bool allocated;
ShaderSource spirv = luax_checkshadersource(L, 2, stage, &allocated);
- if (!allocated) {
- lua_settop(L, 2);
- return 1;
- } else {
Blob* blob = lovrBlobCreate((void*) spirv.code, spirv.size, "Compiled Shader Code");
luax_pushtype(L, Blob, blob);
- }
+ lovrRelease(blob, lovrBlobDestroy);
return 1;
}
|
bugid:20235446:disable aos xz function to use custom | EXTRA_POST_BUILD_TARGETS += gen_standard_images
-
+CUSTOM_OTA := 1
gen_standard_images:
$(PYTHON) platform/mcu/asr5501mk/ota.py $(BIN_OUTPUT_FILE)
$(PYTHON) $(SCRIPTS_PATH)/ota_gen_md5_bin.py $(OTA_BIN_OUTPUT_FILE) -m $(IMAGE_MAGIC)
\ No newline at end of file
|
Use constants rather than replacements when possible in test.c.
Some of the replacements that were being done already existed as constants, so use the constants instead.
Also fix a minor formatting error introduced when testAdd() was renamed to hrnAdd(). | @@ -192,13 +192,13 @@ main(int argListSize, const char *argList[])
// Set globals
hrnInit(
argList[0], // Test exe
- "{[C_TEST_PROJECT_EXE]}", // Project exe
- {[C_TEST_CONTAINER]}, // Is this test running in a container?
+ TEST_PROJECT_EXE, // Project exe
+ TEST_IN_CONTAINER, // Is this test running in a container?
{[C_TEST_IDX]}, // The 0-based index of this test
{[C_TEST_TIMING]}, // Is timing enabled (may be disabled for reproducible documentation)
- "{[C_TEST_PATH]}", // Path where tests write data
- "{[C_HRN_PATH]}", // Path where the harness stores temp files (expect, diff, etc.)
- "{[C_HRN_PATH_REPO]}"); // Path with a copy of the repository
+ TEST_PATH, // Path where tests write data
+ HRN_PATH, // Path where the harness stores temp files (expect, diff, etc.)
+ HRN_PATH_REPO); // Path with a copy of the repository
// Set default test log level
#ifdef HRN_FEATURE_LOG
|
pg_validatebackup: Adjust TAP tests to undo permissions change.
It may be necessary to go further and remove this test altogether,
but I'm going to try this fix first. It's not clear, at least to
me, exactly how this is breaking buildfarm members, but it appears
to be doing so. | @@ -80,6 +80,7 @@ my @scenario = (
{
'name' => 'open_directory_fails',
'mutilate' => \&mutilate_open_directory_fails,
+ 'cleanup' => \&cleanup_open_directory_fails,
'fails_like' => qr/could not open directory/,
'skip_on_windows' => 1
},
@@ -245,6 +246,15 @@ sub mutilate_open_directory_fails
return;
}
+# restore permissions on the unreadable directory we created.
+sub cleanup_open_directory_fails
+{
+ my ($backup_path) = @_;
+ my $pathname = "$backup_path/pg_subtrans";
+ chmod(0700, $pathname) || die "chmod $pathname: $!";
+ return;
+}
+
# Create a directory that can't be searched. (This is skipped on Windows.)
sub mutilate_search_directory_fails
{
|
ixfr-out, review fix, add const in ixfr_write_rr_pkt. | @@ -44,7 +44,7 @@ struct rrcompress_entry {
/* rbtree node, key is this struct */
struct rbnode node;
/* the uncompressed domain name */
- uint8_t* dname;
+ const uint8_t* dname;
/* the length of the dname, includes terminating 0 label */
uint16_t len;
/* the offset of the dname in the packet */
@@ -125,7 +125,7 @@ static void* pktcompression_alloc(struct pktcompression* pcomp, size_t s)
/* find a pktcompression name, return offset if found */
static uint16_t pktcompression_find(struct pktcompression* pcomp,
- uint8_t* dname, size_t len)
+ const uint8_t* dname, size_t len)
{
struct rrcompress_entry key, *found;
key.node.key = &key;
@@ -138,8 +138,8 @@ static uint16_t pktcompression_find(struct pktcompression* pcomp,
/* insert a new domain name into the compression tree.
* it fails silently, no need to compress then. */
-static void pktcompression_insert(struct pktcompression* pcomp, uint8_t* dname,
- size_t len, uint16_t offset)
+static void pktcompression_insert(struct pktcompression* pcomp,
+ const uint8_t* dname, size_t len, uint16_t offset)
{
struct rrcompress_entry* entry;
if(len > 65535)
@@ -185,7 +185,7 @@ static void pktcompression_insert_with_labels(struct pktcompression* pcomp,
}
/* calculate length of dname in uncompressed wireformat in buffer */
-static size_t dname_length(uint8_t* buf, size_t len)
+static size_t dname_length(const uint8_t* buf, size_t len)
{
size_t l = 0;
if(!buf || len == 0)
@@ -211,7 +211,7 @@ static size_t dname_length(uint8_t* buf, size_t len)
/* write a compressed domain name into the packet,
* returns uncompressed wireformat length */
static size_t pktcompression_write_dname(struct buffer* packet,
- struct pktcompression* pcomp, uint8_t* rr, size_t rrlen)
+ struct pktcompression* pcomp, const uint8_t* rr, size_t rrlen)
{
size_t wirelen = 0;
size_t dname_len = dname_length(rr, rrlen);
@@ -260,7 +260,7 @@ static size_t pktcompression_write_dname(struct buffer* packet,
/* write an RR into the packet with compression for domain names,
* return 0 and resets position if it does not fit in the packet. */
static int ixfr_write_rr_pkt(struct query* query, struct buffer* packet,
- struct pktcompression* pcomp, uint8_t* rr, size_t rrlen)
+ struct pktcompression* pcomp, const uint8_t* rr, size_t rrlen)
{
size_t oldpos = buffer_position(packet);
size_t rdpos;
|
get rid of printing bug error
this error is given since the last commit =>
also meant to take care of => | @@ -697,7 +697,7 @@ static int seq_mrhook(t_mifiread *mr, void *hookdata, int evtype)
sev->e_delta = scoretime;
sev->e_bytes[0] = status | mifiread_getchannel(mr);
sev->e_bytes[1] = mifiread_getdata1(mr);
- if (MIFI_ONEDATABYTE(status))
+ if (MIFI_ONEDATABYTE(status) || evtype == 0x2f)
sev->e_bytes[2] = SEQ_EOM;
else
{
|
fix incorrect TLS warning | @@ -189,7 +189,7 @@ handshake(struct neat_ctx *ctx,
int err = SSL_do_handshake(private->ssl);
if (err == 1) {
- nt_log(ctx, NEAT_LOG_WARNING, "%s - handshake failed", __func__);
+ nt_log(ctx, NEAT_LOG_INFO, "%s - handshake successfull", __func__);
return NEAT_OK;
}
|
configs/rtl8721cms/loadable_apps : Enable SE and Disable Dcache
Enable Ameba SE and Disable Dcache | @@ -106,8 +106,7 @@ CONFIG_ARMV8M_HAVE_DCACHE=y
CONFIG_ARMV8M_USEBASEPRI=y
CONFIG_ARMV8M_TRUSTZONE=y
CONFIG_ARMV8M_ICACHE=y
-CONFIG_ARMV8M_DCACHE=y
-# CONFIG_ARMV8M_DCACHE_WRITETHROUGH is not set
+# CONFIG_ARMV8M_DCACHE is not set
# CONFIG_ARMV8M_HAVE_ITCM is not set
# CONFIG_ARMV8M_HAVE_DTCM is not set
# CONFIG_ARMV8M_TOOLCHAIN_BUILDROOT is not set
@@ -256,7 +255,21 @@ CONFIG_FLASH_PART_NAME="km0_bl,km4_bl,kernel,kernel,userfs,"
#
# SE Selection
#
-# CONFIG_SE is not set
+CONFIG_SE=y
+# CONFIG_DEBUG_SECURE_ELEMENT_ERROR is not set
+# CONFIG_DEBUG_SECURE_ELEMENT_INFO is not set
+# CONFIG_SE_SSS is not set
+# CONFIG_SE_KONAI is not set
+# CONFIG_SE_VIRTUAL is not set
+CONFIG_SE_AMEBA=y
+CONFIG_HW_RNG=y
+CONFIG_HW_DH_PARAM=y
+CONFIG_HW_ECDH_PARAM=y
+CONFIG_HW_RSA_VERIFICATION=y
+CONFIG_HW_ECDSA_VERIFICATION=y
+CONFIG_HW_RSA_ENC=y
+CONFIG_HW_SE_STORAGE=y
+CONFIG_SE_SECURE_CONTEXT_SIZE=4096
#
# Crypto Module
@@ -533,7 +546,8 @@ CONFIG_UART2_2STOP=0
#
CONFIG_DRIVERS_WIRELESS=y
# CONFIG_OTP is not set
-# CONFIG_SECURITY_LINK_DRV is not set
+CONFIG_SECURITY_LINK_DRV=y
+CONFIG_SECURITY_LINK=y
#
# Networking Support
@@ -763,8 +777,19 @@ CONFIG_LWIP_DHCPS_MAX_STATION_NUM=8
# CONFIG_NETUTILS_SMTP is not set
# CONFIG_NETUTILS_MQTT is not set
CONFIG_NET_SECURITY_TLS=y
+CONFIG_TLS_WITH_HW_ACCEL=y
CONFIG_TLS_MPI_MAX_SIZE=512
+#
+# HW Options
+#
+# CONFIG_TLS_HW_RNG is not set
+# CONFIG_TLS_HW_DH_PARAM is not set
+# CONFIG_TLS_HW_ECDH_PARAM is not set
+# CONFIG_TLS_HW_RSA_VERIFICATION is not set
+# CONFIG_TLS_HW_ECDSA_VERIFICATION is not set
+# CONFIG_TLS_HW_RSA_ENC is not set
+
#
# Wireless
#
@@ -1179,6 +1204,7 @@ CONFIG_EXAMPLES_MPU_TEST=y
# CONFIG_EXAMPLES_RDP is not set
# CONFIG_EXAMPLES_RSSI_REPORT is not set
# CONFIG_EXAMPLES_SECURITY_API_TEST is not set
+# CONFIG_EXAMPLES_SECURITY_SEE_TEST is not set
# CONFIG_EXAMPLES_MBEDTLS_SELF_TEST is not set
# CONFIG_EXAMPLES_SELECT_TEST is not set
# CONFIG_EXAMPLES_SENSORBOARD is not set
|
sse2: added NEON impl for mm_cvtsd_f64 | @@ -2352,8 +2352,12 @@ simde_mm_cvtsd_f64 (simde__m128d a) {
return _mm_cvtsd_f64(a);
#else
simde__m128d_private a_ = simde__m128d_to_private(a);
+ #if defined(SIMDE_ARM_NEON_A64V8_NATIVE)
+ return HEDLEY_STATIC_CAST(simde_float64, vgetq_lane_f64(a_.neon_f64, 0));
+ #else
return a_.f64[0];
#endif
+ #endif
}
#if defined(SIMDE_X86_SSE2_ENABLE_NATIVE_ALIASES)
#define _mm_cvtsd_f64(a) simde_mm_cvtsd_f64(a)
@@ -4135,7 +4139,7 @@ simde_mm_mul_su32 (simde__m64 a, simde__m64 b) {
b_ = simde__m64_to_private(b);
#if defined(SIMDE_ARM_NEON_A32V7_NATIVE)
- r_.u64[0] = vreinterpret_s64_u64(vget_low_u64(vmull_u32(vreinterpret_u32_s64(a), vreinterpret_u32_s64(b))));
+ r_.u64[0] = vget_lane_u64(vget_low_u64(vmull_u32(vreinterpret_u32_s64(a_.neon_i64), vreinterpret_u32_s64(b_.neon_i64))), 0);
#else
r_.u64[0] = HEDLEY_STATIC_CAST(uint64_t, a_.u32[0]) * HEDLEY_STATIC_CAST(uint64_t, b_.u32[0]);
#endif
|
Docs: uppercase filename reference | @@ -76,8 +76,7 @@ ALTER SYSTEM RESET ALL</codeblock>
</p>
</section>
<section id="section8"><title>See Also</title>
- <p><codeph><xref
- href="./set.xml#topic1" type="topic" format="dita"/></codeph>, <codeph><xref
- href="./show.xml#topic1" type="topic" format="dita"/></codeph></p></section>
+ <p><codeph><xref href="./SET.xml#topic1" type="topic" format="dita"/></codeph>, <codeph><xref
+ href="./SHOW.xml#topic1" type="topic" format="dita"/></codeph></p></section>
</body>
</topic>
|
Build nanos with MEMDEBUG mcache actually enabled | @@ -45,7 +45,7 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get install nasm qemu-system-x86 ent ruby rustc
- run: cd .. && git clone [email protected]:nanovms/ops.git
- - run: make
+ - run: make MEMDEBUG=mcache
- run: curl https://ops.city/get.sh -sSfL | sh
- run:
command: |
|
Use LEQUAL depth test when drawing text; | @@ -119,8 +119,14 @@ void lovrFontPrint(Font* font, const char* str) {
str += bytes;
}
+ // Set depth test to LEQUAL to prevent blending issues with glyphs, not great
+ CompareMode oldCompareMode = lovrGraphicsGetDepthTest();
+ lovrGraphicsSetDepthTest(COMPARE_LEQUAL);
+
lovrGraphicsSetShapeData(font->vertices.data, font->vertices.length);
lovrGraphicsDrawPrimitive(GL_TRIANGLES, font->texture, 0, 1, 0);
+
+ lovrGraphicsSetDepthTest(oldCompareMode);
}
int lovrFontGetHeight(Font* font) {
|
board/osiris/board.h: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | #define GPIO_SYS_RESET_L GPIO_SYS_RST_ODL
#define GPIO_WP_L GPIO_EC_WP_ODL
-
/* I2C Bus Configuration */
#define I2C_PORT_RGBKB NPCX_I2C_PORT0_0
@@ -166,10 +165,7 @@ enum temp_sensor_id {
TEMP_SENSOR_COUNT
};
-enum battery_type {
- BATTERY_COSMX_AP22ABN,
- BATTERY_TYPE_COUNT
-};
+enum battery_type { BATTERY_COSMX_AP22ABN, BATTERY_TYPE_COUNT };
enum pwm_channel {
PWM_CH_FAN = 0, /* PWM5 */
@@ -177,17 +173,9 @@ enum pwm_channel {
PWM_CH_COUNT
};
-enum fan_channel {
- FAN_CH_0 = 0,
- FAN_CH_1,
- FAN_CH_COUNT
-};
+enum fan_channel { FAN_CH_0 = 0, FAN_CH_1, FAN_CH_COUNT };
-enum mft_channel {
- MFT_CH_0 = 0,
- MFT_CH_1,
- MFT_CH_COUNT
-};
+enum mft_channel { MFT_CH_0 = 0, MFT_CH_1, MFT_CH_COUNT };
#ifdef CONFIG_KEYBOARD_FACTORY_TEST
extern const int keyboard_factory_scan_pins[][2];
|
Add feature tests for gnutls-next
Test NO_TICKETS and DISABLE_TLS13_COMPAT_MODE | @@ -405,6 +405,44 @@ requires_gnutls_tls1_3() {
fi
}
+# check %NO_TICKETS option
+requires_gnutls_next_no_ticket() {
+ requires_gnutls_next
+ if [ "$GNUTLS_NEXT_AVAILABLE" = "NO" ]; then
+ GNUTLS_NO_TICKETS_AVAILABLE="NO"
+ fi
+ if [ -z "${GNUTLS_NO_TICKETS_AVAILABLE:-}" ]; then
+ if $GNUTLS_NEXT_CLI --priority-list 2>&1 | grep NO_TICKETS >/dev/null
+ then
+ GNUTLS_NO_TICKETS_AVAILABLE="YES"
+ else
+ GNUTLS_NO_TICKETS_AVAILABLE="NO"
+ fi
+ fi
+ if [ "$GNUTLS_NO_TICKETS_AVAILABLE" = "NO" ]; then
+ SKIP_NEXT="YES"
+ fi
+}
+
+# check %%DISABLE_TLS13_COMPAT_MODE option
+requires_gnutls_next_disable_tls13_compat() {
+ requires_gnutls_next
+ if [ "$GNUTLS_NEXT_AVAILABLE" = "NO" ]; then
+ GNUTLS_DISABLE_TLS13_COMPAT_MODE_AVAILABLE="NO"
+ fi
+ if [ -z "${GNUTLS_DISABLE_TLS13_COMPAT_MODE_AVAILABLE:-}" ]; then
+ if $GNUTLS_NEXT_CLI --priority-list 2>&1 | grep DISABLE_TLS13_COMPAT_MODE >/dev/null
+ then
+ GNUTLS_DISABLE_TLS13_COMPAT_MODE_AVAILABLE="YES"
+ else
+ GNUTLS_DISABLE_TLS13_COMPAT_MODE_AVAILABLE="NO"
+ fi
+ fi
+ if [ "$GNUTLS_DISABLE_TLS13_COMPAT_MODE_AVAILABLE" = "NO" ]; then
+ SKIP_NEXT="YES"
+ fi
+}
+
# skip next test if IPv6 isn't available on this host
requires_ipv6() {
if [ -z "${HAS_IPV6:-}" ]; then
@@ -8589,11 +8627,13 @@ run_test "TLS1.3: Test openssl tls1_3 feature" \
-c "TLS 1.3" \
-s "TLS 1.3"
-# gnutls feature tests: check if tls1.3 exists.
+# gnutls feature tests: check if tls1.3,NO_TICKETS and DISABLE_TLS13_COMPAT_MODE exist.
requires_gnutls_tls1_3
+requires_gnutls_next_no_ticket
+requires_gnutls_next_disable_tls13_compat
run_test "TLS1.3: Test gnutls tls1_3 feature" \
- "$G_NEXT_SRV --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3" \
- "$G_NEXT_CLI localhost --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3 -V" \
+ "$G_NEXT_SRV --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:%NO_TICKETS:%DISABLE_TLS13_COMPAT_MODE" \
+ "$G_NEXT_CLI localhost --priority=NORMAL:-VERS-ALL:+VERS-TLS1.3:%NO_TICKETS:%DISABLE_TLS13_COMPAT_MODE -V" \
0 \
-s "Version: TLS1.3" \
-c "Version: TLS1.3"
|
Add _CBOR_UNUSED for MSVC | @@ -67,6 +67,8 @@ static const uint8_t cbor_patch_version = CBOR_PATCH_VERSION;
#ifdef __GNUC__
#define _CBOR_UNUSED(x) __attribute__((__unused__)) x
+#elif defined(_MSC_VER)
+#define _CBOR_UNUSED(x) __pragma(warning(suppress : 4100 4101)) x
#else
#define _CBOR_UNUSED(x) x
#endif
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.