Skip to content

Instantly share code, notes, and snippets.

@13m0n4de
13m0n4de / Make-tinycc-possible-to-include-files-over-https.patch
Last active March 29, 2024 20:11
TCC Patch Enabling File Inclusion via HTTPS using CURL, Modified from @rexim's Patch
From e312c2984445891e2961384bb98e31ddc4816027 Mon Sep 17 00:00:00 2001
From: 13m0n4de <[email protected]>
Date: Sat, 17 Feb 2024 22:39:17 +0800
Subject: [PATCH] Make it possible to include files over https
The original patch no longer works on the latest TCC, so I created this one.
Additionally, I modified it to download the header files to the same directory as the source code.
---
Makefile | 2 +-
tcc.c | 7 +++++++
@13m0n4de
13m0n4de / Make-chibicc-possible-to-include-files-over-https.patch
Last active February 17, 2024 14:31
Chibicc Patch Enabling File Inclusion via HTTPS using CURL
From 80dc44045e764fcd438971fde323f2207165f091 Mon Sep 17 00:00:00 2001
From: 13m0n4de <[email protected]>
Date: Sat, 17 Feb 2024 22:08:56 +0800
Subject: [PATCH] Make it possible to include files over https
---
Makefile | 2 +-
main.c | 7 +++++++
preprocess.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 55 insertions(+), 1 deletion(-)
#![no_std]
#![no_main]
extern crate alloc;
extern crate user_lib;
use alloc::vec;
use embedded_graphics::{
draw_target::DrawTarget,
geometry::{OriginDimensions, Point},