message
stringlengths 6
474
| diff
stringlengths 8
5.22k
|
---|---|
profile: add icons, sidebar bg matches others | @@ -12,7 +12,16 @@ import { ContactCard } from "~/views/landscape/components/ContactCard";
const SidebarItem = ({ children, view, current }) => {
const selected = current === view;
- const color = selected ? "blue" : "black";
+ const icon = (view) => {
+ switch(view) {
+ case 'identity':
+ return 'Smiley';
+ case 'settings':
+ return 'Adjust';
+ default:
+ return 'Circle'
+ }
+ }
return (
<Link to={`/~profile/${view}`}>
<Row
@@ -20,10 +29,10 @@ const SidebarItem = ({ children, view, current }) => {
verticalAlign="middle"
py={1}
px={3}
- backgroundColor={selected ? "washedBlue" : "white"}
+ backgroundColor={selected ? "washedGray" : "white"}
>
- <Icon mr={2} display="inline-block" icon="Circle" color={color} />
- <Text color={color} fontSize={0}>
+ <Icon mr={2} display="inline-block" icon={icon(view)} color='black' />
+ <Text color='black' fontSize={0}>
{children}
</Text>
</Row>
|
Modify comments in LL templates | @@ -45,7 +45,7 @@ static uint8_t initialized = 0;
*/
static uint16_t
send_data(const void* data, uint16_t len) {
- /**
+ /*
* Implement send function here
*/
@@ -74,7 +74,7 @@ esp_ll_init(esp_ll_t* ll, uint32_t baudrate) {
static uint8_t memory[0x10000]; /* Create memory for dynamic allocations with specific size */
/*
- * Create memory region(s) of memory.
+ * Create region(s) of memory.
* If device has internal/external memory available,
* multiple memories may be used
*/
|
Add typechecker tests for logical operators
Now that they only accept booleans we need to have tests to check that. | @@ -169,6 +169,17 @@ describe("Titan type checker", function()
assert.match("trying to bitwise negate a", errs)
end)
+ it("catches wrong use of boolean not", function()
+ local code = [[
+ function fn(): boolean
+ return not nil
+ end
+ ]]
+ local prog, errs = run_checker(code)
+ assert.falsy(prog)
+ assert.match("trying to boolean negate a nil", errs)
+ end)
+
it("catches mismatching types in locals", function()
local code = [[
function fn()
@@ -959,20 +970,27 @@ describe("Titan type checker", function()
for _, op in ipairs({"and", "or"}) do
for _, t1 in ipairs({"{integer}", "integer", "string"}) do
- for _, t2 in ipairs({"integer", "integer", "string"}) do
- if t1 ~= t2 then
- it("cannot evaluate " .. t1 .. " and " .. t2 .. " using " .. op, function()
+ it("cannot have " .. t1 .. " as left operand of " .. op, function()
local code = [[
- function fn(a: ]] .. t1 .. [[, b: ]] .. t2 .. [[): boolean
- return a ]] .. op .. [[ b
+ function fn(x: ]] .. t1 .. [[): boolean
+ return x ]] .. op .. [[ true
end
]]
local prog, errs = run_checker(code)
assert.falsy(prog)
assert.match("left hand side of logical expression is a", errs)
end)
+ it("cannot have " .. t1 .. " as right operand of " .. op, function()
+ local code = [[
+ function fn(x: ]] .. t1 .. [[): boolean
+ return true ]] .. op .. [[ x
end
- end
+ ]]
+ local prog, errs = run_checker(code)
+ assert.falsy(prog)
+ assert.match("right hand side of logical expression is a", errs)
+ end)
+
end
end
|
Fix leaks in db module. | @@ -128,9 +128,11 @@ dbQuery(Db *this, const PgClientQueryResult resultType, const String *const quer
pckWriteStrIdP(param, resultType);
pckWriteStrP(param, query);
+ PackRead *const read = protocolClientExecute(this->remoteClient, command, true);
+
MEM_CONTEXT_PRIOR_BEGIN()
{
- result = pckReadPackP(protocolClientExecute(this->remoteClient, command, true));
+ result = pckReadPackP(read);
}
MEM_CONTEXT_PRIOR_END();
}
@@ -176,7 +178,11 @@ dbQueryColumn(Db *const this, const String *const query)
ASSERT(this != NULL);
ASSERT(query != NULL);
- FUNCTION_LOG_RETURN(PACK_READ, pckReadNew(dbQuery(this, pgClientQueryResultColumn, query)));
+ Pack *const pack = dbQuery(this, pgClientQueryResultColumn, query);
+ PackRead *const result = pckReadNew(pack);
+ pckMove(pack, objMemContext(result));
+
+ FUNCTION_LOG_RETURN(PACK_READ, result);
}
/***********************************************************************************************************************************
@@ -193,7 +199,11 @@ dbQueryRow(Db *const this, const String *const query)
ASSERT(this != NULL);
ASSERT(query != NULL);
- FUNCTION_LOG_RETURN(PACK_READ, pckReadNew(dbQuery(this, pgClientQueryResultRow, query)));
+ Pack *const pack = dbQuery(this, pgClientQueryResultRow, query);
+ PackRead *const result = pckReadNew(pack);
+ pckMove(pack, objMemContext(result));
+
+ FUNCTION_LOG_RETURN(PACK_READ, result);
}
/***********************************************************************************************************************************
@@ -208,7 +218,15 @@ dbIsInRecovery(Db *const this)
ASSERT(this != NULL);
- FUNCTION_LOG_RETURN(BOOL, pckReadBoolP(dbQueryColumn(this, STRDEF("select pg_catalog.pg_is_in_recovery()"))));
+ bool result;
+
+ MEM_CONTEXT_TEMP_BEGIN()
+ {
+ result = pckReadBoolP(dbQueryColumn(this, STRDEF("select pg_catalog.pg_is_in_recovery()")));
+ }
+ MEM_CONTEXT_TEMP_END();
+
+ FUNCTION_LOG_RETURN(BOOL, result);
}
/**********************************************************************************************************************************/
|
restore plainClient for go_2 | @@ -4,18 +4,13 @@ import (
"bufio"
"fmt"
"net/http"
- "time"
)
func main() {
- client := http.Client{
- Timeout: 120 * time.Second,
- }
-
// ensure the website does not redirect to https;
// also use the www. to avoid an unnecessary redirect
- resp, err := client.Get("http://www.gnu.org")
+ resp, err := http.Get("http://www.gnu.org")
if err != nil {
panic(err)
}
|
mcu/stm32f7: Remove inapplicable flash cache calls
__HAL_FLASH_INSTRUCTION_CACHE_ENABLE and __HAL_FLASH_DATA_CACHE_ENABLE
are not applicable for STM32F7 devices, those are for F2, F4, L4 | @@ -258,17 +258,5 @@ SystemClock_Config(void)
#if PREFETCH_ENABLE
__HAL_FLASH_PREFETCH_BUFFER_ENABLE();
#endif
-
- /*
- * These are flash instruction and data caches, not the be confused with
- * MCU caches.
- */
-#if INSTRUCTION_CACHE_ENABLE
- __HAL_FLASH_INSTRUCTION_CACHE_ENABLE();
-#endif
-
-#if DATA_CACHE_ENABLE
- __HAL_FLASH_DATA_CACHE_ENABLE();
-#endif
}
#endif
|
Fix shader issues; | @@ -64,7 +64,7 @@ static const char* lovrSkyboxVertexShader = ""
static const char* lovrSkyboxFragmentShader = ""
"in vec3 texturePosition; \n"
-"uniform samplerCube cube = 1; \n"
+"uniform samplerCube cube; \n"
"vec4 color(vec4 graphicsColor, sampler2D image, vec2 uv) { \n"
" return graphicsColor * texture(cube, texturePosition); \n"
"}";
@@ -83,7 +83,6 @@ static const char* lovrFontFragmentShader = ""
static const char* lovrNoopVertexShader = ""
"vec4 position(mat4 projection, mat4 transform, vec4 vertex) { \n"
-" texCoord.y = 1 - texCoord.y; \n"
" return vertex; \n"
"}";
@@ -196,7 +195,11 @@ Shader* lovrShaderCreate(const char* vertexSource, const char* fragmentSource) {
Shader* lovrShaderCreateDefault(DefaultShader type) {
switch (type) {
case SHADER_DEFAULT: return lovrShaderCreate(NULL, NULL);
- case SHADER_SKYBOX: return lovrShaderCreate(lovrSkyboxVertexShader, lovrSkyboxFragmentShader);
+ case SHADER_SKYBOX: {
+ Shader* shader = lovrShaderCreate(lovrSkyboxVertexShader, lovrSkyboxFragmentShader);
+ lovrShaderSendInt(shader, lovrShaderGetUniformId(shader, "cube"), 1);
+ return shader;
+ }
case SHADER_FONT: return lovrShaderCreate(NULL, lovrFontFragmentShader);
case SHADER_FULLSCREEN: return lovrShaderCreate(lovrNoopVertexShader, NULL);
default: lovrThrow("Unknown default shader type");
|
COIL: Update RT1718S address define
Update RT1718S address define to match current i2c naming conventions in
the codebase.
BRANCH=None
TEST=make -j buildall | #include "usb_pd_tcpm.h"
/* RT1718S Private RegMap */
-#define RT1718S_SLAVE_ADDR_FLAGS 0x43
+#define RT1718S_I2C_ADDR_FLAGS 0x43
#define RT1718S_VID 0x29CF
#define RT1718S_PID 0x1718
|
fixed sync() api | @@ -159,6 +159,14 @@ void tic_api_exit(tic_mem* tic)
core->data->exit(core->data->data);
}
+static inline void sync(void* dst, void* src, s32 size, bool rev)
+{
+ if(rev)
+ SWAP(dst, src, void*);
+
+ memcpy(dst, src, size);
+}
+
void tic_api_sync(tic_mem* tic, u32 mask, s32 bank, bool toCart)
{
tic_core* core = (tic_core*)tic;
@@ -183,21 +191,15 @@ void tic_api_sync(tic_mem* tic, u32 mask, s32 bank, bool toCart)
assert(bank >= 0 && bank < TIC_BANKS);
for (s32 i = 0; i < Count; i++)
- {
if(mask & (1 << i))
- toCart
- ? memcpy((u8*)&tic->cart.banks[bank] + Sections[i].bank, (u8*)&tic->ram + Sections[i].ram, Sections[i].size)
- : memcpy((u8*)&tic->ram + Sections[i].ram, (u8*)&tic->cart.banks[bank] + Sections[i].bank, Sections[i].size);
- }
+ sync((u8*)&tic->ram + Sections[i].ram, (u8*)&tic->cart.banks[bank] + Sections[i].bank, Sections[i].size, toCart);
// copy OVR palette
{
enum { PaletteIndex = 5 };
if (mask & (1 << PaletteIndex))
- toCart
- ? memcpy(&tic->cart.banks[bank].palette.ovr, &core->state.ovr.palette, sizeof(tic_palette))
- : memcpy(&core->state.ovr.palette, &tic->cart.banks[bank].palette.ovr, sizeof(tic_palette));
+ sync(&core->state.ovr.palette, &tic->cart.banks[bank].palette.ovr, sizeof(tic_palette), toCart);
}
core->state.synced |= mask;
|
fixed for bool changed to u8 | @@ -71,8 +71,10 @@ s16 menuV = 1;
fix16 amplitude = FIX16(AMPLITUDE_DEF);
fix16 waveSpeed = FIX16(WAVE_SPEED_DEF);
fix16 angularVelocity = FIX16(ANGULAR_VELOCITY_DEF);
-bool resetWave = FALSE;
-bool resetParameters = FALSE;
+
+// force word alignment as we will use a void* to access them from menu
+bool resetWave __attribute__ ((aligned (2))) = FALSE;
+bool resetParameters __attribute__ ((aligned (2))) = FALSE;
// *****************************************************************************
//
|
local-gadget: Add verbose flag to set debug log level | @@ -28,6 +28,7 @@ import (
"github.com/spf13/cobra"
localgadgetmanager "github.com/kinvolk/inspektor-gadget/pkg/local-gadget-manager"
+ log "github.com/sirupsen/logrus"
)
// This variable is used by the "version" command and is set during build.
@@ -272,18 +273,17 @@ func newRootCmd() *cobra.Command {
return rootCmd
}
-func main() {
+func runLocalGadget(cmd *cobra.Command, args []string) error {
var err error
+
localGadgetManager, err = localgadgetmanager.NewManager()
if err != nil {
- fmt.Fprintln(os.Stderr, err)
- os.Exit(1)
+ return fmt.Errorf("failed to initialize manager: %w", err)
}
homedir, err := os.UserHomeDir()
if err != nil {
- fmt.Fprintln(os.Stderr, err)
- os.Exit(1)
+ return fmt.Errorf("failed to get user's home directory: %w", err)
}
completer := readline.NewPrefixCompleter(
@@ -367,8 +367,7 @@ func main() {
EOFPrompt: "exit",
})
if err != nil {
- fmt.Fprintln(os.Stderr, err)
- os.Exit(1)
+ return fmt.Errorf("failed to initialize reader: %w", err)
}
defer l.Close()
@@ -392,6 +391,37 @@ func main() {
fmt.Fprintln(os.Stderr, err)
}
}
+
+ return nil
+}
+
+func main() {
+ var verbose bool
+
+ inlineCmd := &cobra.Command{
+ Use: "local-gadget",
+ Short: "Collection of gadgets for containers",
+ SilenceUsage: true,
+ PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
+ if verbose {
+ log.StandardLogger().SetLevel(log.DebugLevel)
+ }
+
+ return nil
+ },
+ RunE: runLocalGadget,
+ }
+
+ inlineCmd.PersistentFlags().BoolVarP(
+ &verbose,
+ "verbose", "v",
+ false,
+ "Print debug information",
+ )
+
+ if err := inlineCmd.Execute(); err != nil {
+ os.Exit(1)
+ }
}
func execInput(input string) error {
|
[libc] Add dummy _gettimeofday function when hardware do not have the RTC. | @@ -217,3 +217,13 @@ int gettimeofday(struct timeval *tp, void *ignore)
return 0;
}
#endif
+
+#ifndef _gettimeofday
+/* Dummy function when hardware do not have RTC */
+int _gettimeofday( struct timeval *tv, void *ignore)
+{
+ tv->tv_sec = 0; // convert to seconds
+ tv->tv_usec = 0; // get remaining microseconds
+ return 0; // return non-zero for error
+}
+#endif
|
s3-store: requested stylistic changes | ~/ %s3-peek
|= =path
^- (unit (unit cage))
- ?> (team:title our.bowl src.bowl)
- ?+ path (on-watch:def path)
+ ?. (team:title our.bowl src.bowl) ~
+ ?+ path [~ ~]
[%x %credentials ~]
[~ ~ %s3-update !>(`update`[%credentials credentials])]
+ ::
[%x %configuration ~]
[~ ~ %s3-update !>(`update`[%configuration configuration])]
==
|
Fixed build with Clang 10, broken by
This silences the -Wimplicit-int-float-conversion warning. | @@ -2142,7 +2142,9 @@ nxt_conf_json_parse_number(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start,
num = nxt_strtod(value->u.number, &end);
- if (nxt_slow_path(nxt_errno == NXT_ERANGE || fabs(num) > NXT_INT64_T_MAX)) {
+ if (nxt_slow_path(nxt_errno == NXT_ERANGE
+ || fabs(num) > (double) NXT_INT64_T_MAX))
+ {
nxt_conf_json_parse_error(error, start,
"The number is out of representable range. Such JSON number "
"value is not supported."
|
add missing ntohl to send_ip6_fib_details(...) | @@ -364,7 +364,7 @@ send_ip6_fib_details (vpe_api_main_t * am,
}
fp->weight = api_rpath->rpath.frp_weight;
fp->preference = api_rpath->rpath.frp_preference;
- fp->sw_if_index = api_rpath->rpath.frp_sw_if_index;
+ fp->sw_if_index = htonl (api_rpath->rpath.frp_sw_if_index);
copy_fib_next_hop (api_rpath, fp);
fp++;
}
|
sse: WASM SIMD implementations _mm_move_ss and _mm_cmp{,un}ord_ps
Fixes | @@ -244,6 +244,8 @@ simde_mm_move_ss (simde__m128 a, simde__m128 b) {
12, 13, 14, 15
};
r_.altivec_f32 = vec_perm(a_.altivec_f32, b_.altivec_f32, m);
+#elif defined(SIMDE_WASM_SIMD128_NATIVE)
+ r_.wasm_v128 = wasm_v8x16_shuffle(b_.wasm_v128, a_.wasm_v128, 0, 1, 2, 3, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31);
#elif defined(SIMDE_SHUFFLE_VECTOR_)
r_.f32 = SIMDE_SHUFFLE_VECTOR_(32, 16, a_.f32, b_.f32, 4, 1, 2, 3);
#else
@@ -893,6 +895,8 @@ simde__m128
simde_mm_cmpord_ps (simde__m128 a, simde__m128 b) {
#if defined(SIMDE_X86_SSE_NATIVE)
return _mm_cmpord_ps(a, b);
+#elif defined(SIMDE_WASM_SIMD128_NATIVE)
+ return wasm_v128_and(wasm_f32x4_eq(a, a), wasm_f32x4_eq(b, b));
#else
simde__m128_private
r_,
@@ -927,6 +931,8 @@ simde__m128
simde_mm_cmpunord_ps (simde__m128 a, simde__m128 b) {
#if defined(SIMDE_X86_SSE_NATIVE)
return _mm_cmpunord_ps(a, b);
+#elif defined(SIMDE_WASM_SIMD128_NATIVE)
+ return wasm_v128_or(wasm_f32x4_eq(a, a), wasm_f32x4_eq(b, b));
#else
simde__m128_private
r_,
@@ -3218,6 +3224,7 @@ simde_mm_sub_ss (simde__m128 a, simde__m128 b) {
return simde__m128_from_private(r_);
#endif
}
+
#if defined(SIMDE_X86_SSE_ENABLE_NATIVE_ALIASES)
# define _mm_sub_ss(a, b) simde_mm_sub_ss((a), (b))
#endif
|
api,cxx: throw std::bad_alloc on allocation failures | @@ -119,6 +119,9 @@ template <typename T, typename... Params>
T *new_obj(Params... params)
{
T *obj = static_cast<T *>(cr_malloc(sizeof (T)));
+ if (!obj) {
+ throw std::bad_alloc();
+ }
new (obj) T(params...);
return obj;
@@ -140,7 +143,13 @@ T *new_obj(Params... params)
template <typename T>
typename std::enable_if<std::is_fundamental<T>::value>::type
* new_arr(size_t len) {
+ if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
+ throw std::bad_alloc();
+ }
void *ptr = cr_malloc(sizeof (size_t) + sizeof (T) * len);
+ if (!ptr) {
+ throw std::bad_alloc();
+ }
*(reinterpret_cast<size_t *>(ptr)) = len;
T *arr = reinterpret_cast<T *>(reinterpret_cast<size_t *>(ptr) + 1);
@@ -163,7 +172,13 @@ typename std::enable_if<std::is_fundamental<T>::value>::type
template <typename T>
T *new_arr(size_t len)
{
+ if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
+ throw std::bad_alloc();
+ }
void *ptr = cr_malloc(sizeof (size_t) + sizeof (T) * len);
+ if (!ptr) {
+ throw std::bad_alloc();
+ }
*(reinterpret_cast<size_t *>(ptr)) = len;
|
Prevent camera leaving scene bounds | @@ -172,7 +172,7 @@ export const EventFields = {
label: "X",
type: "number",
min: 0,
- max: 32,
+ max: 11,
width: "50%",
defaultValue: 0
},
@@ -181,7 +181,7 @@ export const EventFields = {
label: "Y",
type: "number",
min: 0,
- max: 32,
+ max: 13,
width: "50%",
defaultValue: 0
},
|
libtcmu: Convert to use tcmu_get_cdb_length helper | @@ -242,21 +242,10 @@ static void tcmu_cdb_debug_info(const struct tcmulib_cmd *cmd)
{
int i, n, bytes;
char fix[CDB_FIX_SIZE], *buf;
- uint8_t group_code = cmd->cdb[0] >> 5;
buf = fix;
- switch (group_code) {
- case 0: /*000b for 6 bytes commands */
- bytes = 6;
- break;
- case 1: /*001b for 10 bytes commands */
- case 2: /*010b for 10 bytes commands */
- bytes = 10;
- break;
- case 3: /*011b Reserved ? */
- if (cmd->cdb[0] == 0x7f) {
- bytes = 8 + cmd->cdb[7];
+ bytes = tcmu_get_cdb_length(cmd->cdb);
if (bytes > CDB_FIX_SIZE) {
buf = malloc(CDB_TO_BUF_SIZE(bytes));
if (!buf) {
@@ -264,22 +253,6 @@ static void tcmu_cdb_debug_info(const struct tcmulib_cmd *cmd)
return;
}
}
- } else {
- bytes = 6;
- }
- break;
- case 4: /*100b for 16 bytes commands */
- bytes = 16;
- break;
- case 5: /*101b for 12 bytes commands */
- bytes = 12;
- break;
- case 6: /*110b Vendor Specific */
- case 7: /*111b Vendor Specific */
- default:
- /* TODO: */
- bytes = 6;
- }
for (i = 0, n = 0; i < bytes; i++) {
n += sprintf(buf + n, "%x ", cmd->cdb[i]);
|
Change script to solve G_NEXT_SRV_RSA not set issue | @@ -91,6 +91,7 @@ if [ -n "${GNUTLS_NEXT_SERV:-}" ]; then
G_NEXT_SRV_RSA="$GNUTLS_NEXT_SERV --x509certfile data_files/server2.crt --x509keyfile data_files/server2.key"
else
G_NEXT_SRV=false
+ G_NEXT_SRV_RSA=false
fi
if [ -n "${GNUTLS_NEXT_CLI:-}" ]; then
|
Fix mirror PowerShell script (try 5) | @@ -17,7 +17,6 @@ param (
)
Set-StrictMode -Version 'Latest'
-$PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
# Verify the PAT environmental variable is set.
if ($null -eq $Env:AzDO_PAT -or "" -eq $Env:AzDO_PAT) {
@@ -34,10 +33,6 @@ git remote add azdo-mirror "https://nibanks:$Env:[email protected]
git reset --hard origin/$Branch
# Push to the AzDO repo.
-$Result = (git push azdo-mirror $Branch)
-if (($Result -as [String]).Contains("To https://mscodehub.visualstudio.com/msquic/_git/msquic")) {
- Write-Host "Successfully mirrored latest changes to https://mscodehub.visualstudio.com/msquic/_git/msquic"
-} else {
- Write-Error "ERROR:`n$($Result)"
- exit
-}
+git push azdo-mirror $Branch
+
+Write-Host "Successfully mirrored latest changes"
|
fix flashing to 'f0 device' targets
Fixes Pull request (0498621) accidentally deleted the call to `set_flash_cr_pg`. | @@ -2001,6 +2001,9 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, uint32_t
/* unlock and set programming mode */
unlock_flash_if(sl);
+ if (sl->flash_type != STLINK_FLASH_TYPE_F1_XL) {
+ set_flash_cr_pg(sl);
+ }
DLOG("Finished unlocking flash, running loader!\n");
if (stlink_flash_loader_run(sl, &fl, addr + (uint32_t) off, base + off, size) == -1) {
ELOG("stlink_flash_loader_run(%#zx) failed! == -1\n", addr + off);
|
High-Level API: Fix link to section | @@ -8,7 +8,7 @@ not to be directly used in applications. The high-level API should be extremely
should be hard to use it in a wrong way. This tutorial gives an introduction for developers who want to elektrify their application
using the high-level API.
-The API supports all CORBA Basic Data Types, except for `wchar`, as well as the `string` type (see also [Data Types](#data-types)).
+The API supports all CORBA Basic Data Types, except for `wchar`, as well as the `string` type (see also [Data Types](#DataTypes)).
## Setup
@@ -157,7 +157,8 @@ recommended you either use `atexit()` in you application or set a custom callbac
The callback must interrupt the thread of execution in some way (e.g. by calling `exit()` or throwing an exception in C++). It must
not return to the calling function. If it does return, the behaviour is undefined.
-## Data Types
+## <a name="DataTypes"></a> Data Types
+
The API supports the following types, which are taken from the CORBA specification:
* **String**: a string of characters, represented by `KDB_TYPE_STRING` in metadata
|
fix wrong log level; fix | @@ -592,7 +592,7 @@ char* mergeJSONObjectStrings(const char* j1, const char* j2) {
}
char* s = jsonToString(j);
secFreeJson(j);
- syslog(LOG_AUTH | LOG_ERR, "Merge result '%s'", s);
+ syslog(LOG_AUTH | LOG_DEBUG, "Merge result '%s'", s);
return s;
}
|
Fix incorrect weight for intra frame | @@ -159,8 +159,8 @@ static double pic_allocate_bits(encoder_state_t * const state)
return state->frame->cur_gop_target_bits;
}
- const double pic_weight = encoder->gop_layer_weights[
- encoder->cfg.gop[state->frame->gop_offset].layer - 1];
+ const double pic_weight = state->frame->poc != 0 ? encoder->gop_layer_weights[
+ encoder->cfg.gop[state->frame->gop_offset].layer - 1] : 1;
const double pic_target_bits =
state->frame->cur_gop_target_bits * pic_weight - pic_header_bits(state);
// Allocate at least 100 bits for each picture like HM does.
|
actions: use openjdk and set PATH, ENV manually | @@ -25,11 +25,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: actions/setup-java@v1
- with:
- java-version: '11' # The JDK version to make available on the path.
- java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
- architecture: x64 # (x64 or x86) - defaults to x64
- uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
@@ -54,6 +49,7 @@ jobs:
brew install libuv
brew install lua
brew install ninja
+ brew install openjdk
brew install qt
brew install swig
brew install yajl
@@ -61,7 +57,13 @@ jobs:
- name: Setup Build Environment
run: |
- echo "JAVA_HOME=$(/usr/libexec/java_home --failfast)" >> $GITHUB_ENV
+ echo "JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk.jdk/Contents/Home" >> $GITHUB_ENV
+ echo "/usr/local/opt/openjdk/bin" >> $GITHUB_PATH
+ sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
+ which java
+ which javac
+ java --version
+ javac --version
gem install test-unit --no-document
pip2 install cheetah # Required by kdb-gen
brew tap homebrew/services
|
Export PhGenerateRandomNumber64 and PhIsFirmwareSupported | @@ -305,6 +305,7 @@ EXPORTS
PhGetTokenPrimaryGroup
PhGetTokenPrivileges
PhGetTokenUser
+ PhIsFirmwareSupported
PhImpersonateToken
PhListenNamedPipe
PhOpenKey
@@ -376,6 +377,7 @@ EXPORTS
PhGenerateGuid
PhGenerateGuidFromName
PhGenerateRandomAlphaString
+ PhGenerateRandomNumber64
PhGetApplicationDirectory
PhGetApplicationDirectoryWin32
PhGetApplicationDirectoryFileNameWin32
|
Clone command arguments
Cosmetic fix for | @@ -35,9 +35,11 @@ Developed as Simplified ROSS ([gonsie/SR](http://github.com/gonsie/SR)), this ve
1. Clone the repository to your local machine:
```
- git clone [email protected]:carothersc/ROSS.git
+ git clone -b master --single-branch [email protected]:carothersc/ROSS.git
cd ROSS
```
+ Since the ROSS repostiory is quite large, it is recommended that you only clone the master branch.
+ To speed up the clone command even more, use the `--depth=1` argument.
2. *Optional* Install the submodules:
```
|
Add note about origin of function | @@ -328,6 +328,9 @@ void lv_canvas_draw_circle(lv_obj_t * canvas, lv_coord_t x0, lv_coord_t y0, lv_c
* @param point2 end point of the line
* @param color color of the line
*/
+/*
+ * NOTE: The lv_canvas_draw_line function originates from https://github.com/jb55/bresenham-line.c.
+ */
void lv_canvas_draw_line(lv_obj_t * canvas, lv_point_t point1, lv_point_t point2, lv_color_t color)
{
lv_coord_t x0, y0, x1, y1;
|
doc: PG 13 relnotes: fix xref link and remove extra word | of parameter values output during statement non-error logging, and
<xref linkend="guc-log-parameter-max-length-on-error"/> does the
same for error statement logging. Previously, prepared statement
- parameters were not logged during errors. error.
+ parameters were not logged during errors.
</para>
</listitem>
-->
<para>
- Allow <link linkend="sepgsql"/> to control access to the
+ Allow <xref linkend="sepgsql"/> to control access to the
<command>TRUNCATE</command> command (Yuli Khodorkovskiy)
</para>
|
Fix caller list of the MD module | * library/ecjpake.c
* library/hkdf.c
* library/hmac_drbg.c
- * library/oid.c
* library/pk.c
* library/pkcs5.c
* library/pkcs12.c
* library/ssl_cookie.c
* library/ssl_msg.c
* library/ssl_tls.c
+ * library/x509.c
* library/x509_crt.c
* library/x509write_crt.c
* library/x509write_csr.c
|
Fix error in LHASH documentation | @@ -30,7 +30,7 @@ OPENSSL_LH_doall, OPENSSL_LH_doall_arg, OPENSSL_LH_error
TYPE *lh_TYPE_insert(LHASH_OF(TYPE) *table, TYPE *data);
TYPE *lh_TYPE_delete(LHASH_OF(TYPE) *table, TYPE *data);
- TYPE *lh_retrieve(LHASH_OF(TYPE) *table, TYPE *data);
+ TYPE *lh_TYPE_retrieve(LHASH_OF(TYPE) *table, TYPE *data);
void lh_TYPE_doall(LHASH_OF(TYPE) *table, OPENSSL_LH_DOALL_FUNC func);
void lh_TYPE_doall_arg(LHASH_OF(TYPE) *table, OPENSSL_LH_DOALL_FUNCARG func,
|
Fix changelog requirements section.
Setbuf() is currently not guarded by MBEDTLS_FS_IO, nor can it easily be
so. Raised a seperate issue to cover this, and removed the mention of
MBEDTLS_FS_IO from the Changelog. | @@ -5,6 +5,7 @@ Security
Glenn Strauss.
Requirement changes
* The library will no longer compile out of the box on a platform without
- setbuf() if MBEDTLS_FS_IO is enabled. If your platform does not have
- setbuf(), you can configure an alternative function by enabling
- MBEDTLS_PLATFORM_SETBUF_ALT or MBEDTLS_PLATFORM_SETBUF_MACRO.
+ setbuf(). If your platform does not have setbuf(), you can configure an
+ alternative function by enabling MBEDTLS_PLATFORM_SETBUF_ALT or
+ MBEDTLS_PLATFORM_SETBUF_MACRO.
+
|
groups: permission remove button for group members
Adds 'adminOpt' to the remove button for group members
who have not yet shared metadata. | @@ -47,6 +47,9 @@ export class ContactSidebar extends Component {
);
});
+ let adminOpt = (props.path.includes(`~${window.ship}/`))
+ ? "dib" : "dn";
+
let groupItems =
Array.from(group).map((member) => {
return (
@@ -65,7 +68,7 @@ export class ContactSidebar extends Component {
title={member}>
{cite(member)}
</p>
- <p className="dib v-mid f9 mh2 red2 pointer"
+ <p className={"v-mid f9 mh2 red2 pointer " + adminOpt}
style={{paddingTop: 6}}
onClick={() => {
props.api.setSpinner(true);
|
config: Put all sensor interrupt config events at a single location
The number of interrupt events will increase with the ST sensors support.
BRANCH=none
TEST=compile | */
#undef CONFIG_ACCEL_STD_REF_FRAME_OLD
-/*
- * Define the event to raise when BMI160 interrupt.
- * Must be within TASK_EVENT_MOTION_INTERRUPT_MASK.
- */
-#undef CONFIG_ACCELGYRO_BMI160_INT_EVENT
-
/* Set when INT2 is an ouptut */
#undef CONFIG_ACCELGYRO_BMI160_INT2_OUTPUT
/* Specify type of Gyrometers attached. */
#undef CONFIG_GYRO_L3GD20H
-/*
- * Define the event to raise when LIS2DH interrupt.
- * Must be within TASK_EVENT_MOTION_INTERRUPT_MASK.
- */
-#undef CONFIG_ACCEL_LIS2DH_INT_EVENT
-
/* Sync event driver */
#undef CONFIG_SYNC
#undef CONFIG_ALS_SI114X
/* Check if the device revision is supported */
#undef CONFIG_ALS_SI114X_CHECK_REVISION
+
/*
- * Define the event to raise when BMI160 interrupt.
+ * Define the event to raise when a sensor interrupt triggers.
* Must be within TASK_EVENT_MOTION_INTERRUPT_MASK.
*/
+#undef CONFIG_ACCELGYRO_BMI160_INT_EVENT
+#undef CONFIG_ACCEL_LSM6DSM_INT_EVENT
+#undef CONFIG_ACCEL_LIS2DH_INT_EVENT
#undef CONFIG_ALS_SI114X_INT_EVENT
/*
|
porting: Fix linux port example
Linux port sample is using legacy advertising API which is disabled
if Extended Advertising is enabled. For testing complete linux build we
should have separate linux_dummy sample which doesn't call any APIs for
simplicity. | /*** net/nimble */
#ifndef MYNEWT_VAL_BLE_EXT_ADV
-#define MYNEWT_VAL_BLE_EXT_ADV (1)
+#define MYNEWT_VAL_BLE_EXT_ADV (0)
#endif
#ifndef MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE
#endif
#ifndef MYNEWT_VAL_BLE_PERIODIC_ADV
-#define MYNEWT_VAL_BLE_PERIODIC_ADV (1)
+#define MYNEWT_VAL_BLE_PERIODIC_ADV (0)
#endif
#ifndef MYNEWT_VAL_BLE_ROLE_BROADCASTER
|
Allocator list can happen only for heap in ALLOCATE_HEAP and TEST_HEAP instruction | @@ -1444,7 +1444,7 @@ static bool maybe_call_native(Context *ctx, AtomString module_name, AtomString f
case OP_ALLOCATE_HEAP: {
int next_off = 1;
int stack_need;
- DECODE_ALLOCATOR_LIST(stack_need, code, i, next_off, next_off);
+ DECODE_INTEGER(stack_need, code, i, next_off, next_off);
int heap_need;
DECODE_ALLOCATOR_LIST(heap_need, code, i, next_off, next_off);
int live;
@@ -1513,9 +1513,9 @@ static bool maybe_call_native(Context *ctx, AtomString module_name, AtomString f
case OP_ALLOCATE_HEAP_ZERO: {
int next_off = 1;
int stack_need;
- DECODE_ALLOCATOR_LIST(stack_need, code, i, next_off, next_off);
+ DECODE_INTEGER(stack_need, code, i, next_off, next_off);
int heap_need;
- DECODE_ALLOCATOR_LIST(heap_need, code, i, next_off, next_off);
+ DECODE_INTEGER(heap_need, code, i, next_off, next_off);
int live;
DECODE_INTEGER(live, code, i, next_off, next_off);
TRACE("allocate_heap_zero/3 stack_need=%i, heap_need=%i, live=%i\n", stack_need, heap_need, live);
|
Fix bug with std140 offset logic; | @@ -164,8 +164,8 @@ size_t lovrShaderComputeUniformLayout(arr_uniform_t* uniforms) {
int align;
Uniform* uniform = &uniforms->data[i];
if (uniform->count > 1 || uniform->type == UNIFORM_MATRIX) {
- align = 16 * (uniform->type == UNIFORM_MATRIX ? uniform->components : 1);
- uniform->size = align * uniform->count;
+ align = 16;
+ uniform->size = align * uniform->count * (uniform->type == UNIFORM_MATRIX ? uniform->components : 1);
} else {
align = (uniform->components + (uniform->components == 3)) * 4;
uniform->size = uniform->components * 4;
|
Enhance gppperfmon test to include row metrics.
The gpperfmon test is enhanced to include rows_out metric from the
queries_history table. | @@ -91,8 +91,8 @@ Feature: gpperfmon
To run all the other scenarios and omit this test on MacOS, use:
$ behave test/behave/mgmt_utils/gpperfmon.feature --tags @gpperfmon --tags ~@gpperfmon_skew_cpu_and_cpu_elapsed
"""
- @gpperfmon_skew_cpu_and_cpu_elapsed
- Scenario: gpperfmon records skew_cpu and cpu_elapsed
+ @gpperfmon_queries_history_metrics
+ Scenario: gpperfmon records cpu_elapsed, skew_cpu, skew_rows and rows_out
Given gpperfmon is configured and running in qamode
Given the user truncates "queries_history" tables in "gpperfmon"
Given database "gptest" is dropped and recreated
@@ -108,11 +108,12 @@ Feature: gpperfmon
"""
When below sql is executed in "gptest" db
"""
- select count(*),sum(pow(amt,2)) from sales;
+ select gp_segment_id, count(*),sum(pow(amt,2)) from sales group by gp_segment_id;
"""
- Then wait until the results from boolean sql "SELECT count(*) > 0 FROM queries_history where cpu_elapsed > 1 and query_text like 'select count(*)%'" is "true"
+ Then wait until the results from boolean sql "SELECT count(*) > 0 FROM queries_history where cpu_elapsed > 1 and query_text like 'select gp_segment_id, count(*)%'" is "true"
Then wait until the results from boolean sql "SELECT count(*) > 0 FROM queries_history where skew_cpu > 0.05 and db = 'gptest'" is "true"
Then wait until the results from boolean sql "SELECT count(*) > 0 FROM queries_history where skew_rows > 0 and db = 'gptest'" is "true"
+ Then wait until the results from boolean sql "SELECT rows_out = count(distinct content) from queries_history, gp_segment_configuration where query_text like 'select gp_segment_id, count(*)%' and db = 'gptest' and content != -1 group by rows_out" is "true"
@gpperfmon_partition
Scenario: gpperfmon keeps all partitions upon restart if partition_age not set, drops excess partitions otherwise
|
add svn 1.9.5 | {"host": {"os": "DARWIN"}, "default": true}
]
},
+ "svn19": {
+ "tools": {
+ "svn": { "bottle": "svn19", "executable": "svn" }
+ },
+ "platforms": [
+ {"host": {"os": "LINUX"}},
+ {"host": {"os": "WIN"}},
+ {"host": {"os": "DARWIN"}}
+ ]
+ },
"cmake": {
"tools": {
"cmake": { "bottle": "cmake", "executable": "cmake" }
"svnversion": ["bin", "svnversion"]
}
},
+ "svn19": {
+ "formula": {
+ "sandbox_id": 200249024,
+ "match": "svn"
+ },
+ "executable": {
+ "svn": ["svn"]
+ }
+ },
"cmake": {
"formula": {
"sandbox_id": 105454515,
|
stm32/qspi: Enable sample shift and disable timeout counter.
This makes the QSPI more robust, in particular the timeout counter should
not be used with memory mapped mode (see F7 errata). | @@ -55,8 +55,8 @@ void qspi_init(void) {
#if defined(QUADSPI_CR_DFM_Pos)
| 0 << QUADSPI_CR_DFM_Pos // dual-flash mode disabled
#endif
- | 0 << QUADSPI_CR_SSHIFT_Pos // no sample shift
- | 1 << QUADSPI_CR_TCEN_Pos // timeout counter enabled
+ | 1 << QUADSPI_CR_SSHIFT_Pos // do sample shift
+ | 0 << QUADSPI_CR_TCEN_Pos // timeout counter disabled (see F7 errata)
| 1 << QUADSPI_CR_EN_Pos // enable the peripheral
;
@@ -71,7 +71,6 @@ void qspi_memory_map(void) {
// Enable memory-mapped mode
QUADSPI->ABR = 0; // disable continuous read mode
- QUADSPI->LPTR = 100; // to tune
QUADSPI->CCR =
0 << QUADSPI_CCR_DDRM_Pos // DDR mode disabled
| 0 << QUADSPI_CCR_SIOO_Pos // send instruction every transaction
|
add childlocker | @@ -856,6 +856,19 @@ void DeRestPluginPrivate::handleTuyaClusterIndication(const deCONZ::ApsDataIndic
enqueueEvent(e);
}
}
+ break;
+ case 0x010D : // Childlock status for BRT-100
+ {
+ bool locked = (data == 0) ? false : true;
+ ResourceItem *item = sensorNode->item(RConfigLocked);
+
+ if (item && item->toBool() != locked)
+ {
+ item->setValue(locked);
+ Event e(RSensors, RConfigLocked, sensorNode->id(), item);
+ enqueueEvent(e);
+ }
+ }
break;
case 0x010E : // Woox Low Battery
{
|
VERSION bump to version 2.1.71 | @@ -64,7 +64,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 1)
-set(SYSREPO_MICRO_VERSION 70)
+set(SYSREPO_MICRO_VERSION 71)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICRO_VERSION})
# Version of the library
|
ensure page reset flag is always reset | @@ -602,6 +602,7 @@ static mi_page_t* mi_segment_span_allocate(mi_segment_t* segment, size_t slice_i
// ensure the memory is committed
mi_segment_ensure_committed(segment, _mi_page_start(segment,page,NULL), slice_count * MI_SEGMENT_SLICE_SIZE, tld->stats);
+ page->is_reset = false;
segment->used++;
return page;
}
|
Fix 32 bit platforms. | @@ -46,12 +46,10 @@ void *(janet_unwrap_pointer)(Janet x) { return janet_unwrap_pointer(x); }
JanetFunction *(janet_unwrap_function)(Janet x) { return janet_unwrap_function(x); }
JanetCFunction (janet_unwrap_cfunction)(Janet x) { return janet_unwrap_cfunction(x); }
int (janet_unwrap_boolean)(Janet x) { return janet_unwrap_boolean(x); }
-double (janet_unwrap_number)(Janet x) { return janet_unwrap_number(x); }
int32_t (janet_unwrap_integer)(Janet x) { return janet_unwrap_integer(x); }
#if defined(JANET_NANBOX_32) || defined(JANET_NANBOX_64)
Janet (janet_wrap_nil)(void) { return janet_wrap_nil(); }
-Janet (janet_wrap_number)(double x) { return janet_wrap_number(x); }
Janet (janet_wrap_true)(void) { return janet_wrap_true(); }
Janet (janet_wrap_false)(void) { return janet_wrap_false(); }
Janet (janet_wrap_boolean)(int x) { return janet_wrap_boolean(x); }
@@ -71,6 +69,14 @@ Janet (janet_wrap_pointer)(void *x) { return janet_wrap_pointer(x); }
Janet (janet_wrap_integer)(int32_t x) { return janet_wrap_integer(x); }
#endif
+#ifndef JANET_NANBOX_32
+double (janet_unwrap_number)(Janet x) { return janet_unwrap_number(x); }
+#endif
+
+#ifdef JANET_NANBOX_64
+Janet (janet_wrap_number)(double x) { return janet_wrap_number(x); }
+#endif
+
/*****/
void *janet_memalloc_empty(int32_t count) {
|
board/servo_v4p1/fusb302b.c: Format with clang-format
BRANCH=none
TEST=none | @@ -72,7 +72,6 @@ int init_fusb302b(int p)
if (ret)
return ret;
-
ret = tcpc_read(TCPC_REG_INTERRUPTA, &interrupta);
if (ret)
return ret;
@@ -159,7 +158,6 @@ int get_cc(int *cc1, int *cc2)
else
orig_meas_cc2 = 0;
-
/* Disable CC2 measurement switch, enable CC1 measurement switch */
reg &= ~TCPC_REG_SWITCHES0_MEAS_CC2;
reg |= TCPC_REG_SWITCHES0_MEAS_CC1;
|
Examples: apply flake8 | @@ -77,11 +77,11 @@ def example():
slat = codes_get_array(bufr, "latitude")
slon = codes_get_array(bufr, "longitude")
try:
- htg = codes_get(ibufr, "heightOfStationGroundAboveMeanSeaLevel")
+ htg = codes_get(bufr, "heightOfStationGroundAboveMeanSeaLevel")
except Exception:
htg = -999.0
try:
- htp = codes_get(ibufr, "heightOfBarometerAboveMeanSeaLevel")
+ htp = codes_get(bufr, "heightOfBarometerAboveMeanSeaLevel")
except Exception:
htp = -999.0
year = codes_get(bufr, "year")
|
Fix mget function signature in WASM binding | @@ -980,7 +980,7 @@ M3Result linkTicAPI(IM3Module module)
_ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "map", "v(iiiiiiiiii)", &wasmtic_map)));
_ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "memcpy", "v(iii)", &wasmtic_memcpy)));
_ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "memset", "v(iii)", &wasmtic_memset)));
- _ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "mget", "v(ii)", &wasmtic_mget)));
+ _ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "mget", "i(ii)", &wasmtic_mget)));
_ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "mset", "v(iii)", &wasmtic_mset)));
_ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "mouse", "v(*)", &wasmtic_mouse)));
_ (SuppressLookupFailure (m3_LinkRawFunction (module, "env", "music", "v(iiiiiii)", &wasmtic_music)));
|
event_filter struct changed | @@ -1021,30 +1021,12 @@ struct event_filter {
*/
enum event_severity severity;
- /**
- * The specific event code to retrieve. Only used if
- * NVM_FILTER_ON_CODE is set in the #filter_mask.
- */
- NVM_UINT16 code;
-
/**
* The identifier to retrieve events for.
* Only used if NVM_FILTER_ON_UID is set in the #filter_mask.
*/
NVM_UID uid; ///< filter on specific item
- /**
- * The time after which to retrieve events.
- * Only used if NVM_FILTER_ON_AFTER is set in the #filter_mask.
- */
- time_t after; ///< filter on events after specified time
-
- /**
- * The time before which to retrieve events.
- * Only used if NVM_FILTER_ON_BEFORE is set in the #filter_mask.
- */
- time_t before; ///< filter on events before specified time
-
/**
* Event ID number (row ID)
* Only used if NVM_FILTER_ON_EVENT is set in the #filter mask.
|
* vscode settings | {
"files.insertFinalNewline": false,
- "cmake.generator": "Unix Makefiles",
+ //"cmake.generator": "Unix Makefiles",
+ "cmake.generator": "Ninja",
"cmake.configureArgs": [
"-DCMAKE_VERBOSE_MAKEFILE=OFF",
"-DENABLE_HTTP=ON",
"-DBUILD_JNI_BINDING=ON",
"-DBUILD_NODEJS_BINDING=ON",
"-DBUILD_REACT_NATIVE_BINDING=OFF",
+ "-DBUILD_SWIFT_BINDING=ON",
"-DANDROID_ABIS=x86",
// "-DASAN=ON",
// "-DIOWOW_URL=file:///home/adam/Projects/softmotions/iowow"
|
Fix C99-style declaration of loop variable | @@ -719,9 +719,10 @@ integer iparam2stage_(integer *ispec, char *name__, char *opts, integer *ni,
// s_copy(subnam, name__, (ftnlen)12, name_len);
strncpy(subnam,name__,13);
subnam[13]='\0';
-for (int i=0;i<13;i++) subnam[i]=toupper(subnam[i]);
- //fprintf(stderr,"iparam2stage, name__ gelesen #%s#\n",name__);
-//fprintf(stderr,"iparam2stage, subnam gelesen #%s#\n",subnam);
+ {
+ int i;
+ for (i=0;i<13;i++) subnam[i]=toupper(subnam[i]);
+ }
#if 0
|
Fix JVPP enum _host_to_net_ translation
use ordinal value of enumeration instead of accessing
its value directly. | @@ -117,8 +117,8 @@ $json_definition
static inline void _host_to_net_${c_name}(JNIEnv * env, jobject _host, vl_api_${c_name}_t * _net)
{
jclass enumClass = (*env)->FindClass(env, "${class_FQN}");
- jfieldID valueFieldId = (*env)->GetStaticFieldID(env, enumClass, "value", "${jni_signature}");
- ${jni_type} value = (*env)->GetStatic${jni_accessor}Field(env, enumClass, valueFieldId);
+ jmethodID getValueMethod = (*env)->GetMethodID(env, enumClass, "ordinal", "()I");
+ ${jni_type} value = (*env)->CallIntMethod(env, _host, getValueMethod);
${swap};
}""")
|
README: Update CI status badges
Switch from Travis to GH Actions badges. | ## Overview
-[][travis]
+<a href="https://github.com/apache/mynewt-core/actions/workflows/build_targets.yml">
+ <img src="https://github.com/apache/mynewt-core/actions/workflows/build_targets.yml/badge.svg">
+<a/>
-[travis]: https://travis-ci.org/apache/mynewt-core
+<a href="https://github.com/apache/mynewt-core/actions/workflows/build_blinky.yml">
+ <img src="https://github.com/apache/mynewt-core/actions/workflows/build_blinky.yml/badge.svg">
+<a/>
+
+<a href="https://github.com/apache/mynewt-core/actions/workflows/newt_test_all.yml/badge.svg">
+ <img src="https://github.com/apache/mynewt-core/actions/workflows/newt_test_all.yml/badge.svg">
+<a/>
+
+<p>
Apache Mynewt is an open-source operating system for tiny embedded devices.
Its goal is to make it easy to develop applications for microcontroller
|
Allow base-4.7 (GHC 7.8) | @@ -19,7 +19,7 @@ source-repository head
library
exposed-modules: Foreign.Lua.Module.Text
- build-depends: base >= 4.8 && < 4.11
+ build-depends: base >= 4.7 && < 4.11
, hslua >= 0.9 && < 0.10
, text >= 1 && < 1.3
hs-source-dirs: src
|
Compatible with new SetPrivKey Function | @@ -147,7 +147,7 @@ Value sendalert(const Array& params, bool fHelp)
alert.vchMsg = vector<unsigned char>(sMsg.begin(), sMsg.end());
vector<unsigned char> vchPrivKey = ParseHex(params[1].get_str());
- key.SetPrivKey(CPrivKey(vchPrivKey.begin(), vchPrivKey.end())); // if key is not correct openssl may crash
+ key.SetPrivKey(CPrivKey(vchPrivKey.begin(), vchPrivKey.end()), false); // if key is not correct openssl may crash
if (!key.Sign(Hash(alert.vchMsg.begin(), alert.vchMsg.end()), alert.vchSig))
throw runtime_error(
"Unable to sign alert, check private key?\n");
|
grid: fixing inter and manifest link | <link rel="icon" href="/src/assets/favicon.svg" sizes="any" type="image/svg+xml" />
<link rel="mask-icon" href="/src/assets/safari-pinned-tab.svg" color="#000000" />
<link rel="apple-touch-icon" sizes="180x180" href="/src/assets/apple-touch-icon.png" />
- <link rel="manifest" href="/src/assets/site.webmanifest" />
+ <link rel="manifest" href="/src/assets/manifest.json" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
- href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600&display=swap"
+ href="https://fonts.googleapis.com/css2?family=Inter&family=Source+Code+Pro:wght@400;600&display=swap"
rel="stylesheet"
/>
</head>
|
sdl/hints: add SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS for 2.0.9 | @@ -4,6 +4,11 @@ package sdl
#include "sdl_wrapper.h"
#include "hints.h"
+#if !(SDL_VERSION_ATLEAST(2,0,9))
+#define SDL_HINT_MOUSE_DOUBLE_CLICK_TIME ""
+#define SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS ""
+#endif
+
#if !(SDL_VERSION_ATLEAST(2,0,8))
#define SDL_HINT_IOS_HIDE_HOME_INDICATOR ""
#define SDL_HINT_RETURN_KEY_HIDES_IME ""
@@ -96,6 +101,8 @@ const (
HINT_VIDEO_X11_XINERAMA = C.SDL_HINT_VIDEO_X11_XINERAMA // specifies whether the X11 Xinerama extension should be used
HINT_VIDEO_X11_XRANDR = C.SDL_HINT_VIDEO_X11_XRANDR // specifies whether the X11 XRandR extension should be used
HINT_GRAB_KEYBOARD = C.SDL_HINT_GRAB_KEYBOARD // specifies whether grabbing input grabs the keyboard
+ HINT_MOUSE_DOUBLE_CLICK_TIME = C.SDL_HINT_MOUSE_DOUBLE_CLICK_TIME // specifies the double click time, in milliseconds
+ HINT_MOUSE_DOUBLE_CLICK_RADIUS = C.SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS // specifies the double click radius, in pixels.
HINT_MOUSE_RELATIVE_MODE_WARP = C.SDL_HINT_MOUSE_RELATIVE_MODE_WARP // specifies whether relative mouse mode is implemented using mouse warping
HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS = C.SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS // specifies if a Window is minimized if it loses key focus when in fullscreen mode
HINT_IDLE_TIMER_DISABLED = C.SDL_HINT_IDLE_TIMER_DISABLED // specifies a variable controlling whether the idle timer is disabled on iOS
|
Add tests for VAQ with both rate controls. | @@ -11,3 +11,5 @@ valgrind_test $common_args --no-rdoq --no-deblock --no-sao --no-signhide --subme
valgrind_test $common_args --no-rdoq --no-signhide --subme=0
valgrind_test $common_args --rdoq --no-deblock --no-sao --subme=0
valgrind_test $common_args --vaq=8
+valgrind_test $common_args --vaq=8 --bitrate 3500
+valgrind_test $common_args --vaq=8 --rc-algorithm oba --bitrate 3500
|
hoon: add staging redirections for mook, mock. | {$1 p/(list)} :: blocks
{$2 p/(list {@ta *})} :: error report
== ::
+++ noot $% {$0 p/*} :: success
+ {$1 p/*} :: block
+ {$2 p/(list tank)} :: stack trace
+ == ::
++ toon $% {$0 p/*} :: success
{$1 p/(list)} :: blocks
{$2 p/(list tank)} :: stack trace
++ mack
|= {sub/* fol/*}
^- (unit)
- =+ ton=(mink [sub fol] |=({* *} ~))
- ?.(?=({$0 *} ton) ~ [~ p.ton])
+ =+ ton=(mino [sub fol] |=({* *} ~))
+ ?.(?=({$0 *} ton) ~ [~ product.ton])
::
++ mino !.
~/ %mino
|= {{sub/* fol/*} gul/$-({* *} (unit (unit)))}
(mook (mink [sub fol] gul))
::
+++ moku
+ |= {{sub/* fol/*} gul/$-({* *} (unit (unit)))}
+ (moko (mino [sub fol] gul))
+::
+++ moko
+ |= ton/tono
+ ^- noot
+ ?. ?=({$2 *} ton) ton
+ :- %2
+ =+ yel=(lent trace.ton)
+ =. trace.ton
+ ?. (gth yel 1.024) trace.ton
+ %+ weld
+ (scag 512 trace.ton)
+ ^- (list {@ta *})
+ :_ (slag (sub yel 512) trace.ton)
+ :- %lose
+ %+ rap 3
+ "[skipped {(scow %ud (sub yel 1.024))} frames]"
+ |- ^- (list tank)
+ ?~ trace.ton ~
+ =+ rep=$(trace.ton t.trace.ton)
+ ?+ -.i.trace.ton rep
+ $hunk [(tank +.i.trace.ton) rep]
+ $lose [[%leaf (rip 3 (@ +.i.trace.ton))] rep]
+ $hand [[%leaf (scow %p (mug +.i.trace.ton))] rep]
+ $mean :_ rep
+ ?@ +.i.trace.ton [%leaf (rip 3 (@ +.i.trace.ton))]
+ =+ mac=(mack +.i.trace.ton +<.i.trace.ton)
+ ?~(mac [%leaf "####"] (tank u.mac))
+ $spot :_ rep
+ =+ sot=(spot +.i.trace.ton)
+ :+ %rose [":" ~ ~]
+ :~ (smyt p.sot)
+ => [ud=|=(a/@u (scow %ud a)) q.sot]
+ leaf+"<[{(ud p.p)} {(ud q.p)}].[{(ud p.q)} {(ud q.q)}]>"
+ == ==
+::
++ mook
|= ton/tone
^- toon
|
odissey: extend parser with keyword list | * Advanced PostgreSQL connection pooler.
*/
-typedef struct od_parsertoken od_parsertoken_t;
+typedef struct od_token od_token_t;
+typedef struct od_keyword od_keyword_t;
typedef struct od_parser od_parser_t;
enum {
@@ -19,7 +20,7 @@ enum {
OD_PARSER_STRING
};
-struct od_parsertoken
+struct od_token
{
int type;
int line;
@@ -32,13 +33,20 @@ struct od_parsertoken
} value;
};
+struct od_keyword
+{
+ int id;
+ char *name;
+ int name_len;
+};
+
struct od_parser
{
char *pos;
char *end;
- int line;
- od_parsertoken_t backlog[4];
+ od_token_t backlog[4];
int backlog_count;
+ int line;
};
static inline void
@@ -51,7 +59,7 @@ od_parser_init(od_parser_t *parser, char *string, int size)
}
static inline void
-od_parser_push(od_parser_t *parser, od_parsertoken_t *token)
+od_parser_push(od_parser_t *parser, od_token_t *token)
{
assert(parser->backlog_count < 4);
parser->backlog[parser->backlog_count] = *token;
@@ -59,7 +67,7 @@ od_parser_push(od_parser_t *parser, od_parsertoken_t *token)
}
static inline int
-od_parser_next(od_parser_t *parser, od_parsertoken_t *token)
+od_parser_next(od_parser_t *parser, od_token_t *token)
{
/* try to use backlog */
if (parser->backlog_count > 0) {
@@ -148,4 +156,17 @@ od_parser_next(od_parser_t *parser, od_parsertoken_t *token)
return token->type;
}
+static inline od_keyword_t*
+od_keyword_match(od_keyword_t *list, char *name, int name_len)
+{
+ od_keyword_t *current = &list[0];
+ for (; current->name; current++) {
+ if (current->name_len != name_len)
+ continue;
+ if (strncasecmp(current->name, name, name_len) == 0)
+ return current;
+ }
+ return NULL;
+}
+
#endif /* OD_PARSER_H */
|
interface: mentionText prefaces color with hash
Fixes profile overlays in mentions. | @@ -76,7 +76,7 @@ export function Mention(props: {
<ProfileOverlay
ship={ship}
contact={contact}
- color={uxToHex(contact?.color ?? '0x0')}
+ color={`#${uxToHex(contact?.color ?? '0x0')}`}
group={group}
onDismiss={onDismiss}
hideAvatars={false}
|
spawnd: don't spawn boot drivers | @@ -290,6 +290,7 @@ void spawn_app_domains(void)
|| strncmp(si.shortname, "cpu", si.shortnamelen) == 0
// Adding following condition for cases like "cpu_omap44xx"
|| strncmp(si.shortname, "cpu", strlen("cpu")) == 0
+ || strncmp(si.shortname, "boot_", strlen("boot_")) == 0
|| strncmp(si.shortname, "monitor", si.shortnamelen) == 0
|| strncmp(si.shortname, "mem_serv", si.shortnamelen) == 0
#ifdef __k1om__
|
Connection params tweaks. | @@ -197,7 +197,7 @@ static bool eir_found(struct bt_data *data, void *user_data)
LOG_DBG("Found existing connection");
split_central_process_connection(default_conn);
} else {
- param = BT_LE_CONN_PARAM_DEFAULT;
+ param = BT_LE_CONN_PARAM(0x0005, 0x000a, 5, 400);
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN,
param, &default_conn);
if (err) {
|
base: make atomics c++ safe | @@ -77,14 +77,14 @@ static inline bool atomic_dec_and_test(atomic_t *a)
return (atomic_sub_and_fetch(a, 1) == 0);
}
-static inline bool atomic_cmpxchg(atomic_t *a, int old, int new)
+static inline bool atomic_cmpxchg(atomic_t *a, int oldv, int newv)
{
- return __sync_bool_compare_and_swap(&a->cnt, old, new);
+ return __sync_bool_compare_and_swap(&a->cnt, oldv, newv);
}
-static inline int atomic_cmpxchg_val(atomic_t *a, int old, int new)
+static inline int atomic_cmpxchg_val(atomic_t *a, int oldv, int newv)
{
- return __sync_val_compare_and_swap(&a->cnt, old, new);
+ return __sync_val_compare_and_swap(&a->cnt, oldv, newv);
}
static inline long atomic64_read(const atomic64_t *a)
@@ -152,12 +152,12 @@ static inline bool atomic64_dec_and_test(atomic64_t *a)
return (atomic64_sub_and_fetch(a, 1) == 0);
}
-static inline bool atomic64_cmpxchg(atomic64_t *a, long old, long new)
+static inline bool atomic64_cmpxchg(atomic64_t *a, long oldv, long newv)
{
- return __sync_bool_compare_and_swap(&a->cnt, old, new);
+ return __sync_bool_compare_and_swap(&a->cnt, oldv, newv);
}
-static inline long atomic64_cmpxchg_val(atomic64_t *a, long old, long new)
+static inline long atomic64_cmpxchg_val(atomic64_t *a, long oldv, long newv)
{
- return __sync_val_compare_and_swap(&a->cnt, old, new);
+ return __sync_val_compare_and_swap(&a->cnt, oldv, newv);
}
|
VERSION bump to version 2.0.111 | @@ -62,7 +62,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 110)
+set(LIBYANG_MICRO_VERSION 111)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
|
add mkl support (addresses | @@ -15,6 +15,7 @@ MAKEFLAGS += -R
# use for parallel make
AR=./ar_lock.sh
+MKL?=0
CUDA?=0
ACML?=0
OMP?=1
@@ -107,6 +108,7 @@ else
endif
CXX ?= g++
+LINKER ?= $(CC)
@@ -131,6 +133,9 @@ CUDA_BASE ?= /usr/local/
ACML_BASE ?= /usr/local/acml/acml4.4.0/gfortran64_mp/
+# mkl
+MKL_BASE ?= /opt/intel/mkl/lib/intel64/
+
# fftw
ifneq ($(BUILDTYPE), MacOSX)
@@ -306,6 +311,12 @@ endif
endif
endif
+ifeq ($(MKL),1)
+BLAS_H := -I$(MKL_BASE)/include
+BLAS_L := -L$(MKL_BASE)/lib/intel64 -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core
+CPPFLAGS += -DUSE_MKL -DMKL_Complex8="complex float" -DMKL_Complex16="complex double"
+CFLAGS += -DUSE_MKL -DMKL_Complex8="complex float" -DMKL_Complex16="complex double"
+endif
@@ -464,7 +475,7 @@ endif
.SECONDEXPANSION:
$(TARGETS): % : src/main.c $(srcdir)/%.o $$(MODULES_%) $(MODULES)
- $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -Dmain_real=main_$@ -o $@ $+ $(FFTW_L) $(CUDA_L) $(BLAS_L) $(PNG_L) $(ISMRM_L) -lm
+ $(LINKER) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -Dmain_real=main_$@ -o $@ $+ $(FFTW_L) $(CUDA_L) $(BLAS_L) $(PNG_L) $(ISMRM_L) -lm
# rm $(srcdir)/[email protected]
UTESTS=$(shell $(root)/utests/utests-collect.sh ./utests/[email protected])
|
fixed sample to not run out of memory | @@ -11,7 +11,7 @@ typedef struct
Vect2D_f16 mov;
} _particule;
-_particule partics[MAX_PARTIC];
+_particule* partics;
s16 numpartic;
@@ -28,7 +28,7 @@ static void updatePartic(_particule *part_pos, s16 num);
static void drawPartic(_particule *part_pos, s16 num, u8 col);
-int main()
+int main(u16 hard)
{
char col;
@@ -41,8 +41,12 @@ int main()
// reduce DMA buffer size to avoid running out of memory (we don't need it)
DMA_setBufferSize(2048);
+ // init Bitmap engine (require a ton shit of memory)
BMP_init(TRUE, BG_A, PAL0, FALSE);
+ // allocate particules buffer
+ partics = MEM_alloc(sizeof(_particule) * MAX_PARTIC);
+
paused = 0;
col = 0xFF;
|
bcc/python: fix attach kprobe/kretprobe using regex
Attach kprobe/kretprobe using regular expression should fail
explicitly if no functions are traceable. Currently we catch
all exceptions and if no functions are available, program
continue with no BPF programs attached. In this commit, change
this behavior to explicitly report error to user. | @@ -782,11 +782,17 @@ class BPF(object):
if event_re:
matches = BPF.get_kprobe_functions(event_re)
self._check_probe_quota(len(matches))
+ failed = 0
+ probes = []
for line in matches:
try:
self.attach_kprobe(event=line, fn_name=fn_name)
except:
- pass
+ failed += 1
+ probes.append(line)
+ if failed == len(matches):
+ raise Exception("Failed to attach BPF program %s to kprobe %s" %
+ (fn_name, '/'.join(probes)))
return
self._check_probe_quota(1)
@@ -806,12 +812,19 @@ class BPF(object):
# allow the caller to glob multiple functions together
if event_re:
- for line in BPF.get_kprobe_functions(event_re):
+ matches = BPF.get_kprobe_functions(event_re)
+ failed = 0
+ probes = []
+ for line in matches:
try:
self.attach_kretprobe(event=line, fn_name=fn_name,
maxactive=maxactive)
except:
- pass
+ failed += 1
+ probes.append(line)
+ if failed == len(matches):
+ raise Exception("Failed to attach BPF program %s to kretprobe %s" %
+ (fn_name, '/'.join(probes)))
return
self._check_probe_quota(1)
|
metadata: rework intro | #
# SpecElektra is a specification language that describes content
-# of the global key database.
+# of KDB (the global key database).
#
-# Put simply, SpecElektra (configuration in the spec namespace)
+# Put simply, SpecElektra (i.e. configuration in the spec: namespace)
# allows you to describe how the configuration of the system looks
# like. For example, it allows you to describe which configuration
# files in which formats are present on the system.
#
# If your plugin/tool/API uses metadata, please add it here.
#
-# Some parts of this file are already used by tools
+# Some parts of this file are already used by tools:
#
-# 1. It can be mounted with the ni plugin, see scripts/mount-info and below
+# 1. It can be mounted with the ni plugin, see scripts/mount-info
# 2. It is checked for consistency with contracts of plugins, see
# tests/shell/check_meta.sh
#
#
# kdb mount-info
#
+# and keys will be below:
+#
+# kdb export system:/info/elektra/metadata/#0
+#
+# for example, to get the type of type:
+#
+# kdb meta-get system:/info/elektra/metadata/#0/type type
+#
[]
filename=METADATA.ini
|
Bugfix enable console RX UART for gdbstub for runtime mode only. | @@ -1515,9 +1515,9 @@ err:
esp_err_t uart_driver_install(uart_port_t uart_num, int rx_buffer_size, int tx_buffer_size, int event_queue_size, QueueHandle_t *uart_queue, int intr_alloc_flags)
{
esp_err_t r;
-#ifdef CONFIG_ESP_GDBSTUB_ENABLED
+#ifdef CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME
ESP_RETURN_ON_FALSE((uart_num != CONFIG_ESP_CONSOLE_UART_NUM), ESP_FAIL, UART_TAG, "UART used by GDB-stubs! Please disable GDB in menuconfig.");
-#endif // CONFIG_ESP_GDBSTUB_ENABLED
+#endif // CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME
ESP_RETURN_ON_FALSE((uart_num < UART_NUM_MAX), ESP_FAIL, UART_TAG, "uart_num error");
ESP_RETURN_ON_FALSE((rx_buffer_size > SOC_UART_FIFO_LEN), ESP_FAIL, UART_TAG, "uart rx buffer length error");
ESP_RETURN_ON_FALSE((tx_buffer_size > SOC_UART_FIFO_LEN) || (tx_buffer_size == 0), ESP_FAIL, UART_TAG, "uart tx buffer length error");
|
framer-802154: suppress src panid and put dest pan id by default | @@ -148,8 +148,6 @@ framer_802154_setup_params(packetbuf_attr_t (*get_attr)(uint8_t type),
params->fcf.ack_required = get_attr(PACKETBUF_ATTR_MAC_ACK);
params->fcf.sequence_number_suppression = FRAME802154_SUPPR_SEQNO;
}
- /* Compress PAN ID in outgoing frames by default */
- params->fcf.panid_compression = 1;
/* Set IE Present bit */
params->fcf.ie_list_present = get_attr(PACKETBUF_ATTR_MAC_METADATA);
@@ -211,6 +209,14 @@ framer_802154_setup_params(packetbuf_attr_t (*get_attr)(uint8_t type),
params->fcf.dest_addr_mode = FRAME802154_LONGADDRMODE;
}
}
+
+ /* Suppress Source PAN ID and put Destination PAN ID by default */
+ if(params->fcf.src_addr_mode == FRAME802154_SHORTADDRMODE ||
+ params->fcf.dest_addr_mode == FRAME802154_SHORTADDRMODE) {
+ params->fcf.panid_compression = 1;
+ } else {
+ params->fcf.panid_compression = 0;
+ }
}
/*---------------------------------------------------------------------------*/
static int
|
[scons] split function names, break some lines | @@ -337,23 +337,84 @@ if 1:
['sys/types.h', 'sys/un.h'],
])
- autoconf.haveFuncs(Split('fork stat lstat strftime dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
- strdup strerror strstr strtol sendfile getopt socket \
- gethostbyname poll epoll_ctl getrlimit chroot \
- getuid select signal pathconf madvise prctl\
- writev sigaction sendfile64 send_file kqueue port_create localtime_r posix_fadvise issetugid inet_pton \
- memset_s explicit_bzero clock_gettime pipe2 \
- arc4random_buf jrand48 srandom getloadavg'))
+ autoconf.haveFuncs([
+ 'arc4random_buf',
+ 'chroot',
+ 'clock_gettime',
+ 'dup2',
+ 'epoll_ctl',
+ 'explicit_bzero',
+ 'fork',
+ 'getcwd',
+ 'gethostbyname',
+ 'getloadavg',
+ 'getopt',
+ 'getrlimit',
+ 'getuid',
+ 'inet_ntoa',
+ 'inet_ntop',
+ 'inet_pton',
+ 'issetugid',
+ 'jrand48',
+ 'kqueue',
+ 'localtime_r',
+ 'lstat',
+ 'madvise',
+ 'memset_s',
+ 'memset',
+ 'mmap',
+ 'munmap',
+ 'pathconf',
+ 'pipe2',
+ 'poll',
+ 'port_create',
+ 'posix_fadvise',
+ 'prctl',
+ 'select',
+ 'send_file',
+ 'sendfile',
+ 'sendfile64',
+ 'sigaction',
+ 'signal',
+ 'socket',
+ 'srandom',
+ 'stat',
+ 'strchr',
+ 'strdup',
+ 'strerror',
+ 'strftime',
+ 'strstr',
+ 'strtol',
+ 'writev',
+ ])
autoconf.haveFunc('getentropy', 'sys/random.h')
autoconf.haveFunc('getrandom', 'linux/random.h')
autoconf.haveTypes(Split('pid_t size_t off_t'))
- autoconf.env.Append( LIBSQLITE3 = '', LIBXML2 = '', LIBMYSQL = '', LIBZ = '',
- LIBPGSQL = '', LIBDBI = '',
- LIBBZ2 = '', LIBCRYPT = '', LIBMEMCACHED = '', LIBFCGI = '', LIBPCRE = '',
- LIBLDAP = '', LIBLBER = '', LIBLUA = '', LIBDL = '', LIBUUID = '',
- LIBKRB5 = '', LIBGSSAPI_KRB5 = '', LIBGDBM = '', LIBSSL = '', LIBCRYPTO = '')
+ autoconf.env.Append(
+ LIBBZ2 = '',
+ LIBCRYPT = '',
+ LIBCRYPTO = '',
+ LIBDBI = '',
+ LIBDL = '',
+ LIBFCGI = '',
+ LIBGDBM = '',
+ LIBGSSAPI_KRB5 = '',
+ LIBKRB5 = '',
+ LIBLBER = '',
+ LIBLDAP = '',
+ LIBLUA = '',
+ LIBMEMCACHED = '',
+ LIBMYSQL = '',
+ LIBPCRE = '',
+ LIBPGSQL = '',
+ LIBSQLITE3 = '',
+ LIBSSL = '',
+ LIBUUID = '',
+ LIBXML2 = '',
+ LIBZ = '',
+ )
# have crypt_r/crypt, and is -lcrypt needed?
if autoconf.CheckLib('crypt'):
|
jenkins: do not run normal memcheck if nokdb is active | @@ -706,7 +706,7 @@ def buildAndTest(testName, image, extraCmakeFlags = [:],
if(testAll) {
ctest()
}
- if(testMem) {
+ if(testMem && !testNokdb) {
cmemcheck()
}
if(testNokdb) {
|
fix(canvas):image cache may expire after set canvas's buff | @@ -76,6 +76,7 @@ void lv_canvas_set_buffer(lv_obj_t * obj, void * buf, lv_coord_t w, lv_coord_t h
canvas->dsc.data = buf;
lv_img_set_src(obj, &canvas->dsc);
+ lv_img_cache_invalidate_src(&canvas->dsc);
}
void lv_canvas_set_px_color(lv_obj_t * obj, lv_coord_t x, lv_coord_t y, lv_color_t c)
|
Fix texture allocation I think; | @@ -52,16 +52,28 @@ static void lovrTextureAllocate(Texture* texture, TextureData* textureData) {
#ifndef EMSCRIPTEN
if (GLAD_GL_ARB_texture_storage) {
#endif
+ if (texture->type == TEXTURE_ARRAY) {
+ glTexStorage3D(texture->type, mipmapCount, internalFormat, w, h, texture->sliceCount);
+ } else {
glTexStorage2D(texture->type, mipmapCount, internalFormat, w, h);
+ }
#ifndef EMSCRIPTEN
} else {
for (int i = 0; i < mipmapCount; i++) {
- if (texture->type == TEXTURE_CUBE) {
+ switch (texture->type) {
+ case TEXTURE_2D:
+ glTexImage2D(texture->type, i, internalFormat, w, h, 0, glFormat, GL_UNSIGNED_BYTE, NULL);
+ break;
+
+ case TEXTURE_CUBE:
for (int face = 0; face < 6; face++) {
glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + face, i, internalFormat, w, h, 0, glFormat, GL_UNSIGNED_BYTE, NULL);
}
- } else {
- glTexImage2D(texture->type, i, internalFormat, w, h, 0, glFormat, GL_UNSIGNED_BYTE, NULL);
+ break;
+
+ case TEXTURE_ARRAY:
+ glTexImage3D(texture->type, i, internalFormat, w, h, texture->sliceCount, 0, glFormat, GL_UNSIGNED_BYTE, NULL);
+ break;
}
w = MAX(w >> 1, 1);
h = MAX(h >> 1, 1);
@@ -133,10 +145,27 @@ void lovrTextureReplacePixels(Texture* texture, TextureData* textureData, int sl
if (lovrTextureFormatIsCompressed(textureData->format)) {
Mipmap m; int i;
vec_foreach(&textureData->mipmaps, m, i) {
+ switch (texture->type) {
+ case TEXTURE_2D:
+ case TEXTURE_CUBE:
glCompressedTexImage2D(binding, i, glInternalFormat, m.width, m.height, 0, m.size, m.data);
+ break;
+ case TEXTURE_ARRAY:
+ glCompressedTexSubImage3D(binding, i, 0, 0, slice, m.width, m.height, 1, glInternalFormat, m.size, m.data);
+ break;
+ }
}
} else {
+ switch (texture->type) {
+ case TEXTURE_2D:
+ case TEXTURE_CUBE:
glTexSubImage2D(binding, 0, 0, 0, textureData->width, textureData->height, glFormat, GL_UNSIGNED_BYTE, textureData->data);
+ break;
+ case TEXTURE_ARRAY:
+ glTexSubImage3D(binding, 0, 0, 0, slice, textureData->width, textureData->height, 1, glFormat, GL_UNSIGNED_BYTE, textureData->data);
+ break;
+ }
+
if (texture->mipmaps) {
glGenerateMipmap(texture->type);
}
|
Remove Limitations section | @@ -91,14 +91,3 @@ make run
Run 'make help' for more details.
View the OpenMP Examples [README](../examples/openmp) for more information.
-
-## AOMP Limitations
-
-<A NAME="Limitations">
-
-See the release notes in github. Here are some limitations.
-
-```
- - Dwarf debugging is turned off for GPUs. -g will turn on host level debugging only.
- - Some simd constructs fail to vectorize on both host and GPUs.
-```
|
base64: Replace toml with ni | @@ -111,12 +111,12 @@ The following example shows you how you can use the TOML plugin together with Ba
```sh
# Mount TOML and Base64 plugin (provides `binary`) with the configuration key `binary/meta`
-kdb mount test_config.toml user/tests/base64 toml base64 binary/meta=
+kdb mount test_config.toml user/tests/base64 ni base64 binary/meta=
# Save base64 encoded data `"value"` (`0x76616c7565`)
kdb set user/tests/base64/encoded dmFsdWUA
kdb file user/tests/base64/encoded | xargs cat | grep encoded
-#> encoded = "dmFsdWUA"
+#> encoded = dmFsdWUA
# Tell Base64 plugin to decode and encode key value
kdb meta-set user/tests/base64/encoded type binary
|
[TRIE] add test for private update | @@ -22,6 +22,51 @@ import (
//"github.com/dgraph-io/badger/options"
)
+func TestEmptyModTrie(t *testing.T) {
+ smt := NewModSMT(32, hash, nil)
+ if !bytes.Equal(smt.DefaultHash(256), smt.Root) {
+ t.Fatal("empty trie root hash not correct")
+ }
+}
+
+func TestModUpdateAndGet(t *testing.T) {
+ smt := NewModSMT(32, hash, nil)
+
+ // Add data to empty trie
+ keys := getFreshData(10, 32)
+ values := getFreshData(10, 32)
+ root, _ := smt.update(smt.Root, keys, values, smt.TrieHeight, nil)
+
+ // Check all keys have been stored
+ for i, key := range keys {
+ value, _ := smt.get(root, key, smt.TrieHeight)
+ if !bytes.Equal(values[i], value) {
+ t.Fatal("value not updated")
+ }
+ }
+
+ // Append to the trie
+ newKeys := getFreshData(5, 32)
+ newValues := getFreshData(5, 32)
+ newRoot, _ := smt.update(root, newKeys, newValues, smt.TrieHeight, nil)
+ if bytes.Equal(root, newRoot) {
+ t.Fatal("trie not updated")
+ }
+ for i, newKey := range newKeys {
+ newValue, _ := smt.get(newRoot, newKey, smt.TrieHeight)
+ if !bytes.Equal(newValues[i], newValue) {
+ t.Fatal("failed to get value")
+ }
+ }
+ // Check old keys are still stored
+ for i, key := range keys {
+ value, _ := smt.get(root, key, smt.TrieHeight)
+ if !bytes.Equal(values[i], value) {
+ t.Fatal("failed to get value")
+ }
+ }
+}
+
func TestModPublicUpdateAndGet(t *testing.T) {
smt := NewModSMT(32, hash, nil)
// Add data to empty trie
|
add gcc8 version matching | @@ -333,6 +333,7 @@ GCCVERSIONGTEQ4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 4)
GCCVERSIONGT4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \> 4)
GCCVERSIONGT5 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \> 5)
GCCVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 7)
+GCCVERSIONGTEQ8 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 8)
GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9)
GCCVERSIONGTEQ11 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 11)
GCCVERSIONGTEQ10 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 10)
|
snap screen up with the software keyboard on Android, scale border to whole window | @@ -590,24 +590,33 @@ static void calcTextureRect(SDL_Rect* rect)
{
bool integerScale = studio_config(platform.studio)->options.integerScale;
- SDL_GetWindowSize(platform.window, &rect->w, &rect->h);
+ s32 sw, sh, w, h;
+ SDL_GetWindowSize(platform.window, &sw, &sh);
enum{Width = TIC80_FULLWIDTH, Height = TIC80_FULLHEIGHT};
- s32 w, h;
-
- if (rect->w * Height < rect->h * Width)
+ if (sw * Height < sh * Width)
{
- w = rect->w - (integerScale ? rect->w % Width : 0);
+ w = sw - (integerScale ? sw % Width : 0);
h = Height * w / Width;
}
else
{
- h = rect->h - (integerScale ? rect->h % Height : 0);
+ h = sh - (integerScale ? sh % Height : 0);
w = Width * h / Height;
}
- *rect = (SDL_Rect){(rect->w - w) / 2, (rect->h - h) / 2, w, h};
+ *rect = (SDL_Rect)
+ {
+ (sw - w) / 2,
+#if defined (TOUCH_INPUT_SUPPORT)
+ // snap the screen up to get a place for the software keyboard
+ sw > sh ? (sh - h) / 2 : 0,
+#else
+ (sh - h) / 2,
+#endif
+ w, h
+ };
}
static void processMouse()
@@ -1555,15 +1564,29 @@ static void gpuTick()
#endif
{
- enum {Header = TIC80_OFFSET_TOP, Top = TIC80_OFFSET_TOP, Left = TIC80_OFFSET_LEFT};
+ s32 w, h;
+ SDL_GetWindowSize(platform.window, &w, &h);
- s32 width = 0;
- SDL_GetWindowSize(platform.window, &width, NULL);
+ static const SDL_Rect Src[] =
+ {
+ {0, 0, TIC80_FULLWIDTH, TIC80_OFFSET_TOP},
+ {0, TIC80_FULLHEIGHT-TIC80_OFFSET_TOP, TIC80_FULLWIDTH, TIC80_OFFSET_TOP},
+ {0, 0, TIC80_OFFSET_LEFT, TIC80_FULLHEIGHT},
+ {TIC80_FULLWIDTH-TIC80_OFFSET_LEFT, 0, TIC80_OFFSET_LEFT, TIC80_FULLHEIGHT},
+ {0, 0, TIC80_FULLWIDTH, TIC80_FULLHEIGHT},
+ };
- SDL_Rect src = {0, 0, TIC80_FULLWIDTH, TIC80_FULLHEIGHT};
- SDL_Rect dst = {rect.x, rect.y, rect.w, rect.h};
+ const SDL_Rect Dst[] =
+ {
+ {0, 0, w, rect.y},
+ {0, rect.y + rect.h, w, h - (rect.y + rect.h)},
+ {0, rect.y, rect.x, rect.h},
+ {rect.x + rect.w, rect.y, w - (rect.x + rect.w), rect.h},
+ {rect.x, rect.y, rect.w, rect.h}
+ };
- renderCopy(platform.screen.renderer, platform.screen.texture, src, dst);
+ for(s32 i = 0; i < COUNT_OF(Src); ++i)
+ renderCopy(platform.screen.renderer, platform.screen.texture, Src[i], Dst[i]);
}
#if defined(TOUCH_INPUT_SUPPORT)
|
Add echo statements to Travis Build | @@ -79,3 +79,13 @@ rm -rf libcrypto-root && ln -s $LIBCRYPTO_ROOT libcrypto-root
# Set the libfuzzer to use for fuzz tests
export LIBFUZZER_ROOT=$LIBFUZZER_INSTALL_DIR
+
+echo "TRAVIS_OS_NAME=$TRAVIS_OS_NAME"
+echo "S2N_LIBCRYPTO=$S2N_LIBCRYPTO"
+echo "BUILD_S2N=$BUILD_S2N"
+echo "GCC6_REQUIRED=$GCC6_REQUIRED"
+echo "LATEST_CLANG=$LATEST_CLANG"
+echo "TESTS=$TESTS"
+echo "PATH=$PATH"
+echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
+
|
docs: make sure NetworkManager is running on rhel when enabling IPoIB | @@ -40,7 +40,8 @@ naming as appropriate if system contains dual-ported or multiple HCAs).
[sms](*\#*) perl -pi -e "s/master_ipoib/${sms_ipoib}/" /etc/sysconfig/network-scripts/ifcfg-ib0
[sms](*\#*) perl -pi -e "s/ipoib_netmask/${ipoib_netmask}/" /etc/sysconfig/network-scripts/ifcfg-ib0
-# Initiate ib0
+# Verify NetworkManager is running and initiate ib0
+[sms](*\#*) systemctl start NetworkManager
[sms](*\#*) ifup ib0
\end{lstlisting}
% ohpc_indent 0
|
Even more ScePowerForDriver NIDs | @@ -4097,6 +4097,31 @@ modules:
nid: 0x1082DA7F
ScePowerForDriver:
functions:
+ kscePowerGetResumeCount: 0x0074EF9B
+ kscePowerRegisterCallback: 0x04B7766E
+ kscePowerIsBatteryExist: 0x0AFD0D8B
+ kscePowerIsBatteryCharging: 0x1E490401
+ kscePowerGetBatteryLifePercent: 0x2085D15D
+ kscePowerWlanDeactivate: 0x23BB0A60
+ kscePowerBatteryUpdateInfo: 0x27F3292C
+ kscePowerGetBatteryTemp: 0x28E12023
+ kscePowerEncodeUBattery: 0x3951AF53
+ kscePowerGetBusClockFrequency: 0x478FE6F5
+ kscePowerGetBatteryVolt: 0x483CE86B
+ kscePowerGetCaseTemp: 0x525592E4
+ kscePowerWlanActivate: 0x6D2CA84B
+ kscePowerIsRequest: 0x7FA406DD
+ kcePowerGetBatteryElec: 0x862AE1A6
+ kscePowerIsPowerOnline: 0x87440F5E
+ kscePowerGetBatteryLifeTime: 0x8EFB3FA2
+ kscePowerGetBatteryRemainCapacity: 0x94F5A53F
+ kscePowerGetBatteryChargingStatus: 0xB4432BC8
+ kscePowerSetBusClockFrequency: 0xB8D7B3FB
+ kscePowerIsLowBattery: 0xD3075926
+ kscePowerCancelRequest: 0xDB62C9CF
+ kscePowerUnregisterCallback: 0xDFA8BAF8
+ kscePowerGetIdleTimer: 0xEDC13FE5
+ kscePowerTick: 0xEFD3C963
kscePowerGetWakeupFactor: 0x9F26222A
kscePowerRequestColdReset: 0x0442D852
kscePowerRequestDisplayOff: 0x160EB506
@@ -4106,6 +4131,7 @@ modules:
kscePowerRequestStandby: 0x2B7C7CF4
kscePowerRequestSuspend: 0xAC32C9CC
kscePowerSetBatteryFakeStatus: 0x0C6973B8
+ kscePowerSetIdleCallback: 0x1BA2FCAE
kscePowerSetMipsClockFrequency: 0xFFC84E69
kscePowerSetPowerSwMode: 0xC1853BA7
kscePowerGetPowerSwMode: 0x165CE085
|
Fix animation alpha; | @@ -76,8 +76,12 @@ void lovrAnimatorUpdate(Animator* animator, float dt) {
}
bool lovrAnimatorEvaluate(Animator* animator, const char* bone, mat4 transform) {
- bool touched = false;
+ float mixedTranslation[3] = { 0, 0, 0 };
+ float mixedRotation[4] = { 0, 0, 0, 1 };
+ float mixedScale[3] = { 1, 1, 1 };
+
Track* track; int i;
+ bool touched = false;
vec_foreach(&animator->trackList, track, i) {
Animation* animation = track->animation;
AnimationChannel* channel = map_get(&animation->channels, bone);
@@ -115,7 +119,7 @@ bool lovrAnimatorEvaluate(Animator* animator, const char* bone, mat4 transform)
vec3_lerp(vec3_init(translation, before.data), after.data, t);
}
- mat4_translate(transform, translation[0], translation[1], translation[2]);
+ vec3_lerp(mixedTranslation, translation, track->alpha);
touched = true;
}
@@ -145,7 +149,7 @@ bool lovrAnimatorEvaluate(Animator* animator, const char* bone, mat4 transform)
quat_slerp(quat_init(rotation, before.data), after.data, t);
}
- mat4_rotateQuat(transform, rotation);
+ quat_slerp(mixedRotation, rotation, track->alpha);
touched = true;
}
@@ -175,11 +179,15 @@ bool lovrAnimatorEvaluate(Animator* animator, const char* bone, mat4 transform)
vec3_lerp(vec3_init(scale, before.data), after.data, t);
}
- mat4_scale(transform, scale[0], scale[1], scale[2]);
+ vec3_lerp(mixedScale, scale, track->alpha);
touched = true;
}
}
+ mat4_translate(transform, mixedTranslation[0], mixedTranslation[1], mixedTranslation[2]);
+ mat4_rotateQuat(transform, mixedRotation);
+ mat4_scale(transform, mixedScale[0], mixedScale[1], mixedScale[2]);
+
return touched;
}
|
removes clay mount auto-sync on restart | @@ -1199,8 +1199,6 @@ u3_unix_ef_hill(u3_pier *pir_u, u3_noun hil)
_unix_scan_mount_point(pir_u, mon_u);
}
u3z(hil);
- pir_u->unx_u->dyr = c3y;
- u3_unix_ef_look(pir_u, c3y);
}
/* u3_unix_io_init(): initialize unix sync.
|
Print errors on code ran from Swift | -from pyto import Python
+from pyto import Python, PyOutputHelper, ConsoleViewController
from time import sleep
from console import run_script
import threading
+import traceback
import stopit
def raise_exception(script, exception):
@@ -31,7 +32,9 @@ while True:
if code == Python.shared.codeToRun:
Python.shared.codeToRun = None
except:
- pass
+ error = traceback.format_exc()
+ PyOutputHelper.printError(error, script=None)
+ Python.shared.codeToRun = None
if Python.shared.scriptToRun != None:
@@ -53,4 +56,7 @@ while True:
if Python.shared.scriptsToInterrupt.count != 0:
Python.shared.scriptsToInterrupt = []
+ if ConsoleViewController.isPresentingView:
+ sleep(0.02)
+ else:
sleep(0.2)
|
wifi/netif: Fix wifi_ap_handlers comments to relate to AP | @@ -50,7 +50,7 @@ esp_err_t esp_netif_attach_wifi_ap(esp_netif_t *esp_netif);
esp_err_t esp_wifi_set_default_wifi_sta_handlers(void);
/**
- * @brief Sets default wifi event handlers for STA interface
+ * @brief Sets default wifi event handlers for AP interface
*
* @return
* - ESP_OK on success, error returned from esp_event_handler_register if failed
|
first attempt at coll resize | @@ -869,8 +869,9 @@ static void coll_embedhook(t_pd *z, t_binbuf *bb, t_symbol *bindsym){
binbuf_add(bb, cnt, at);
binbuf_add(bb, ep->e_size, ep->e_data);
binbuf_addsemi(bb);
- }
- }
+ };
+ };
+ if(x->x_ob.te_width != 0) binbuf_addv(bb, "ssf;", &s__X, gensym("f"), (float)x->x_ob.te_width);
}
static void collcommon_editorhook(t_pd *z, t_symbol *s, int ac, t_atom *av){
@@ -2053,3 +2054,4 @@ CYCLONE_OBJ_API void coll_setup(void){
have it around, just in case... */
hammerfile_setup(collcommon_class, 0);
}
+
|
landscape: support pending state in migration | ~
`[flag members.u.group u.assoc graph]
::
+++ import-flags
+ |= [=^groups =associations:met =network:gra]
+ |= =mark
+ ^- (set flag:i)
+ ~(key by ((import-for-mark ~ groups associations network) mark))
+::
++ import-for-mark
- |= [her=ship =^groups =associations:met =network:gra]
+ |= [her=(unit ship) =^groups =associations:met =network:gra]
|= =mark
^- imports:graph:i
%- ~(gas by *imports:graph:i)
%+ murn ~(tap by graphs.network)
|= [=flag:i graph=graph:gra mar=(unit ^mark)]
- ?. =(p.flag her)
+ ?. |(=(`p.flag her) =(her ~))
~
?. =(mar `mark) :: XX: correct detection?
~
=+ groups
=/ ships (peers network)
=/ dms (~(get by graphs:network) [our.bowl %dm-inbox])
- =/ import (import-for-mark our.bowl groups associations network)
+ =/ import (import-for-mark `our.bowl groups associations network)
=/ clubs (import-club groups associations network)
=/ chats=imports:graph:i
(import %graph-validator-chat)
~
`[flag u.assoc chans roles group]
=/ dms (~(get by graphs:network) [our.bowl %dm-inbox])
- :_ ~
- %+ welp
- ^- (list card)
- %- zing
- %+ turn ~(tap in (~(put in ships) our.bowl))
- |= =ship
- (migrate-ship ship)
- ^- (list card)
- ::
+ =/ flag-importer (import-flags groups associations network)
+ =+ :* chat-flags=(flag-importer %graph-validator-chat)
+ heap-flags=(flag-importer %graph-validator-link)
+ diary-flags=(flag-importer %graph-validator-publish)
+ ==
+ :_ ships
:* (poke-our %groups group-import+!>(imports))
+ (poke-our %chat import-flags+!>(chat-flags))
+ (poke-our %heap import-flags+!>(heap-flags))
+ (poke-our %diary import-flags+!>(diary-flags))
(poke-our %chat club-imports+!>(clubs))
?~ dms ~
(poke-our %chat dm-imports+!>(p.u.dms))^~
=+ groups
=+ network
=+ associations
- =/ import (import-for-mark her groups associations network)
+ =/ import (import-for-mark `her groups associations network)
=/ chats=imports:graph:i
(import %graph-validator-chat)
=/ diarys=imports:graph:i
|
better subpackage name | @@ -293,12 +293,12 @@ Group: System Environment/Base
Pdsh module providing support for targeting hosts based on netgroup.
Provides -g groupname and -X groupname options to pdsh.
-%package mod-slurm
+%package -n pdsh-mod-slurm%{PROJ_DELIM}
Summary: Provides support for running pdsh under SLURM allocations
Group: System Environment/Base
Requires: slurm
BuildRequires: slurm-devel%{PROJ_DELIM}
-%description mod-slurm
+%description -n pdsh-mod-slurm%{PROJ_DELIM}
Pdsh module providing support for gathering the list of target nodes
from an allocated SLURM job.
@@ -428,7 +428,7 @@ rm -rf "$RPM_BUILD_ROOT"
%endif
%if %{?_with_slurm:1}%{!?_with_slurm:0}
-%files mod-slurm
+%files -n pdsh-mod-slurm%{PROJ_DELIM}
%{install_path}/lib/pdsh/slurm.*
%endif
|
Fixing memory leak introduced in changeset | @@ -2451,7 +2451,10 @@ nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg,
goto fail;
}
- if (nxt_buf_mem_used_size(&b->mem) != 0) {
+ if (nxt_buf_mem_used_size(&b->mem) == 0) {
+ nxt_work_queue_add(&task->thread->engine->fast_work_queue,
+ b->completion_handler, task, b, b->parent);
+ } else {
nxt_buf_chain_add(&r->out, b);
}
|
cli: fs.open/fs.close events, change file_name to file | @@ -67,8 +67,8 @@ var sourceFields = map[string][]string{
"http_status"},
"http-metrics": {"duration",
"req_per_sec"},
- "fs.open": {"file_name"},
- "fs.close": {"file_name",
+ "fs.open": {"file"},
+ "fs.close": {"file",
"file_read_bytes",
"file_read_ops",
"file_write_bytes",
|
sysrepo BUGFIX recursive oper subscription type analysis
Children nodes must be checked in case there
are state nodes under config nodes.
Fixes | @@ -4385,6 +4385,7 @@ sr_oper_get_items_subscribe(sr_session_ctx_t *session, const char *module_name,
sr_conn_ctx_t *conn;
char *schema_path = NULL;
const struct lys_module *mod;
+ struct lys_node *next, *elem;
struct ly_set *set = NULL;
sr_mod_oper_sub_type_t sub_type;
sr_mod_t *shm_mod;
@@ -4428,24 +4429,28 @@ sr_oper_get_items_subscribe(sr_session_ctx_t *session, const char *module_name,
/* find out what kinds of nodes are provided */
sub_type = SR_OPER_SUB_NONE;
for (i = 0; i < set->number; ++i) {
- switch (set->set.s[i]->flags & LYS_CONFIG_MASK) {
- case LYS_CONFIG_R:
+ LY_TREE_DFS_BEGIN(set->set.s[i], next, elem) {
+ if ((elem->flags & LYS_CONFIG_MASK) == LYS_CONFIG_R) {
if (sub_type == SR_OPER_SUB_CONFIG) {
sub_type = SR_OPER_SUB_MIXED;
} else {
sub_type = SR_OPER_SUB_STATE;
}
- break;
- case LYS_CONFIG_W:
+ } else {
+ assert((elem->flags & LYS_CONFIG_MASK) == LYS_CONFIG_W);
if (sub_type == SR_OPER_SUB_STATE) {
sub_type = SR_OPER_SUB_MIXED;
} else {
sub_type = SR_OPER_SUB_CONFIG;
}
+ }
+
+ if ((sub_type == SR_OPER_SUB_STATE) || (sub_type == SR_OPER_SUB_MIXED)) {
+ /* redundant to look recursively */
break;
- default:
- SR_ERRINFO_INT(&err_info);
- goto error_unlock;
+ }
+
+ LY_TREE_DFS_END(set->set.s[i], next, elem);
}
if (sub_type == SR_OPER_SUB_MIXED) {
|
in_tail: warn the user if Multiline is On and it's using a single Parser | @@ -97,6 +97,13 @@ int flb_tail_mult_create(struct flb_tail_config *ctx,
}
}
+ /* Double check and warn if the user is using something not expected */
+ tmp = flb_input_get_property("parser", i_ins);
+ if (tmp) {
+ flb_warn("[in_tail] the 'Parser %s' config is omitted in Multiline mode",
+ tmp);
+ }
+
return 0;
}
|
Disable MSVC exceptions. | @@ -323,7 +323,7 @@ if (sys.platform != 'darwin' and sys.platform != 'win32') or env['TOOLSET'] == '
env.VariantDir('$VARIANT', '$LIBTCOD_ROOT_DIR')
env_libtcod = env.Clone()
-env_libtcod.Append(CPPDEFINES=['LIBTCOD_EXPORTS'])
+env_libtcod.Append(CPPDEFINES=['LIBTCOD_EXPORTS', ('_HAS_EXCEPTIONS', 0)])
if not using_msvc:
env_libtcod.Prepend(CFLAGS=['-std=c99'])
@@ -375,7 +375,7 @@ libtcod = env_libtcod.SharedLibrary(
env_libtcod_gui = env.Clone()
env_libtcod_gui.Append(
- CPPDEFINES=['LIBTCOD_GUI_EXPORTS'],
+ CPPDEFINES=['LIBTCOD_GUI_EXPORTS', ('_HAS_EXCEPTIONS', 0)],
LIBS=['libtcod' if sys.platform == 'win32' else 'tcod'],
)
|
[snitch] Implement bypass logic | @@ -41,6 +41,7 @@ module snitch_read_only_cache #(
) (
input logic clk_i,
input logic rst_ni,
+ input logic enable_i,
input logic flush_valid_i,
output logic flush_ready_o,
input logic [AxiAddrWidth-1:0] start_addr_i [NrAddrRules],
@@ -171,8 +172,20 @@ module snitch_read_only_cache #(
// select logic
always_comb begin
- // TODO(zarubaf): Cache selection logic.
+ // Cache selection logic.
slv_ar_select = dec_ar;
+ // Bypass all atomic requests
+ if (axi_slv_req_i.ar.lock) begin
+ slv_ar_select = Bypass;
+ end
+ // Wrapping bursts are currently not supported.
+ if (axi_slv_req_i.ar.burst == axi_pkg::BURST_WRAP) begin
+ slv_ar_select = Bypass;
+ end
+ // Bypass cache if disabled
+ if (enable_i == 1'b0) begin
+ slv_ar_select = Bypass;
+ end
end
localparam PendingCount = 2**AxiIdWidth; // TODO: Necessary for now to support all IDs requesting the same address in the handler
|
Don't raise errors at setting signals, calling `os.fork` and `os.waitpid`
Yes that's horrible, but many third party module don't care about sandbox and always assume that we can call subprocesses, handle signals etc. | @@ -28,6 +28,7 @@ from _ios_getpass import getpass as _ios_getpass
import getpass
import webbrowser
import sharing
+import _signal
from pip import BUNDLED_MODULES
# MARK: - Warnings
@@ -124,11 +125,32 @@ __builtins__.Target = pyto.SelectorTarget.shared
__builtins__.deprecated = ["runAsync", "runSync", "generalPasteboard", "setString", "setStrings", "setImage", "setImages", "setURL", "setURLs", "showViewController", "closeViewController", "mainLoop", "openURL", "shareItems", "pickDocumentsWithFilePicker", "_get_variables_hierarchy"]
-# Pip bundled modules
+# MARK: - Pip bundled modules
if pyto.PipViewController != None:
pyto.PipViewController.bundled = BUNDLED_MODULES
+# MARK: - OS
+
+def fork():
+ pass
+
+def waitpid(pid, options):
+ return (-1, 0)
+
+os.fork = fork
+os.waitpid = waitpid
+
+# MARK: -Handle signal called outside main thread
+
+old_signal = _signal.signal
+def signal(signal, handler):
+ if threading.main_thread() == threading.current_thread():
+ return old_signal(signal, handler)
+ else:
+ return None
+_signal.signal = signal
+
# MARK: - Run script
while True:
|
[LWIP] Update LwIP 2.0.2 opts header file for rtt. | #define DEFAULT_UDP_RECVMBOX_SIZE 1
/* ---------- RAW options ---------- */
+#ifdef RT_LWIP_RAW
+#define LWIP_RAW 1
+#else
+#define LWIP_RAW 0
+#endif
+
#define DEFAULT_RAW_RECVMBOX_SIZE 1
#define DEFAULT_ACCEPTMBOX_SIZE 10
#endif /* PPP_SUPPORT */
-/* no read/write/close for socket */
+/**
+ * LWIP_POSIX_SOCKETS_IO_NAMES==1: Enable POSIX-style sockets functions names.
+ * Disable this option if you use a POSIX operating system that uses the same
+ * names (read, write & close). (only used if you use sockets.c)
+ */
+#ifndef LWIP_POSIX_SOCKETS_IO_NAMES
#define LWIP_POSIX_SOCKETS_IO_NAMES 0
+#endif
+
+/**
+ * LWIP_TCP_KEEPALIVE==1: Enable TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT
+ * options processing. Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set
+ * in seconds. (does not require sockets.c, and will affect tcp.c)
+ */
+#ifndef LWIP_TCP_KEEPALIVE
+#define LWIP_TCP_KEEPALIVE 1
+#endif
+
+/**
+ * LWIP_NETIF_API==1: Support netif api (in netifapi.c)
+ */
+#ifndef LWIP_NETIF_API
#define LWIP_NETIF_API 1
+#endif
/* MEMP_NUM_SYS_TIMEOUT: the number of simulateously active timeouts. */
#define MEMP_NUM_SYS_TIMEOUT (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + PPP_SUPPORT)
|
Fix function parsing for debugger.
Since the JerryScript can able to parse functions directly the
PARSER_LEXICAL_ENV_NEEDED and the PARSER_NO_REG_STORE flags
should be in the context's status flags for executing eval operations
by the debugger.
JerryScript-DCO-1.0-Signed-off-by: Imre Kiss | @@ -2117,6 +2117,14 @@ parser_parse_source (const uint8_t *arg_list_p, /**< function argument list */
else
{
context.status_flags = PARSER_IS_FUNCTION;
+#ifdef JERRY_DEBUGGER
+ if (JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED)
+ {
+ /* This option has a high memory and performance costs,
+ * but it is necessary for executing eval operations by the debugger. */
+ context.status_flags |= PARSER_LEXICAL_ENV_NEEDED | PARSER_NO_REG_STORE;
+ }
+#endif /* JERRY_DEBUGGER */
context.source_p = arg_list_p;
context.source_end_p = arg_list_p + arg_list_size;
}
|
Fix state restoration on the REPL | @@ -128,9 +128,12 @@ import UIKit
if !opened, let script = editor?.document?.fileURL.path, !Python.shared.isScriptRunning(script) {
opened = true
editor?.currentDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0]
- DispatchQueue.main.asyncAfter(deadline: .now()+0.3) {
+ _ = Timer.scheduledTimer(withTimeInterval: 0.3, repeats: true, block: { (timer) in
+ if Python.shared.isSetup && isUnlocked {
self.editor?.run()
+ timer.invalidate()
}
+ })
}
if #available(iOS 13.0, *) {
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.