Continue trying to make the android build smaller.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4240 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-03-20 00:29:46 +00:00
parent a94d6f9271
commit ebef51b4ea
9 changed files with 19 additions and 38 deletions

View File

@ -12,11 +12,11 @@
#include <backtrace.h>
#include <memcheck.h>
#include <quickjs-libc.h>
#include <quickjs.h>
#include <sqlite3.h>
#include <xopt.h>
#include <stdlib.h>
#include <string.h>
#if !defined(_WIN32) && !defined(__MACH__)
@ -139,6 +139,7 @@ void shedPrivileges()
static int _tf_command_test(const char* file, int argc, char* argv[])
{
#if !defined(__ANDROID__)
typedef struct args_t {
const char* tests;
bool help;
@ -177,6 +178,7 @@ xopt_help:
{
free((void*)extras);
}
#endif
return 1;
}

View File

@ -6,11 +6,10 @@
#include "trace.h"
#include "util.js.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "quickjs-libc.h"
#include <assert.h>
typedef enum _serialize_type_t {

View File

@ -10,8 +10,6 @@
#include <string.h>
#include <uv.h>
#include "quickjs-libc.h"
typedef int promiseid_t;
typedef struct _socket_t socket_t;

View File

@ -21,8 +21,6 @@
#include <assert.h>
#include <inttypes.h>
#include "quickjs-libc.h"
static JSClassID _tf_ssb_classId;
void _tf_ssb_on_rpc(tf_ssb_connection_t* connection, uint8_t flags, int32_t request_number, JSValue args, const uint8_t* message, size_t size, void* user_data);

View File

@ -14,8 +14,6 @@
#include <time.h>
#include <uv.h>
#include "quickjs-libc.h"
void tf_ssb_test_id_conversion(const tf_test_options_t* options)
{
tf_printf("Testing id conversion.\n");
@ -114,11 +112,7 @@ static void _ssb_test_idle(uv_idle_t* idle)
{
tf_util_report_error(context, result);
}
if (r < 0)
{
js_std_dump_error(context);
}
else if (r == 0)
if (r == 0)
{
break;
}

View File

@ -27,7 +27,6 @@
#include "unzip.h"
#include "quickjs.h"
#include "quickjs-libc.h"
#include <backtrace.h>
@ -1449,14 +1448,7 @@ static bool _tf_task_run_jobs(tf_task_t* task)
tf_util_report_error(context, result);
JS_FreeValue(context, result);
}
if (r < 0)
{
js_std_dump_error(context);
}
else
{
return r != 0;
}
return r != 0;
}
return 0;
}

View File

@ -10,8 +10,6 @@
#include <string.h>
#include <stdio.h>
#include "quickjs-libc.h"
#ifdef _WIN32
#include <io.h>
#include <windows.h>

View File

@ -9,7 +9,6 @@
#include <openssl/crypto.h>
#include <openssl/sha.h>
#include <picohttpparser.h>
#include <quickjs-libc.h>
#include <sodium/utils.h>
#include <uv.h>
@ -176,19 +175,13 @@ bool tf_util_report_error(JSContext* context, JSValue value)
JS_FreeValue(context, stack);
tf_task_t* task = tf_task_get(context);
if (!task || !tf_task_send_error_to_parent(task, value))
{
js_std_dump_error(context);
}
tf_task_send_error_to_parent(task, value);
is_error = true;
}
else if (JS_IsException(value))
{
tf_task_t* task = tf_task_get(context);
if (!task || !tf_task_send_error_to_parent(task, value))
{
js_std_dump_error(context);
}
tf_task_send_error_to_parent(task, value);
is_error = true;
}
return is_error;