meta: purge most instances of vim hints
This commit is contained in:
parent
9682c06273
commit
c7429e9055
@ -487,8 +487,3 @@ int main (int argc, char * argv[]) {
|
||||
return out;
|
||||
}
|
||||
|
||||
/*
|
||||
* vim: tabstop=4
|
||||
* vim: shiftwidth=4
|
||||
* vim: noexpandtab
|
||||
*/
|
||||
|
@ -317,8 +317,3 @@ int main (int argc, char * argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* vim: tabstop=4
|
||||
* vim: shiftwidth=4
|
||||
* vim: noexpandtab
|
||||
*/
|
||||
|
@ -177,9 +177,3 @@ int main (int argc, char * argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* vim: tabstop=4
|
||||
* vim: shiftwidth=4
|
||||
* vim: noexpandtab
|
||||
*/
|
||||
|
||||
|
@ -1,13 +1,15 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*
|
||||
* terminal-palette.h - Terminal color palette
|
||||
/**
|
||||
* @file apps/terminal-palette.h
|
||||
* @brief Terminal color palette
|
||||
*
|
||||
* Provides the color table for both the basic 16 colors (here,
|
||||
* chosen from the Tango design documents), as well as the other
|
||||
* colors making up the basic 256 color palette derived from xterm.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*/
|
||||
|
||||
#define PALETTE_COLORS 256
|
||||
|
@ -1,14 +1,15 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012 K. Lange
|
||||
*
|
||||
* toaru_logo.h - Generated by GIMP, ToaruOS logo
|
||||
/**
|
||||
* @file apps/toaru_logo.sh
|
||||
* @brief Generated by GIMP, ToaruOS logo
|
||||
*
|
||||
* Used by sysinfo. Can be used by other things as well.
|
||||
* TODO: sysinfo should probably just load a bitmap?
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2021 K. Lange
|
||||
*/
|
||||
|
||||
static const struct {
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
|
@ -1,15 +1,16 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*
|
||||
* vga-palette.h - 256-to-VGA palette
|
||||
/**
|
||||
* @brief VGA palette conversion
|
||||
*
|
||||
* Converts 256-color index values to closest matching 16-color
|
||||
* value for the VGA terminal. Note that values here are terminal
|
||||
* color codes, not the VGA color codes - the terminal converts
|
||||
* them to VGA color codes later. This was automatically generated
|
||||
* from a script, but I don't know where that script went.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*/
|
||||
#define PALETTE_COLORS 256
|
||||
uint32_t vga_colors[PALETTE_COLORS] = {
|
||||
|
@ -1,8 +1,3 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
*
|
||||
* Pipe
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
@ -1,7 +1,3 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
*
|
||||
* General-purpose tree implementation
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <kernel/list.h>
|
||||
|
@ -1,13 +1,14 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2013-2018 K. Lange
|
||||
*
|
||||
* Authentication Helpers
|
||||
/**
|
||||
* @brief Authentication Helpers
|
||||
*
|
||||
* This library allows multiple login programs (login, sudo, glogin)
|
||||
* to share authentication code by providing a single palce to check
|
||||
* passwords against /etc/master.passwd and to set typical login vars.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2013-2018 K. Lange
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
@ -1,4 +1,7 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Draws buttons.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
|
@ -1,15 +1,16 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*
|
||||
* Configuration File Reader
|
||||
/**
|
||||
* @brief Configuration File Reader
|
||||
*
|
||||
* Reads an implementation of the INI "standard". Note that INI
|
||||
* isn't actually a standard. We support the following:
|
||||
* - ; comments
|
||||
* - foo=bar keyword assignment
|
||||
* - [sections]
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
@ -1,13 +1,16 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
/**
|
||||
* @brief Decode UTF8 to codepoints.
|
||||
*
|
||||
* This is a simple implementation of a UTF-8 decoder with an
|
||||
* equivalent API to the older third-party (and much cooler...)
|
||||
* version that ToaruOS used to use. Keep feeding it bytes and
|
||||
* will eventually set *codep to a codepoint. Should also be able
|
||||
* to detect bad UTF-8.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*/
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -1,9 +1,10 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Client-side Window Decoration library
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*
|
||||
* Client-side Window Decoration library
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <_cheader.h>
|
||||
|
@ -1,4 +1,7 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief DEFLATE inflater
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2020 K. Lange
|
||||
|
@ -1,7 +1,3 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
*
|
||||
* General-purpose list implementations.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <_cheader.h>
|
||||
|
@ -1,7 +1,3 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
*
|
||||
* General-purpose tree implementation
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <_cheader.h>
|
||||
|
@ -1,10 +1,10 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Internal definitions used by the Yutani compositor.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2013-2018 K. Lange
|
||||
*
|
||||
* Internal definitions used by the Yutani compositor
|
||||
* and extension plugins.
|
||||
* Copyright (C) 2013-2021 K. Lange
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
|
@ -1,11 +1,12 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2014-2018 K. Lange
|
||||
*
|
||||
* Yutani Client Library
|
||||
/**
|
||||
* @brief Yutani Client Library
|
||||
*
|
||||
* Client library for the compositing window system.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2014-2021 K. Lange
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* Kernel linker script for x86
|
||||
*/
|
||||
OUTPUT_FORMAT("binary")
|
||||
/*ENTRY(start) */
|
||||
phys = 0x7c00;
|
||||
|
@ -1,12 +1,11 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Authentication routines.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2013-2018 K. Lange
|
||||
*
|
||||
* Authentication methods
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -1,9 +1,12 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Button "widget"
|
||||
*
|
||||
* Really just a function to render a button...
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*
|
||||
* ttk button widget
|
||||
*/
|
||||
#include <toaru/graphics.h>
|
||||
#include <toaru/button.h>
|
||||
|
@ -1,15 +1,16 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*
|
||||
* Configuration File Reader
|
||||
/**
|
||||
* @brief Configuration File Reader
|
||||
*
|
||||
* Reads an implementation of the INI "standard". Note that INI
|
||||
* isn't actually a standard. We support the following:
|
||||
* - ; comments
|
||||
* - foo=bar keyword assignment
|
||||
* - [sections]
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <toaru/hashmap.h>
|
||||
|
@ -1,11 +1,11 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Client-side Window Decoration library
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*
|
||||
* Client-side Window Decoration library
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <math.h>
|
||||
#include <dlfcn.h>
|
||||
|
@ -1,11 +1,11 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Generic Graphics library for ToaruOS
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*
|
||||
* Generic Graphics library for ToaruOS
|
||||
* Copyright (C) 2012-2021 K. Lange
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
@ -1,9 +1,11 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Generic hashmap implementation.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2013-2018 K. Lange
|
||||
*/
|
||||
|
||||
#include <toaru/list.h>
|
||||
#include <toaru/hashmap.h>
|
||||
|
||||
|
@ -1,12 +1,13 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*
|
||||
* icon_cache - caches icons
|
||||
/**
|
||||
* @brief icon_cache - caches icons
|
||||
*
|
||||
* Used be a few different applications.
|
||||
* Probably needs scaling?
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*/
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -1,9 +1,10 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief libtoaru_inflate: Methods for decompressing DEFLATE and gzip payloads.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2020 K. Lange
|
||||
*
|
||||
* libtoaru_inflate: Methods for decompressing DEFLATE and gzip payloads.
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
@ -1,10 +1,11 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief libtoaru_jpeg: Decode simple JPEGs.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*
|
||||
* libtoaru_jpeg: Decode simple JPEGs.
|
||||
*
|
||||
* Adapted from Raul Aguaviva's Python "micro JPEG visualizer":
|
||||
*
|
||||
* MIT License
|
||||
|
@ -1,3 +1,11 @@
|
||||
/**
|
||||
* @brief JSON parser.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018-2021 K. Lange
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <ctype.h>
|
||||
|
13
lib/kbd.c
13
lib/kbd.c
@ -1,14 +1,15 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*
|
||||
* General-purpose keyboard conversion library.
|
||||
/**
|
||||
* @brief General-purpose keyboard conversion library.
|
||||
*
|
||||
* This provides similar functionality to xkb:
|
||||
* - It provides mappings for keyboards from locales
|
||||
* - It translates incoming key presses to key names
|
||||
* - It translates incoming keys to escape sequences
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2012-2018 K. Lange
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,9 +1,10 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief General-purpose list implementations.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2011-2018 K. Lange
|
||||
*
|
||||
* General-purpose list implementations.
|
||||
*/
|
||||
|
||||
#ifdef _KERNEL_
|
||||
|
@ -1,9 +1,10 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief HTML-ish markup parser.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*
|
||||
* Markup parser.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <toaru/markup.h>
|
||||
|
@ -1,3 +1,11 @@
|
||||
/**
|
||||
* @brief Marked up text label renderer.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2021 K. Lange
|
||||
*/
|
||||
#include <toaru/markup.h>
|
||||
#include <toaru/list.h>
|
||||
#include <toaru/graphics.h>
|
||||
|
13
lib/menu.c
13
lib/menu.c
@ -1,12 +1,13 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*
|
||||
* menu - Provides menus.
|
||||
/**
|
||||
* @brief Cascading graphical menu library.
|
||||
*
|
||||
* C reimplementation of the original Python menu library.
|
||||
* Used to provide menu bars and the applications menu.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018-2021 K. Lange
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
13
lib/pex.c
13
lib/pex.c
@ -1,12 +1,13 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief pex - Packet EXchange client library
|
||||
*
|
||||
* Provides a friendly interface to the "Packet Exchange"
|
||||
* functionality provided by the packetfs kernel interface.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2014-2018 K. Lange
|
||||
*
|
||||
* pex - Packet EXchange client library
|
||||
*
|
||||
* Provides a friendly interface to the "Packet Exchange"
|
||||
* functionality provided by the packetfs kernel module.
|
||||
*/
|
||||
#include <alloca.h>
|
||||
#include <assert.h>
|
||||
|
@ -1,9 +1,10 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief PNG decoder.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2020 K. Lange
|
||||
*
|
||||
* libtoaru_png: PNG decoder
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
17
lib/rline.c
17
lib/rline.c
@ -1,11 +1,16 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Line editor
|
||||
*
|
||||
* Interactive line input editor with syntax highlighting for
|
||||
* a handful of languages. Based on an old version of Bim.
|
||||
* Used by the shell and Kuroko.
|
||||
*
|
||||
* This library is generally usable on Linux and even Windows.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2018 K. Lange
|
||||
*
|
||||
* Experimental rline replacement with syntax highlighting, based
|
||||
* on bim's highlighting and line editing.
|
||||
*
|
||||
* Copyright (C) 2018-2021 K. Lange
|
||||
*/
|
||||
#define _XOPEN_SOURCE
|
||||
#define _DEFAULT_SOURCE
|
||||
|
@ -1,6 +1,13 @@
|
||||
/**
|
||||
* @brief Dummy library to provide rline to Python, but
|
||||
* our Python port is currently on hold.
|
||||
*
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* @copyright 2018-2021 K. Lange
|
||||
*/
|
||||
#include <string.h>
|
||||
#include <toaru/rline.h>
|
||||
/* dummy lib */
|
||||
|
||||
void * rline_exp_for_python(void * _stdin, void * _stdout, char * prompt) {
|
||||
|
||||
|
@ -1,22 +1,11 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Terrible little ANSI escape parser.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2014-2018 K. Lange
|
||||
*
|
||||
* Portable library for terminal emulation.
|
||||
*/
|
||||
|
||||
#ifdef _KERNEL_
|
||||
# include <kernel/system.h>
|
||||
# include <kernel/types.h>
|
||||
# include <kernel/logging.h>
|
||||
static void _spin_lock(volatile int * foo) { return; }
|
||||
static void _spin_unlock(volatile int * foo) { return; }
|
||||
# define rgba(r,g,b,a) (((uint32_t)a * 0x1000000) + ((uint32_t)r * 0x10000) + ((uint32_t)g * 0x100) + ((uint32_t)b * 0x1))
|
||||
# define rgb(r,g,b) rgba(r,g,b,0xFF)
|
||||
# define atof(i) (0.0f)
|
||||
#include <toaru/termemu.h>
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <math.h>
|
||||
@ -27,9 +16,6 @@ static void _spin_unlock(volatile int * foo) { return; }
|
||||
#include <toaru/termemu.h>
|
||||
|
||||
#include <toaru/spinlock.h>
|
||||
#define _spin_lock spin_lock
|
||||
#define _spin_unlock spin_unlock
|
||||
#endif
|
||||
|
||||
#define MAX_ARGS 1024
|
||||
|
||||
@ -597,9 +583,9 @@ static void _ansi_put(term_state_t * s, char c) {
|
||||
}
|
||||
|
||||
void ansi_put(term_state_t * s, char c) {
|
||||
_spin_lock(&s->lock);
|
||||
spin_lock(&s->lock);
|
||||
_ansi_put(s, c);
|
||||
_spin_unlock(&s->lock);
|
||||
spin_unlock(&s->lock);
|
||||
}
|
||||
|
||||
term_state_t * ansi_init(term_state_t * s, int w, int y, term_callbacks_t * callbacks_in) {
|
||||
|
@ -1,9 +1,10 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief General-purpose tree implementation
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2011-2018 K. Lange
|
||||
*
|
||||
* General-purpose tree implementation
|
||||
*/
|
||||
|
||||
#ifdef _KERNEL_
|
||||
|
11
lib/yutani.c
11
lib/yutani.c
@ -1,11 +1,12 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
/**
|
||||
* @brief Yutani Client Library
|
||||
*
|
||||
* Client library for the compositing window system.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2014-2018 K. Lange
|
||||
*
|
||||
* Yutani Client Library
|
||||
*
|
||||
* Client library for the compositing window system.
|
||||
*/
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -1,12 +1,13 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2013-2018 K. Lange
|
||||
*
|
||||
/***
|
||||
* getpwent, setpwent, endpwent, fgetpwent
|
||||
* getpwuid, getpwnam
|
||||
*
|
||||
* These functions manage entries in the password files.
|
||||
*
|
||||
* @copyright
|
||||
* This file is part of ToaruOS and is released under the terms
|
||||
* of the NCSA / University of Illinois License - see LICENSE.md
|
||||
* Copyright (C) 2013-2018 K. Lange
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,6 +1,3 @@
|
||||
/* vim: tabstop=4 shiftwidth=4 noexpandtab
|
||||
*
|
||||
*/
|
||||
ENTRY(_start)
|
||||
|
||||
SECTIONS
|
||||
|
Loading…
Reference in New Issue
Block a user