This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load("examples/tree.jl") | |
typealias Color Int8 | |
# TODO: RBTreeSet | |
const BLACK = convert(Color, 0) | |
const RED = convert(Color, 1) | |
const NOCOLOR = convert(Color, 2) | |
# TODO: Use Two Colors for nodes | |
abstract RBTreeNode{K,V} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Alternative to: https://github.com/JuliaLang/julia/pull/10714 | |
DLLEXPORT char *jl_fs_readlink(const char *path) | |
{ | |
uv_fs_t req_stat; | |
uv_fs_t req_rl; | |
// get size info needed for the readlink buf: see http://linux.die.net/man/2/readlink | |
int ret_stat = uv_fs_lstat(jl_io_loop, &req_stat, path, NULL); | |
if (ret_stat != 0) { | |
jl_safe_printf("jl_fs_readlink():`stat` ERROR: %s %s\n", |