message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
amdgpu: changed clocks to average | @@ -161,8 +161,8 @@ void amdgpu_metrics_polling_thread() {
UPDATE_METRIC_AVERAGE(average_gfx_power_w);
UPDATE_METRIC_AVERAGE(average_cpu_power_w);
- UPDATE_METRIC_LAST(current_gfxclk_mhz);
- UPDATE_METRIC_LAST(current_uclk_mhz);
+ UPDATE_METRIC_AVERAGE(current_gfxclk_mhz);
+ UPDATE_METRIC_AVERAGE(current_uclk_mhz);
UPD... |
TSCH: improve the readability of add_link and remove_link messages | @@ -171,6 +171,45 @@ tsch_schedule_get_link_by_handle(uint16_t handle)
return NULL;
}
/*---------------------------------------------------------------------------*/
+static const char *
+print_link_options(uint16_t link_options)
+{
+ static char buffer[20];
+ unsigned length;
+
+ buffer[0] = '\0';
+ if(link_options & ... |
Comment scripts in windows tests. | @@ -70,11 +70,10 @@ function sub-build {
# Copy scripts and node_module for test
$nmPath = ".\source\loaders\node_loader\bootstrap\node_modules"
- $scriptsPath = ".\scripts"
+ # $scriptsPath = ".\scripts"
robocopy /e "$nmPath" ".\$BUILD_TYPE\node_modules" /NFL /NDL /NJH /NJS /NC /NS /NP
- robocopy /e "$scriptsPath" ".\... |
Documentation of bufr_filter | @@ -130,17 +130,17 @@ echo "\\endverbatim\\n"
echo "-# The <b>switch</b> statement is an enhanced version of the if statement. Its syntax is the following:"
echo "\\verbatim"
-echo "switch (key1,key2,...,keyn) {"
-echo " case val11,val12,...,val1n:"
-echo " # block of rules;"
-echo " case val21,val22,...,val2n:"
-echo ... |
Fix module tab verification status text | @@ -662,7 +662,7 @@ BOOLEAN NTAPI PhpModuleTreeNewCallback(
switch (getCellText->Id)
{
case PHMOTLC_NAME:
- getCellText->Text = moduleItem->Name->sr;
+ getCellText->Text = PhGetStringRef(moduleItem->Name);
break;
case PHMOTLC_BASEADDRESS:
PhInitializeStringRefLongHint(&getCellText->Text, moduleItem->BaseAddressString);... |
BugID:23703248: Update existence check for project directory | @@ -308,8 +308,12 @@ def cli(projectname, board, projectdir, templateapp):
destdir = os.path.join(projectdir, projectname)
destdir = os.path.abspath(destdir)
- if os.path.isdir(destdir):
+ if os.path.exists(destdir):
+ if os.path.isfile(destdir):
+ click.echo("[Error] Can't create project directory, the file is existin... |
Preload webpack entry | @@ -17,7 +17,10 @@ import copy from "./lib/helpers/fsCopy";
import rimraf from "rimraf";
import { promisify } from "util";
+declare var MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY: any;
declare var MAIN_WINDOW_WEBPACK_ENTRY: any;
+
+declare var SPLASH_WINDOW_PRELOAD_WEBPACK_ENTRY: any;
declare var SPLASH_WINDOW_WEBPACK_ENTRY: an... |
mmapstorage: add opmphmIsBuild | @@ -1037,7 +1037,7 @@ static void copyKeySetToMmap (char * const dest, KeySet * keySet, KeySet * globa
static void mmapOpmphmDel (Opmphm * opmphm)
{
ELEKTRA_NOT_NULL (opmphm);
- if (opmphmIsBuild (opmphm))
+ if (opmphm && opmphm->size)
{
if (!test_bit (opmphm->flags, OPMPHM_FLAG_MMAP_GRAPH)) elektraFree (opmphm->graph)... |
Fix update date on Raspbian (2)
fromMSecsSinceEpoch() isn't available in older Qt versions. | @@ -80,7 +80,7 @@ void DeRestPluginPrivate::initConfig()
gwName = GW_DEFAULT_NAME;
gwUpdateVersion = GW_SW_VERSION; // will be replaced by discovery handler
{
- const QDateTime d = QDateTime::fromSecsSinceEpoch(GW_SW_DATE);
+ const QDateTime d = QDateTime::fromMSecsSinceEpoch(GW_SW_DATE * 1000LLU);
gwUpdateDate = d.toS... |
djgpp: Fix unused-but-set-variable warning
I chose to just hide this behind '#ifndef __DJGPP__', instead of listing
all the macro combinations where it *is* used. That would make quite a
mess. | @@ -527,7 +527,10 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr)
long ret = 1;
int *ip;
bio_dgram_data *data = NULL;
+# ifndef __DJGPP__
+ /* There are currently no cases where this is used on djgpp/watt32. */
int sockopt_val = 0;
+# endif
int d_errno;
# if defined(OPENSSL_SYS_LINUX) && (defined(IP_MTU... |
board/felwinter/led.c: Format with clang-format
BRANCH=none
TEST=none | @@ -19,25 +19,33 @@ __override const int led_charge_lvl_2 = 94;
__override struct led_descriptor
led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = {
- [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} },
- [STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} },
- [STATE_CHARGING_FULL_CHARGE] ... |
Actions: CMake
Build on various os versions | -name: C/C++ CI
+name: Build
on: [push, pull_request]
jobs:
- build:
+ linux:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [macos-latest, ubuntu-16.04]
+ os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
+ fail-fast: false
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@... |
Display deprecation messages in GCC. | #define TCOD_DEPRECATED(msg) __declspec(deprecated(msg))
#define TCOD_DEPRECATED_NOMESSAGE __declspec(deprecated)
#elif defined(__GNUC__)
-#define TCOD_DEPRECATED(msg) __attribute__ ((deprecated))
+#define TCOD_DEPRECATED(msg) __attribute__ ((deprecated(msg)))
#define TCOD_DEPRECATED_NOMESSAGE __attribute__ ((deprecate... |
Genesis: LED PWM channels' IO type change to push-pull
Remove open-drain flags in led pwm ch.0 and ch.2
BRANCH=puff
TEST=none | @@ -128,12 +128,10 @@ const struct pwm_t pwm_channels[] = {
.flags = PWM_CONFIG_OPEN_DRAIN,
.freq = 25000},
[PWM_CH_LED_RED] = { .channel = 0,
- .flags = PWM_CONFIG_OPEN_DRAIN |
- PWM_CONFIG_DSLEEP,
+ .flags = PWM_CONFIG_DSLEEP,
.freq = 2000 },
[PWM_CH_LED_WHITE] = { .channel = 2,
- .flags = PWM_CONFIG_OPEN_DRAIN |
- P... |
NAT44: allow to configure one interface only as output or input feature
following is not possible:
set interface nat44 out GigabitEthernet0/3/0 output-feature
set interface nat44 out GigabitEthernet0/3/0 | @@ -1428,6 +1428,12 @@ int snat_interface_add_del (u32 sw_if_index, u8 is_inside, int is_del)
if (sm->out2in_dpo && !is_inside)
return VNET_API_ERROR_UNSUPPORTED;
+ pool_foreach (i, sm->output_feature_interfaces,
+ ({
+ if (i->sw_if_index == sw_if_index)
+ return VNET_API_ERROR_VALUE_EXIST;
+ }));
+
if (sm->static_mapp... |
sysdeps/managarm: Stub sys_clock_getres | @@ -71,5 +71,13 @@ int sys_clock_get(int clock, time_t *secs, long *nanos) {
return 0;
}
+int sys_clock_getres(int clock, time_t *secs, long *nanos) {
+ (void)clock;
+ (void)secs;
+ (void)nanos;
+ mlibc::infoLogger() << "mlibc: clock_getres is a stub" << frg::endlog;
+ return 0;
+}
+
} //namespace mlibc
|
removed logo, that didn't work. | [](LICENSE.md)
[](https://bestpractices.coreinfrastructure.org/projects/2799)
- 
.pressed = true};
zmk_handle_key(non_mod_event);
+ // A small sleep is needed to ensure device layer sends initial
+ // key, before we send the release.
+ k_msleep(10);
non_mod_event.pressed = false;
zmk_handle_key(non_mod_even... |
remove redundant condition *format = % which should never happen | @@ -274,20 +274,18 @@ parse_path_specifier(char * format, struct extractor_specifier *es,
ASSERT_S(next_path_idx < N_PATH_MAX, "Too many path specifiers");
char *start = format;
- do {
- ++format;
- } while (*format && *format != ']' && *format != '%');
+ for (;*format && *format != ']'; format++)
+ continue; // until ... |
Initialize allocators when thread local is empty | @@ -200,7 +200,6 @@ OE_EXPORT volatile uint64_t _tdata_align = 1;
OE_EXPORT volatile uint64_t _tbss_size = 0;
OE_EXPORT volatile uint64_t _tbss_align = 1;
-// Number of thread-local relocations.
static volatile bool _thread_locals_relocated = false;
// TODO: Make this flexible in case more than one page of thread local... |
Use `ccaInfo.ccaState` to decide whether CCA is complete
This commit changes the logic of `get_cca_info()` in the CC26xx IEEE mode driver. We now use the command's return status bits to determine whether the radio's CCA monitoring function has concluded, instead of drawing conclusions based on RSSI readings. | @@ -359,13 +359,12 @@ transmitting(void)
* It is the caller's responsibility to make sure the RF is on. This function
* will return RF_GET_CCA_INFO_ERROR if the RF is off
*
- * This function will in fact wait for a valid RSSI signal
+ * This function will in fact wait for a valid CCA state
*/
static uint8_t
get_cca_inf... |
BugID:16959715: fix call aos_kv_set error | @@ -179,7 +179,7 @@ static void write_lora_dev(lora_dev_t *lora_dev)
{
lora_dev->crc = crc16((uint8_t *)lora_dev, sizeof(lora_dev_t) - 2);
#ifdef AOS_KV
- aos_kv_set("lora_dev", lora_dev, sizeof(lora_dev_t));
+ aos_kv_set("lora_dev", lora_dev, sizeof(lora_dev_t), 1);
#else
memcpy(&g_lora_dev, lora_dev, sizeof(lora_dev_... |
Fix closing the game without audio | @@ -145,6 +145,7 @@ Sound_samples *create_sound_samples(const char *sample_files[],
void destroy_sound_samples(Sound_samples *sound_samples)
{
// TODO(#1025): Use a seperate callback function for audio handling and pass that into SDL_OpenAudioDevice
+ if (sound_samples->failed) return;
trace_assert(sound_samples);
trac... |
Add std/tga benchmarks
Updates | @@ -69,6 +69,23 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
// ---------------- TGA Tests
+const char* //
+wuffs_tga_decode(uint64_t* n_bytes_out,
+ wuffs_base__io_buffer* dst,
+ uint32_t wuffs_initialize_flags,
+ wuffs_base__pixel_format pixfmt,
+ uint32_t* quirks_ptr,
+ size_t quirks_... |
Limit the size of export names to 512 bytes and reduce the number exports parsed.
If a file exceeds the limit of exports the first ones are parsed up to the limit. This change was introduced because file was consuming 1.5GB of RAM due to unlimited export names. | @@ -90,7 +90,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define MAX_PE_IMPORTS 16384
-#define MAX_PE_EXPORTS 65535
+#define MAX_PE_EXPORTS 8192
+#define MAX_EXPORT_NAME_LENGTH 512
#define IS_RESOURCE_SUBDIRECTORY(entry) \
@@ -971,6 +972,7 @@ EXPORT_FUNCTIONS* pe_parse_exports(
EXPORT_FUNCTIONS* e... |
Base64: Update return value of set function | @@ -195,7 +195,9 @@ int PLUGIN_FUNCTION (get) (Plugin * handle ELEKTRA_UNUSED, KeySet * keySet, Key
/**
* @brief Encode all binary values using the Base64 encoding scheme.
- * @retval 1 on success
+ *
+ * @retval 1 if any keys were updated
+ * @retval 0 if `keyset` was not modified
* @retval -1 on failure
*/
int PLUGIN... |
fix typo in zcl value names precicion > precision
Issue: | <datatype id="30" name="8-bit enumeration" shortname="enum8" length="1" inval="ff" ad="D"></datatype>
<datatype id="31" name="16-bit enumeration" shortname="enum16" length="2" inval="ffff" ad="D"></datatype>
<!-- Floating point -->
- <datatype id="38" name="Semi-precicion" shortname="semi" length="2" inval="nan" ad="A"... |
Install php7 from a ppa | @@ -56,7 +56,6 @@ matrix:
dist: trusty
env:
- ASAN_OPTIONS=detect_leaks=0
- php: '7.x'
before_install:
- curl -L http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-4.0 main'
@@ -65,12 +64,17 @@ matrix:
- sudo apt-get install ... |
mesh: Remove redundant expression
Remove checking of the same argument twice
this is port of | @@ -397,7 +397,7 @@ static void gen_prov_ack(struct prov_rx *rx, struct os_mbuf *buf)
prov_clear_tx();
}
- if (link.tx.cb && link.tx.cb) {
+ if (link.tx.cb) {
link.tx.cb(0, link.tx.cb_data);
}
}
|
Remove a CMS key downgrade
We were downgrading a key in the CMS code. This is no longer necessary. | @@ -261,26 +261,6 @@ int CMS_RecipientInfo_kari_decrypt(CMS_ContentInfo *cms,
size_t ceklen;
CMS_EncryptedContentInfo *ec;
- {
- /*
- * TODO(3.0) Remove this when we have functionality to deserialize
- * parameters in EVP_PKEY form from an X509_ALGOR.
- * This is needed to be able to replace the EC_KEY specific decodin... |
ixfr-out, fix test for nsd-checkzone pre and post. | @@ -7,8 +7,8 @@ Category:
Component:
Depends:
Help:
-Pre: ixfrout_checkzone.pre
-Post: ixfrout_checkzone.post
+Pre:
+Post:
Test: ixfrout_checkzone.test
AuxFiles: ixfrout_checkzone.conf, ixfrout_checkzone.zone, ixfrout_checkzone.zone.old
Passed:
|
Create expected directory. | @@ -287,6 +287,7 @@ jobs:
cd $GITHUB_WORKSPACE/tools/ci
mkdir build
mv actions/docker/* build
+ mkdir -p build/macosx64
find actions -name '*win_amd64.whl' -exec cp {} build/windows64 \;
find actions/macos_amd64 -name '*.jar' -exec cp {} build/macosx64 \;
find actions/macos_amd64 -name '*.nupkg' -exec cp {} build/macos... |
util/uut/l_com_port.c: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable | @@ -177,7 +177,8 @@ bool com_config_uart(int h_dev_drv, struct comport_fields com_port_fields)
tty.c_cc[VMIN] = 0; /* read doesn't block */
tty.c_cc[VTIME] = 5; /* 0.5 seconds read timeout */
- tty.c_iflag |= (com_port_fields.flow_control == 0x01) ? (IXON | IXOFF) :
+ tty.c_iflag |= (com_port_fields.flow_control == 0x0... |
Timestamp lines using serialdump -T instead of tools/timestamp | @@ -3,7 +3,7 @@ RLWRAPGOALS = login serialdump serialview
.PHONY: $(RLWRAPGOALS)
BAUDRATE ?= 115200
-TIMESTAMP = $(CONTIKI)/tools/timestamp
+
ifeq ($(HOST_OS),Windows)
SERIALDUMP = $(SERIAL_DUMP_BIN)
else
@@ -18,10 +18,10 @@ else
endif
serialdump: $(SERIAL_DUMP_BIN)
- $(SERIALDUMP) -b$(BAUDRATE) $(PORT) | $(TIMESTAMP) ... |
Adds NULL check to http_admin based on review comments | * specific language governing permissions and limitations
* under the License.
*/
-/**
- * service_tree.c
- *
- * \date Jun 19, 2019
- * \author <a href="mailto:dev@celix.apache.org">Apache Celix Project Team</a>
- * \copyright Apache License, Version 2.0
- */
#include <stdlib.h>
#include <stdbool.h> //for `bool`
@@ -3... |
Cr50: preapare to release version 0.4.13
BRANCH=cr50
TEST=none | "timestamp": 0,
"epoch": 0, // FWR diversification contributor, 32 bits.
"major": 4, // FW2_HIK_CHAIN counter.
- "minor": 12, // Mostly harmless version field.
+ "minor": 13, // Mostly harmless version field.
"applysec": -1, // Mask to and with fuse BROM_APPLYSEC.
"config1": 13, // Which BROM_CONFIG1 actions to take be... |
pcnt/driver: Add module reset before enabling | @@ -58,6 +58,11 @@ esp_err_t pcnt_unit_config(const pcnt_config_t *pcnt_config)
PCNT_CHECK((pcnt_config->pos_mode < PCNT_COUNT_MAX) && (pcnt_config->neg_mode < PCNT_COUNT_MAX), PCNT_COUNT_MODE_ERR_STR, ESP_ERR_INVALID_ARG);
PCNT_CHECK((pcnt_config->hctrl_mode < PCNT_MODE_MAX) && (pcnt_config->lctrl_mode < PCNT_MODE_MAX... |
[RAFT] modify HasWal() to return true even if last entry index is 0 | @@ -314,10 +314,12 @@ var (
// 1. compare identity with config
// 2. check if hardstate exists
// 3. check if last raft entiry index exists
+// last entry index can be 0 if first sync has failed
func (cdb *ChainDB) HasWal(identity consensus.RaftIdentity) (bool, error) {
var (
id *consensus.RaftIdentity
last uint64
+ hs... |
server_queuereader: docu the 10s timeout is equal to socket send timeout | @@ -400,9 +400,12 @@ server_queuereader(void *d)
; /* ignore */
#ifdef TCP_USER_TIMEOUT
- /* break out of connections when no ACK is being received for
- * +- 10 seconds instead of retransmitting for +- 15 minutes
- * available on linux >= 2.6.37 */
+ /* break out of connections when no ACK is being
+ * received for +-... |
DB/Ruby: few more NULL/Qnil related fixes. | @@ -47,7 +47,7 @@ CRubyMutexImpl::CRubyMutexImpl(bool bIgnore) : m_nLockCount(0), m_valThread(Qnil
void CRubyMutexImpl::create()
{
- if ( !m_bIgnore && !m_valMutex)
+ if ( !m_bIgnore && ( m_valMutex==Qnil ) )
{
unsigned long curThread = rho_ruby_current_thread();
@@ -68,7 +68,7 @@ void CRubyMutexImpl::close()
if ( m_va... |
Fix identify/test page buttons on server home page (Issue | @@ -898,6 +898,7 @@ _papplPrinterWebIteratorCallback(
printer_reasons;// Printer state reasons
ipp_pstate_t printer_state; // Printer state
int printer_jobs; // Number of queued jobs
+ char uri[256]; // Form URI
static const char * const states[] = // State strings
{
"Idle",
@@ -927,6 +928,8 @@ _papplPrinterWebIterator... |
typechecker-prototype: fix typo | @@ -91,7 +91,7 @@ type family TypeFinalizer (a :: BaseType) :: BaseType where
TypeFinalizer ('TyLft a b c) = ('TyLft a b (TypeFinalizer c))
TypeFinalizer a = a
--- meaing of the rules from top to bottom:
+-- meaning of the rules from top to bottom:
-- We can't assign anything to out types
-- If the second one has no in... |
Update SceKernelFaultingProcessInfo
Document missing field of SceKernelFaultingProcessInfo.
Found by reversing a SceDeci4p module, as evidenced by the following code:
```c
SceKernelFaultingProcessInfo fpi;
ksceKernelGetFaultingProcess(&fpi);
SceUID usrthid = sceKernelGetUserThreadId(fpi.unk);
``` | @@ -110,7 +110,7 @@ typedef enum SceThreadStatus {
typedef struct SceKernelFaultingProcessInfo {
SceUID pid;
- uint32_t unk;
+ SceUID faultingThreadId; //!< Kernel UID of the faulting thread
} SceKernelFaultingProcessInfo;
/**
@@ -1084,4 +1084,3 @@ int ksceKernelCancelMsgPipe(SceUID uid, int *psend, int *precv);
#endif... |
Physics shape dimensions must be positive;
Or the world will explode. That would be bad. | @@ -926,6 +926,7 @@ void lovrShapeGetAABB(Shape* shape, float aabb[6]) {
}
SphereShape* lovrSphereShapeCreate(float radius) {
+ lovrCheck(radius > 0.f, "SphereShape radius must be positive");
SphereShape* sphere = calloc(1, sizeof(SphereShape));
lovrAssert(sphere, "Out of memory");
sphere->ref = 1;
@@ -940,6 +941,7 @@ ... |
tools: Improve the error message for handling NotImplementedError on Windows | @@ -8,7 +8,7 @@ import sys
from asyncio.subprocess import Process
from io import open
from types import FunctionType
-from typing import Any, Dict, List, Optional, TextIO, Tuple
+from typing import Any, Dict, List, Optional, TextIO, Tuple, Union
import click
import yaml
@@ -143,7 +143,12 @@ class RunTool:
env_copy = di... |
Add a yy arg to writeReadUxxAsUyy | @@ -606,7 +606,7 @@ func (g *gen) writeBuiltinQuestionCall(b *buffer, n *a.Expr, depth uint32) error
if method.Ident() >= readMethodsBase {
if m := method.Ident() - readMethodsBase; m < t.ID(len(readMethods)) {
if p := readMethods[m]; p.n != 0 {
- return g.writeReadUXX(b, n, "a_src", p.n, p.endianness)
+ return g.write... |
Fix test_good_cdata_utf16() to work for builds (ironicly) | @@ -2298,7 +2298,7 @@ START_TEST(test_good_cdata_utf16)
" \0e\0n\0c\0o\0d\0i\0n\0g\0=\0'\0u\0t\0f\0-\0""1\0""6\0'"
"\0?\0>\0\n"
"\0<\0a\0>\0<\0!\0[\0C\0D\0A\0T\0A\0[\0h\0e\0l\0l\0o\0]\0]\0>\0<\0/\0a\0>";
- const char *expected = "hello";
+ const XML_Char *expected = XCS("hello");
CharData storage;
CharData_Init(&storag... |
gftp-gtk.c: avoid widget->allocation.*
not compatible with gtk3
use gtk_widget_get_allocation() | @@ -60,20 +60,25 @@ get_column (GtkCListColumn * col)
static void
_gftp_exit (GtkWidget * widget, gpointer data)
{
- intptr_t remember_last_directory;
+ intptr_t remember_last_directory, ret;
const char *tempstr;
- intptr_t ret;
-
- ret = GTK_WIDGET (local_frame)->allocation.width;
- gftp_set_global_option ("listbox_lo... |
Removed pragma defines that were mistakenly left in | -#if defined(__GNUC__)
-#pragma GCC diagnostic warning "-Wall"
-#pragma GCC diagnostic warning "-Wextra"
-#pragma GCC diagnostic ignored "-Wunused-parameter"
-#endif
-
/* swTimer.c SDK timer suspend API
*
* SDK software timer API info:
|
Tools: Add OpenOCD for the ARM architecture | {
"install": "on_request",
"platforms": [
- "linux-armel",
"linux-i686"
]
}
"size": 1675213,
"url": "https://github.com/espressif/openocd-esp32/releases/download/v0.10.0-esp32-20190708/openocd-esp32-linux64-0.10.0-esp32-20190708.tar.gz"
},
+ "linux-armel": {
+ "sha256": "f3f01d2b0ec440127b8951b82ee79dd04b9d2774bab4de74... |
JANITORIAL: (fpe.h) Correct spelling mistake in comments | @@ -193,7 +193,7 @@ typedef struct fpe_state_s {
typedef struct fpe_fpe_s {
GLuint frag, vert, prog; // shader info
- fpe_state_t state; // state relevent to the current fpe program
+ fpe_state_t state; // state relevant to the current fpe program
program_t *glprogram;
} fpe_fpe_t;
|
PAPI: Remove logging calls from pack/unpack
This slowed down the decoder. Improved from 16s to 13s for 1000 dump/details
messages. | @@ -45,11 +45,9 @@ class BaseTypes():
.format(type, base_types[type]))
def pack(self, data, kwargs=None):
- logger.debug("Data: {} Format: {}".format(data, self.packer.format))
return self.packer.pack(data)
def unpack(self, data, offset, result=None):
- logger.debug("@ {} Format: {}".format(offset, self.packer.format))... |
Defensive checking the file parse state of external scan
It triggered a SEGV on 6X by eager-free before, we are safe now, just
defensive check it here. | @@ -318,6 +318,11 @@ external_rescan(FileScanDesc scan)
/* The first call to external_getnext will re-open the scan */
+ if (!scan->fs_pstate)
+ ereport(ERROR,
+ (errcode(ERRCODE_INTERNAL_ERROR),
+ errmsg("The file parse state of external scan is invalid")));
+
/* reset some parse state variables */
scan->fs_pstate->re... |
confirm defaults for optionsal protocol values
Also added some comments to explain the test. | @@ -1912,16 +1912,17 @@ cfgReadProtocol(void **state)
// protocol config in yaml format
const char *yamlText =
"protocol:\n"
+ // the 1st should load with non-default binary and len values
" - name: test1\n"
" binary: 'true'\n"
" regex: 'sup?'\n"
" len: 111\n"
"\n"
+ // the 2rd should load with defaults for non-require... |
subproc: _exit -> exit to make sure logs are written | @@ -250,7 +250,7 @@ static bool subproc_New(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
if (!arch_launchChild(hfuzz, fuzzer->fileName)) {
LOG_E("Error launching child process");
kill(hfuzz->mainPid, SIGTERM);
- _exit(EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
abort();
}
|
more fixes to routing and sending | :: TODO: don't coerce the old state
::
++ scry scry:adult-core
- ++ stay ~& %alef-larva-stay [queued-events ames-state.adult-gate]
+ ++ stay ~& %alef-larva-stay [%larva queued-events ames-state.adult-gate]
++ load
- |= old=*
- ^+ larval-gate
+ |= old-raw=*
~& %alef-larva-load
- => .(old ;;(_[queued-events ames-state.ad... |
Correction to allocations. | @@ -25132,7 +25132,7 @@ void check_damage_recursive(s_entity *ent, s_entity *other, s_collision_attack *
ent->recursive_damage_count++;
// Add an element to array.
- ent->recursive_damage = (s_damage_recursive *)realloc(ent->recursive_damage, sizeof(*ent->recursive_damage) * ent->recursive_damage_count);
+ ent->recursi... |
refine readme sentences | @@ -24,9 +24,9 @@ For convenience, you can alternatively run the `make.sh` script.
- CMake for generating the build files
- Python 3 for the [code generator](https://github.com/toru/h2olog/blob/v2/misc/gen-quic-bpf.py)
- [BCC](https://iovisor.github.io/bcc/) (>= 0.11.0) [installed](https://github.com/iovisor/bcc/blob/m... |
esp32/modules: On initial setup mount internal flash at root.
Like it's done on normal boot up. Fixes issue | @@ -29,8 +29,7 @@ def setup():
print("Performing initial setup")
uos.VfsFat.mkfs(bdev)
vfs = uos.VfsFat(bdev)
- uos.mount(vfs, '/flash')
- uos.chdir('/flash')
+ uos.mount(vfs, '/')
with open("boot.py", "w") as f:
f.write("""\
# This file is executed on every boot (including wake-boot from deepsleep)
|
Disable EXPRECISION for the combination of DYNAMIC_CORE and GENERIC target | @@ -84,6 +84,10 @@ if (X86)
set(NO_EXPRECISION 1)
endif ()
+if ((DYNAMIC_ARCH) AND (${TARGET} STREQUAL "GENERIC))
+ set(NO_EXPRECISION 1)
+endif ()
+
if (UTEST_CHECK)
set(CCOMMON_OPT "${CCOMMON_OPT} -DUTEST_CHECK")
set(SANITY_CHECK 1)
|
Prevent occurence of UndefinedBehaviorSanitizer in stb_image | @@ -1495,7 +1495,7 @@ static int stbi__get16le(stbi__context *s)
static stbi__uint32 stbi__get32le(stbi__context *s)
{
stbi__uint32 z = stbi__get16le(s);
- return z + (stbi__get16le(s) << 16);
+ return z + ((stbi__uint32)stbi__get16le(s) << 16);
}
#endif
|
fix verbose ctest on mac pipeline | @@ -130,8 +130,7 @@ jobs:
# displayName: CTest
- script: |
cd $(BuildType)
- export MIMALLOC_VERBOSE=1
- ctest --verbose --timeout 120
+ MIMALLOC_VERBOSE=1 ctest --verbose --timeout 120
displayName: CTest
# - upload: $(Build.SourcesDirectory)/$(BuildType)
# artifact: mimalloc-macos-$(BuildType)
|
changed README to use mirror process. We are going to use git and abandon the patch process. The current branch trunk_17.0-0 already contains the initial three patches | @@ -9,7 +9,9 @@ Then log in again.
mkdir -p $TRUNK_REPOS
cd $TRUNK_REPOS
git clone https://github.com/ROCm-Developer-Tools/aomp
-git clone https://github.com/llvm/llvm-project
+git clone https://github.com/ROCm-Developer-Tools/llvm-project
+cd llvm-project
+git checkout trunk_17.0-0
$TRUNK_REPOS/aomp/trunk/build_trunk.... |
revise changelog updates per MK review | @@ -12,8 +12,9 @@ This pre-release addresses the following issues:
- **Improvement**: [#267](https://github.com/criblio/appscope/issues/267),[#256](https://github.com/criblio/appscope/issues/256) Add support for attaching AppScope to a running process
- **Improvement**: [#292](https://github.com/criblio/appscope/issues... |
Add continue to docs | @@ -72,6 +72,20 @@ for (var i = 0; i < 10; ++i) {
}
```
+## Continue statement
+
+Continue allows execution of a loop to restart prematurely.
+
+```js
+// For loop
+for (var i = 0; i < 10; ++i) {
+ if (i % 2 == 0)
+ continue; // Skip all even numbers
+
+ print(i); // Only odd numbers will be printed
+}
+```
+
## Functi... |
zephyr: Add dummies for a few more task functions
These need to be implemented properly, or another way found. For now,
add stubs.
BRANCH=none
TEST=with other CLs, build asurada for Zephyr | @@ -293,3 +293,18 @@ int task_start_called(void)
{
return tasks_started;
}
+
+void task_disable_task(task_id_t tskid)
+{
+ /* TODO(b/190203712): Implement this */
+}
+
+void task_clear_pending_irq(int irq)
+{
+ /* TODO(b/190203712): Implement this */
+}
+
+void task_enable_irq(int irq)
+{
+ /* TODO(b/190203712): Implem... |
Test handling of CDATA in an external entity parser | @@ -2635,6 +2635,52 @@ START_TEST(test_ext_entity_trailing_rsqb)
}
END_TEST
+/* Test CDATA handling in an external entity */
+static int XMLCALL
+external_entity_good_cdata_ascii(XML_Parser parser,
+ const XML_Char *context,
+ const XML_Char *UNUSED_P(base),
+ const XML_Char *UNUSED_P(systemId),
+ const XML_Char *UNUSE... |
doc: add menu option for 0.5 docs
Add option in side-bar menu for 0.5 doc version | @@ -189,6 +189,7 @@ else:
html_context = {
'current_version': current_version,
'versions': ( ("latest", "/latest/"),
+ ("0.5", "/0.5/"),
("0.4", "/0.4/"),
("0.3", "/0.3/"),
("0.2", "/0.2/"),
|
Improve output of GCC size | @@ -95,7 +95,7 @@ function(NF_PRINT_SIZE_OF_TARGETS TARGET)
else()
set(FILENAME "${TARGET}")
endif()
- add_custom_command(TARGET ${TARGET} POST_BUILD COMMAND ${CMAKE_SIZE} ${FILENAME})
+ add_custom_command(TARGET ${TARGET} POST_BUILD COMMAND ${CMAKE_SIZE} -A -x ${FILENAME})
endfunction()
|
Directory Value: Improve performance slightly | @@ -215,8 +215,8 @@ KeySetPair splitArrayParentsOther (CppKeySet const & keys)
for (previous = keys.next (); keys.next (); previous = keys.current ())
{
bool const previousIsArray =
- previous.hasMeta ("array") ||
- (keys.current ().isBelow (previous) && keys.current ().getBaseName ()[0] == '#' && isArrayParent (previo... |
Add a TODO around validating the ticket age | @@ -711,6 +711,8 @@ int tls_parse_ctos_psk(SSL *s, PACKET *pkt, X509 *x, size_t chainidx, int *al)
return 0;
}
+ /* TODO(TLS1.3): Should we validate the ticket age? */
+
ret = tls_decrypt_ticket(s, PACKET_data(&identity),
PACKET_remaining(&identity), NULL, 0, &sess);
if (ret == TICKET_FATAL_ERR_MALLOC || ret == TICKET_... |
Add trayicon overlapped activation (fix by soho) | @@ -2009,6 +2009,36 @@ BOOLEAN PhMwpExecuteComputerCommand(
return FALSE;
}
+BOOL PhMwpIsWindowOverlapped(
+ _In_ HWND WindowHandle
+ )
+{
+ RECT rectThisWindow = { 0 };
+ RECT rectOtherWindow = { 0 };
+ RECT rectIntersection = { 0 };
+ HWND windowHandle = WindowHandle;
+
+ if (!GetWindowRect(WindowHandle, &rectThisWin... |
[dpos] fix lib status rollback + prevent panic | @@ -241,13 +241,14 @@ func (pls *pLibStatus) rebuildConfirms(decCounts map[uint64]uint16) {
c := cInfo(e)
if dec, exist := decCounts[c.BlockNo]; exist {
if c.confirmsLeft < dec {
- errMsg := "the restored confirm info is inconsistent"
- logger.Debug().
- Uint16("confirm left", c.confirmsLeft).Uint16("", dec).
- Msg(err... |
Cleanup +find-or-create-ship-state | ::+|
::
++ this .
+:: +find-or-create-ship-state: find or create a ford-state for a @p
+::
+:: Accesses and modifies :state-by-ship.
::
++ find-or-create-ship-state
|= our=@p
^- [ford-state _state-by-ship]
+ ::
=/ existing (~(get by state-by-ship) our)
- ?^ existing [u.existing state-by-ship]
- =? state-by-ship
- !(~(h... |
common:test: Add comparators to test_util.h
Add <, <=, >, >= tests to test_util.h
BRANCH=None
TEST=buildall | #define TEST_EQ(a, b, fmt) TEST_OPERATOR(a, b, ==, fmt)
#define TEST_NE(a, b, fmt) TEST_OPERATOR(a, b, !=, fmt)
+#define TEST_LT(a, b, fmt) TEST_OPERATOR(a, b, <, fmt)
+#define TEST_LE(a, b, fmt) TEST_OPERATOR(a, b, <=, fmt)
+#define TEST_GT(a, b, fmt) TEST_OPERATOR(a, b, >, fmt)
+#define TEST_GE(a, b, fmt) TEST_OPERAT... |
Remove an out of date TODO | @@ -393,11 +393,6 @@ static int add_old_custom_ext(SSL_CTX *ctx, ENDPOINT role,
parse_cb_wrap->parse_arg = parse_arg;
parse_cb_wrap->parse_cb = parse_cb;
- /*
- * TODO(TLS1.3): Is it possible with the old API to add custom exts for both
- * client and server for the same type in the same SSL_CTX? We don't handle
- * th... |
fix(switch): fix knob overflow on right edge | @@ -191,7 +191,7 @@ static void draw_main(lv_event_t * e)
lv_area_t knob_area;
knob_area.x1 = obj->coords.x1 + anim_value_x;
- knob_area.x2 = knob_area.x1 + knob_size;
+ knob_area.x2 = knob_area.x1 + (knob_size > 0 ? knob_size - 1 : 0);
knob_area.y1 = obj->coords.y1;
knob_area.y2 = obj->coords.y2;
|
esp32s3: BROWNOUT reset reason is set directly without using the brownout ISR | @@ -30,6 +30,7 @@ void brownout_hal_config(const brownout_hal_config_t *cfg)
.rst_wait = 0x3ff,
.rst_ena = cfg->reset_enabled,
.ena = cfg->enabled,
+ .rst_sel = 1,
};
RTCCNTL.brown_out = brown_out_reg;
}
|
doc: release notes for 0.3
Update release notes and version selector for 0.3 release | @@ -188,6 +188,7 @@ else:
html_context = {
'current_version': current_version,
'versions': ( ("latest", "/latest/"),
+ ("0.3", "/0.3/"),
("0.2", "/0.2/"),
("0.1", "/0.1/"),
)
|
Fix: ... and calling wlc_xdg_positioner_protocol_set_constraint_adjustment sets anchor too | @@ -103,12 +103,12 @@ wlc_xdg_positioner_protocol_set_constraint_adjustment(struct wl_client *client,
return;
positioner->constraint_adjustment = WLC_BIT_CONSTRAINT_ADJUSTMENT_NONE;
- if (constraint_adjustment & ZXDG_POSITIONER_V6_CONSTRAINT_ADJUSTMENT_SLIDE_X) positioner->anchor |= WLC_BIT_CONSTRAINT_ADJUSTMENT_SLIDE_... |
Check Swig version when building the C# interface. | @@ -1151,6 +1151,9 @@ if(${TINYSPLINE_BINDING_REQUESTED})
# C#
if(${TINYSPLINE_ENABLE_CSHARP})
+ if(${SWIG_VERSION} VERSION_LESS 4.0.1)
+ message(FATAL_ERROR "C# requires Swig 4.0.1 or later")
+ endif()
tinyspline_add_swig_library(
TARGET ${TINYSPLINE_CSHARP_CMAKE_TARGET}
LANG csharp
|
space-rates the lord/serf protocol | } u3_serf;
static u3_serf u3V;
- /* serf-lord protocol:
- **
- ** ++ plea :: from serf to lord
- ** $% $: $play :: send events
- ** $= p ::
- ** %- unit :: ~ if no snapshot
- ** $: p=@ :: first number expected
- ** q=@ :: mug of state
- ** r=[our=@p fak=?] :: [identity fake?]
- ** == == ::
- ** $: $done :: event execut... |
show information about expected channel and detected channel on chnnel set error - this error occur if another tool try to change channel while hcxdumptool is running | @@ -5139,7 +5139,7 @@ if(aktchannel != pwrq.u.freq.m)
{
errorcount++;
strftime(timestring, 16, "%H:%M:%S", localtime(&tv.tv_sec));
- snprintf(servermsg, SERVERMSG_MAX, "%s ERROR: %d [INTERFACE IS NOT ON EXPECTED CHANNEL - UNABLE TO SET CHANNEL]\n", timestring, errorcount);
+ snprintf(servermsg, SERVERMSG_MAX, "%s ERROR... |
dm:gvt:enable gvt bar registration
Need to enable gvt bar registration, so remove the previous workaround patch.
Acked-by: Yu Wang | @@ -602,20 +602,6 @@ modify_bar_registration(struct pci_vdev *dev, int idx, int registration)
struct inout_port iop;
struct mem_range mr;
- if (is_pci_gvt(dev)) {
- /* GVT device is the only one who traps the pci bar access and
- * intercepts the corresponding contents in kernel. It needs
- * register pci resource only... |
Improve CMake for ChibiOS build from local source
Copying from source folder to build folder is now only performed if the folder doesn't exist (improvement in build time)
ChibiOS project is now added as an external project | @@ -584,14 +584,36 @@ if(RTOS_CHIBIOS_CHECK)
if(EXISTS "${CHIBIOS_SOURCE}/")
message(STATUS "RTOS is: ChibiOS (source from: ${CHIBIOS_SOURCE})")
+ # check if we already have the sources, no need to copy again
+ if(NOT EXISTS "${CMAKE_BINARY_DIR}/mbedTLS_Source")
file(COPY "${CHIBIOS_SOURCE}/" DESTINATION "${CMAKE_BINAR... |
fix: discord::init() should work as expected | @@ -18,6 +18,10 @@ init(dati *ua, const char token[], const char config_file[])
ua_config_init(&ua->common, BASE_API_URL, "DISCORD HTTP", config_file);
token = orka_config_get_field(&ua->common.config, "discord.token");
}
+ else {
+ ua_init(&ua->common, BASE_API_URL);
+ orka_config_init(&ua->common.config, "DISCORD HTT... |
imgtool: update help message for slot-size
In case slot sizes are different, use the secondary slot (to use for
calculations, padding, etc). | @@ -260,7 +260,8 @@ class BasedIntParamType(click.ParamType):
@click.option('--pad', default=False, is_flag=True,
help='Pad image to --slot-size bytes, adding trailer magic')
@click.option('-S', '--slot-size', type=BasedIntParamType(), required=True,
- help='Size of the slot where the image will be written')
+ help='Si... |
update CN translation based on reviewers' comments | @@ -459,8 +459,6 @@ In this example, graphics_lib.o and logo.h will be generated in the current dire
Cosmetic Improvements
^^^^^^^^^^^^^^^^^^^^^
-Because logo.h is a generated file, it needs to be cleaned when make clean is called which why it is added to the COMPONENT_EXTRA_CLEAN variable.
-
Adding logo.h to the ``gra... |
fix error handling (call `on_finish`) | @@ -1032,7 +1032,7 @@ intptr_t http_connect(const char *address,
fprintf(stderr, "ERROR: http_connect requires either an on_response "
" or an on_upgrade callback.\n");
errno = EINVAL;
- return -1;
+ goto on_error;
}
http_lib_init();
size_t len;
@@ -1043,8 +1043,9 @@ intptr_t http_connect(const char *address,
if (!addr... |
Add some more detail on how to use AppScope in AWS Lambda | @@ -54,18 +54,38 @@ For a full list of library environment variables, execute: `./libscope.so all`
For the default settings in the sample `scope.yml` configuration file, see [Config Files](/docs/config-files), or inspect the most-recent file on [GitHub](https://github.com/criblio/appscope/blob/master/conf/scope.yml).
-... |
tools/makemanifest.py: Support freezing with empty list of mpy files.
Fixes issue | @@ -276,10 +276,22 @@ def main():
sys.exit(1)
# Freeze .mpy files
+ if mpy_files:
res, output_mpy = system([sys.executable, MPY_TOOL, '-f', '-q', args.build_dir + '/genhdr/qstrdefs.preprocessed.h'] + mpy_files)
if res != 0:
- print('error freezing mpy {}: {}'.format(mpy_files, output_mpy))
+ print('error freezing mpy {... |
extmod/moducryptolib: Shorten exception messages to reduce code size. | @@ -173,7 +173,7 @@ STATIC mp_obj_t ucryptolib_aes_make_new(const mp_obj_type_t *type, size_t n_args
mp_buffer_info_t keyinfo;
mp_get_buffer_raise(args[0], &keyinfo, MP_BUFFER_READ);
if (32 != keyinfo.len && 16 != keyinfo.len) {
- mp_raise_ValueError("bad key length");
+ mp_raise_ValueError("key");
}
mp_buffer_info_t i... |
[viostor] refresh disk geometry on adapter restart | @@ -387,7 +387,8 @@ VirtIoFindAdapter(
return res;
}
- adaptExt->features = virtio_get_features(&adaptExt->vdev);
+ RhelGetDiskGeometry(DeviceExtension);
+
ConfigInfo->CachesData = CHECKBIT(adaptExt->features, VIRTIO_BLK_F_FLUSH) ? TRUE : FALSE;
RhelDbgPrint(TRACE_LEVEL_INFORMATION, ("VIRTIO_BLK_F_WCACHE = %d\n", Confi... |
BugID:16179547:modified gatewayapp for web server | @@ -391,6 +391,9 @@ int application_start(int argc, char **argv)
#ifdef CONFIG_NET_LWIP
lwip_tcpip_init();
+
+ /* Initialize webserver */
+ http_server_netconn_init();
#endif
aos_task_new("netmgr", start_netmgr, NULL, 4096);
|
graph-store: standardise archive format | |= [r=resource:store m=marked-graph:store]
^- card
=/ pax /(rap 3 'archive-' (scot %p entity.r) '-' name.r ~)/noun
- =/ =cage drum-put+!>([pax (jam m)])
+ =/ =cage drum-put+!>([pax (jam r m)])
[%pass /archive %agent [our.bowl %hood] %poke cage]
==
==
|
Ignore %status and %config diffs that wouldn't actually change anything. | :: ==
^+ +>
?- -.rum
- $new ?: =(src so-cir)
- (so-config-full ~ cof.rum)
- $(rum [%config src %full cof.rum])
$bear (so-bear bur.rum)
$peer (so-delta-our rum)
$gram (so-open src nev.rum)
- $config :: full changes to us need to get split up.
- ?: &(=(cir.rum so-cir) ?=($full -.dif.rum))
- (so-config-full `shape cof.dif... |
context: add test cases ignoring context hierarchy levels | @@ -721,12 +721,21 @@ TEST (test_contextual_basic, evaluate)
ASSERT_EQ (c["country"], "germany");
ASSERT_EQ (c["dialect"], "");
ASSERT_EQ (c.evaluate ("/%language%/%country%/%dialect%/test"), "/german/germany/%/test");
+ ASSERT_EQ (c.evaluate ("/%language%/%language%/%dialect%/test"), "/german/german/%/test");
+
+ ASSE... |
ci(micropython) switch to newer GCC action | @@ -52,7 +52,7 @@ jobs:
# STM32 & RPi Pico port
- name: arm-none-eabi-gcc
if: matrix.port == 'stm32' || matrix.port == 'rp2'
- uses: fiam/arm-none-eabi-gcc@v1
+ uses: carlosperate/arm-none-eabi-gcc-action@v1.3.0
with:
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
- name: Build STM32 port
|
fix ye olde typo | @@ -654,7 +654,7 @@ static int serve_with_generator(struct st_h2o_sendfile_generator_t *generator, h
}
}
- /* only allow GET or POST for static files */
+ /* only allow GET or HEAD for static files */
if (method_type == METHOD_IS_OTHER) {
do_close(&generator->super, req);
send_method_not_allowed(req);
|
I2C: Fix the reset counter | @@ -1472,7 +1472,7 @@ static bool is_cmd_link_buffer_internal(const i2c_cmd_link_t *link)
}
#endif
-static uint8_t clear_bus_cnt[2] = { 0, 0 };
+static uint8_t clear_bus_cnt[I2C_NUM_MAX] = { 0 };
esp_err_t i2c_master_cmd_begin(i2c_port_t i2c_num, i2c_cmd_handle_t cmd_handle, TickType_t ticks_to_wait)
{
@@ -1557,6 +1557... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.