mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Merge branch 'master' of https://github.com/odin-lang/Odin
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
// package gzip implements a small GZIP implementation as an example.
|
||||||
|
package compress_gzip
|
||||||
/*
|
/*
|
||||||
Copyright 2021 Jeroen van Rijn <nom@duclavier.com>.
|
Copyright 2021 Jeroen van Rijn <nom@duclavier.com>.
|
||||||
Made available under Odin's BSD-3 license.
|
Made available under Odin's BSD-3 license.
|
||||||
@@ -87,4 +89,3 @@ Example:
|
|||||||
bytes.buffer_destroy(&buf)
|
bytes.buffer_destroy(&buf)
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
package compress_gzip
|
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// package shoco is an implementation of the shoco short string compressor.
|
||||||
|
package compress_shoco
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
|
package compress_shoco
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This file was generated, so don't edit this by hand.
|
This file was generated, so don't edit this by hand.
|
||||||
Transliterated from https://github.com/Ed-von-Schleck/shoco/blob/master/shoco_model.h,
|
Transliterated from https://github.com/Ed-von-Schleck/shoco/blob/master/shoco_model.h,
|
||||||
which is an English word model.
|
which is an English word model.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package compress_shoco
|
|
||||||
|
|
||||||
DEFAULT_MODEL :: Shoco_Model {
|
DEFAULT_MODEL :: Shoco_Model {
|
||||||
min_char = 39,
|
min_char = 39,
|
||||||
max_char = 122,
|
max_char = 122,
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// package shoco is an implementation of the shoco short string compressor.
|
||||||
|
package compress_shoco
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2022 Jeroen van Rijn <nom@duclavier.com>.
|
Copyright 2022 Jeroen van Rijn <nom@duclavier.com>.
|
||||||
Made available under Odin's BSD-3 license.
|
Made available under Odin's BSD-3 license.
|
||||||
@@ -8,9 +11,6 @@
|
|||||||
An implementation of [shoco](https://github.com/Ed-von-Schleck/shoco) by Christian Schramm.
|
An implementation of [shoco](https://github.com/Ed-von-Schleck/shoco) by Christian Schramm.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// package shoco is an implementation of the shoco short string compressor.
|
|
||||||
package compress_shoco
|
|
||||||
|
|
||||||
import "base:intrinsics"
|
import "base:intrinsics"
|
||||||
import "core:compress"
|
import "core:compress"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// package zlib implements Deflate decompression
|
||||||
|
package compress_zlib
|
||||||
/*
|
/*
|
||||||
Copyright 2021 Jeroen van Rijn <nom@duclavier.com>.
|
Copyright 2021 Jeroen van Rijn <nom@duclavier.com>.
|
||||||
Made available under Odin's BSD-3 license.
|
Made available under Odin's BSD-3 license.
|
||||||
@@ -48,4 +50,3 @@ Example:
|
|||||||
assert(len(s) == OUTPUT_SIZE)
|
assert(len(s) == OUTPUT_SIZE)
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
package compress_zlib
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// package bit_array implements a dynamically-sized array of bits
|
||||||
|
package container_dynamic_bit_array
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The Bit Array can be used in several ways:
|
The Bit Array can be used in several ways:
|
||||||
|
|
||||||
@@ -49,4 +52,3 @@ Example:
|
|||||||
fmt.printf("Freed.\n")
|
fmt.printf("Freed.\n")
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
package container_dynamic_bit_array
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// package list implements an intrusive doubly-linked list.
|
||||||
|
package container_intrusive_list
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Package list implements an intrusive doubly-linked list.
|
Package list implements an intrusive doubly-linked list.
|
||||||
|
|
||||||
@@ -46,4 +49,3 @@ Output:
|
|||||||
Hello
|
Hello
|
||||||
World
|
World
|
||||||
*/
|
*/
|
||||||
package container_intrusive_list
|
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// package lru implements an LRU cache. It automatically removes older entries if its capacity is reached.
|
||||||
|
package container_lru
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// package priority_queue implements a Priority Queue data structure
|
||||||
|
package container_priority_queue
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// package queue implements a dynamically resizable double-ended queue/ring-buffer.
|
||||||
|
package container_queue
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// package rbtree implements a red-black tree
|
||||||
|
package container_rbtree
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
// This package implements a red-black tree
|
|
||||||
package container_rbtree
|
package container_rbtree
|
||||||
|
|
||||||
@(require) import "base:intrinsics"
|
@(require) import "base:intrinsics"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
// package small_array implements a dynamic array-like interface on a stack-allocated, fixed-size array.
|
||||||
Package small_array implements a dynamic array like
|
package container_small_array
|
||||||
interface on a stack-allocated, fixed-size array.
|
|
||||||
|
|
||||||
|
/*
|
||||||
The Small_Array type is optimal for scenarios where you need
|
The Small_Array type is optimal for scenarios where you need
|
||||||
a container for a fixed number of elements of a specific type,
|
a container for a fixed number of elements of a specific type,
|
||||||
with the total number known at compile time but the exact
|
with the total number known at compile time but the exact
|
||||||
@@ -52,4 +52,3 @@ Output:
|
|||||||
Hellope
|
Hellope
|
||||||
|
|
||||||
*/
|
*/
|
||||||
package container_small_array
|
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
// package topological_sort implements a generic O(V+E) topological sorter.
|
||||||
|
package container_topological_sort
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
// The following is a generic O(V+E) topological sorter implementation.
|
|
||||||
// This is the fastest known method for topological sorting and Odin's
|
|
||||||
// map type is being used to accelerate lookups.
|
|
||||||
package container_topological_sort
|
package container_topological_sort
|
||||||
|
|
||||||
|
/*
|
||||||
|
The following is a generic O(V+E) topological sorter implementation.
|
||||||
|
This is the fastest known method for topological sorting and Odin's
|
||||||
|
map type is being used to accelerate lookups.
|
||||||
|
*/
|
||||||
|
|
||||||
import "base:intrinsics"
|
import "base:intrinsics"
|
||||||
import "base:runtime"
|
import "base:runtime"
|
||||||
_ :: intrinsics
|
_ :: intrinsics
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
// package debug implements a stack trace library. Only works when debug symbols are enabled `-debug`.
|
||||||
|
package debug_trace
|
||||||
/*
|
/*
|
||||||
A debug stack trace library. Only works when debug symbols are enabled `-debug`.
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
import "base:runtime"
|
import "base:runtime"
|
||||||
import "core:debug/trace"
|
import "core:debug/trace"
|
||||||
@@ -48,4 +48,3 @@ Example:
|
|||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
package debug_trace
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Package `core:dynlib` implements loading of shared libraries/DLLs and their symbols.
|
package dynlib implements loading of shared libraries/DLLs and their symbols.
|
||||||
|
|
||||||
The behaviour of dynamically loaded libraries is specific to the target platform of the program.
|
The behaviour of dynamically loaded libraries is specific to the target platform of the program.
|
||||||
For in depth detail on the underlying behaviour please refer to your target platform's documentation.
|
For in depth detail on the underlying behaviour please refer to your target platform's documentation.
|
||||||
|
|||||||
Reference in New Issue
Block a user