Skip to content

Instantly share code, notes, and snippets.

diff --git a/include/http_config.h b/include/http_config.h
index c93c3b2..ade284b 100644
--- a/include/http_config.h
+++ b/include/http_config.h
@@ -269,20 +269,22 @@ struct ap_configfile_t {
/**< an apr_file_gets()-like function */
apr_status_t (*getstr) (void *buf, apr_size_t bufsiz, void *param);
/**< a close handler function */
apr_status_t (*close) (void *param);
/**< the argument passed to getch/getstr/close */
From dac14b44692297e60f909bcb03cf209652f97b09 Mon Sep 17 00:00:00 2001
From: Adam Saponara <as@php.net>
Date: Mon, 15 Aug 2022 22:31:13 -0400
Subject: [PATCH] Add intadd function
---
ext/standard/basic_functions.stub.php | 3 +++
ext/standard/basic_functions_arginfo.h | 6 +++++-
ext/standard/math.c | 14 ++++++++++++++
ext/standard/tests/math/intadd.phpt | 14 ++++++++++++++
From e3e2c987154055fceea4d459c34699a44d36cada Mon Sep 17 00:00:00 2001
From: Adam Saponara <as@php.net>
Date: Wed, 3 Aug 2022 18:27:14 -0400
Subject: [PATCH] Add sixel support
---
terminal/terminal-preferences-dialog.c | 15 +++++++++++++++
terminal/terminal-preferences.c | 11 +++++++++++
terminal/terminal-screen.c | 16 +++++++++++++++-
3 files changed, 41 insertions(+), 1 deletion(-)
<?php
declare(strict_types=1);
$libreadline_so = __DIR__ . '/vendor/readline/shlib/libreadline.so.8.1';
$readline_h = <<<'EOD'
int rl_catch_signals;
int rl_catch_sigwinch;
int rl_change_environment;
int rl_point;
char *rl_display_prompt;
diff --git a/codegen.sh b/codegen.sh
index 7b0cc81..60d4aa7 100755
--- a/codegen.sh
+++ b/codegen.sh
@@ -3,6 +3,7 @@ set -uo pipefail
read -r -d '' builtin_terms <<'EOD'
xterm
+ xterm-256color
linux
Apache 2.4.x:
adam@asx1c9:~/httpd$ bin/httpd -V
Server version: Apache/2.4.52 (Unix)
Server built: May 12 2022 13:13:11
Server's Module Magic Number: 20120211:121
Server loaded: APR 2.0.0-dev
Compiled using: APR 2.0.0-dev
Architecture: 64-bit
Server MPM: prefork
diff --git a/include/httpd.h b/include/httpd.h
index 2057ec31b2..e9f850c310 100644
--- a/include/httpd.h
+++ b/include/httpd.h
@@ -812,40 +812,42 @@ typedef struct request_rec request_rec;
typedef struct conn_state_t conn_state_t;
/* ### would be nice to not include this from httpd.h ... */
/* This comes after we have defined the request_rec type */
#include "apr_uri.h"
diff --git a/keys.h b/keys.h
index c0a242b..efc8e84 100644
--- a/keys.h
+++ b/keys.h
@@ -1,4 +1,5 @@
// kname modmin modadd ch key
+MLE_KEY_DEF("space", TB_MOD_CTRL, 0, 0, TB_KEY_CTRL_TILDE)
MLE_KEY_DEF("~", TB_MOD_CTRL, 0, 0, TB_KEY_CTRL_TILDE)
MLE_KEY_DEF("2", TB_MOD_CTRL, 0, 0, TB_KEY_CTRL_TILDE)
MLE_KEY_DEF("a", TB_MOD_CTRL, 0, 0, TB_KEY_CTRL_A)
diff --git a/uscript.c b/uscript.c
index 17cf1d3..5af186a 100644
--- a/uscript.c
+++ b/uscript.c
@@ -170,29 +170,51 @@ static void _uscript_push_event_map(uscript_t *uscript, char *event_name, void *
luaL_pushkey(L, pointer, "bview", event_data);
return;
} else if (strncmp(event_name, "cmd:", 4) == 0) {
_uscript_push_cmd_map(L, (cmd_context_t*)event_data);
return;
<?php
$ffi = FFI::cdef(<<<'EOD'
void *sem_open(const char *name, int oflag, int mode, int value);
int sem_post(void *sem);
int sem_wait(void *sem);
int sem_getvalue(void *sem, int *sval);
int sem_unlink(const char *name);
int sem_close(void *sem);
EOD