Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/compiler.c b/src/compiler.c
index 9705fc0..855084d 100644
--- a/src/compiler.c
+++ b/src/compiler.c
@@ -3567,6 +3567,16 @@ static void list(struct GlobalState * state, int exprType, RewindState *rewind)
/* Nested fun times */
state->parser.previous = syntheticToken("<listcomp>");
comprehensionExpression(state, scannerBefore, parserBefore, listInner, OP_MAKE_LIST);
+ } else if (match(TOKEN_ELLIPSIS)) {
+ expression(state);
@klange
klange / _.md
Last active September 19, 2026 06:17
toaru bash patch

Build with:

./configure bash_cv_getenv_redef=no bash_cv_getcwd_malloc=yes bash_cv_func_sigsetjmp=missing --without-bash-malloc --host=aarch64-unknown-toaru
@klange
klange / sortix-wallpaper.c
Last active July 16, 2026 23:08
Sortix's wallpaper generator, as an app for ToaruOS
/**
* @brief Wallpaper generator from Sortix.
*
* Image generator:
*
* Copyright (c) 2014-2016, 2018, 2022-2024 Jonas 'Sortie' Termansen.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
@klange
klange / Makefile
Created August 23, 2025 04:26
VGA text mode font baker
CFLAGS=$(shell pkg-config --cflags freetype2)
LDLIBS=$(shell pkg-config --libs freetype2)
all: bake
/**
* @brief Pairing heap.
* @file module__pheap.c
* @author K. Lange <klange@toaruos.org>
*
* A very simple pairing heap.
*
* Provides a min-heap with insert, peek, and pop.
*
* While heap entries may be mutable, care should be taken not to modify
@klange
klange / _.md
Last active June 16, 2026 13:13
15 Years of ToaruOS

15 Years of ToaruOS

This is a repost and update to an imgur album with screenshots of ToaruOS throughout its development, as imgur is no longer a viable platform for maintaining this collection.

Early Development

My first commit in the ToaruOS repository, ecd4fe2bc170b01ad700ff76c16da96993805355, was made on January 15th, 2011. This date has become ToaruOS's "birthday". It would be another six years and two weeks before ToaruOS's first real release, 1.0.

1 - eL4aHBZ - Humble Beginnings

@klange
klange / toaru.c
Last active October 27, 2021 07:17
#include "os.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <toaru/yutani.h>
#include <toaru/graphics.h>
#include <toaru/decorations.h>
#include <toaru/menu.h>
Test script running on Misaka 1.99.8-3decb961-dirty only my railgun Oct 21 2021 15:40:36 (x86_64), Kuroko 1.2.0
====
ahci: located device at 0x1f02
ahci: examining PCI config space...
ahci: interrupt line = 10
ahci: BAR5 = 0xfebd9000
ahci: mapping mmio to 0xffffff1fc0001000
ahci: implemented ports = 0x3f
ahci: version 1.00
ahci: Telling host controller we are aware of it.
>>> True or explode()
<<module>() from <stdin>>
1 0 TRUE
1 JUMP_IF_TRUE_OR_POP 4 (to 8)
4 GET_GLOBAL 0 'explode'
6 CALL 0
>> 8 POP
2 9 GET_LOCAL 0
11 RETURN
#include <stdio.h>
struct Base {
int foo;
int bar;
};
struct Sub {
struct Base;
int baz;