Skip to content

Commit

Permalink
update github.com/zig-lang to github.com/ziglang
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed May 25, 2018
1 parent af7073b commit 4308541
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -114,7 +114,7 @@ libc. Create demo games using Zig.

## Building

[![Build Status](https://travis-ci.org/zig-lang/zig.svg?branch=master)](https://travis-ci.org/zig-lang/zig)
[![Build Status](https://travis-ci.org/ziglang/zig.svg?branch=master)](https://travis-ci.org/ziglang/zig)
[![Build status](https://ci.appveyor.com/api/projects/status/4t80mk2dmucrc38i/branch/master?svg=true)](https://ci.appveyor.com/project/andrewrk/zig-d3l86/branch/master)

### Stage 1: Build Zig from C++ Source Code
Expand Down Expand Up @@ -161,7 +161,7 @@ bin/zig build --build-file ../build.zig test

##### Windows

See https://github.com/zig-lang/zig/wiki/Building-Zig-on-Windows
See https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows

### Stage 2: Build Self-Hosted Zig from Zig Source Code

Expand Down
8 changes: 4 additions & 4 deletions doc/langref.html.in
Expand Up @@ -96,7 +96,7 @@
</p>
<p>
If you search for something specific in this documentation and do not find it,
please <a href="https://github.com/zig-lang/www.ziglang.org/issues/new?title=I%20searched%20for%20___%20in%20the%20docs%20and%20didn%27t%20find%20it">file an issue</a> or <a href="https://webchat.freenode.net/?channels=%23zig">say something on IRC</a>.
please <a href="https://github.com/ziglang/www.ziglang.org/issues/new?title=I%20searched%20for%20___%20in%20the%20docs%20and%20didn%27t%20find%20it">file an issue</a> or <a href="https://webchat.freenode.net/?channels=%23zig">say something on IRC</a>.
</p>
<p>
The code samples in this document are compiled and tested as part of the main test suite of Zig.
Expand Down Expand Up @@ -2827,7 +2827,7 @@ test "fn reflection" {
</p>
<p>
The number of unique error values across the entire compilation should determine the size of the error set type.
However right now it is hard coded to be a <code>u16</code>. See <a href="https://github.com/zig-lang/zig/issues/786">#768</a>.
However right now it is hard coded to be a <code>u16</code>. See <a href="https://github.com/ziglang/zig/issues/786">#768</a>.
</p>
<p>
You can implicitly cast an error from a subset to its superset:
Expand Down Expand Up @@ -5958,7 +5958,7 @@ pub fn main() void {
{#code_begin|exe#}
{#link_libc#}
const c = @cImport({
// See https://github.com/zig-lang/zig/issues/515
// See https://github.com/ziglang/zig/issues/515
@cDefine("_NO_CRT_STDIO_INLINE", "1");
@cInclude("stdio.h");
});
Expand Down Expand Up @@ -6301,7 +6301,7 @@ fn readU32Be() u32 {}
<li>Non-Ascii Unicode line endings: U+0085 (NEL), U+2028 (LS), U+2029 (PS).</li>
</ul>
<p>The codepoint U+000a (LF) (which is encoded as the single-byte value 0x0a) is the line terminator character. This character always terminates a line of zig source code (except possbly the last line of the file).</p>
<p>For some discussion on the rationale behind these design decisions, see <a href="https://github.com/zig-lang/zig/issues/663">issue #663</a></p>
<p>For some discussion on the rationale behind these design decisions, see <a href="https://github.com/ziglang/zig/issues/663">issue #663</a></p>
{#header_close#}
{#header_open|Grammar#}
<pre><code class="nohighlight">Root = many(TopLevelItem) EOF
Expand Down
2 changes: 1 addition & 1 deletion example/hello_world/hello_libc.zig
@@ -1,5 +1,5 @@
const c = @cImport({
// See https://github.com/zig-lang/zig/issues/515
// See https://github.com/ziglang/zig/issues/515
@cDefine("_NO_CRT_STDIO_INLINE", "1");
@cInclude("stdio.h");
@cInclude("string.h");
Expand Down
4 changes: 2 additions & 2 deletions src/analyze.cpp
Expand Up @@ -1007,7 +1007,7 @@ TypeTableEntry *get_fn_type(CodeGen *g, FnTypeId *fn_type_id) {
if (fn_type_id->return_type != nullptr) {
ensure_complete_type(g, fn_type_id->return_type);
} else {
zig_panic("TODO implement inferred return types https://github.com/zig-lang/zig/issues/447");
zig_panic("TODO implement inferred return types https://github.com/ziglang/zig/issues/447");
}

TypeTableEntry *fn_type = new_type_table_entry(TypeTableEntryIdFn);
Expand Down Expand Up @@ -1556,7 +1556,7 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c
return g->builtin_types.entry_invalid;
}
add_node_error(g, proto_node,
buf_sprintf("TODO implement inferred return types https://github.com/zig-lang/zig/issues/447"));
buf_sprintf("TODO implement inferred return types https://github.com/ziglang/zig/issues/447"));
return g->builtin_types.entry_invalid;
//return get_generic_fn_type(g, &fn_type_id);
}
Expand Down
6 changes: 3 additions & 3 deletions src/codegen.cpp
Expand Up @@ -582,7 +582,7 @@ static LLVMValueRef fn_llvm_value(CodeGen *g, FnTableEntry *fn_table_entry) {
addLLVMArgAttr(fn_table_entry->llvm_value, (unsigned)gen_index, "nonnull");
}
// Note: byval is disabled on windows due to an LLVM bug:
// https://github.com/zig-lang/zig/issues/536
// https://github.com/ziglang/zig/issues/536
if (is_byval && g->zig_target.os != OsWindows) {
addLLVMArgAttr(fn_table_entry->llvm_value, (unsigned)gen_index, "byval");
}
Expand Down Expand Up @@ -3067,7 +3067,7 @@ static LLVMValueRef ir_render_call(CodeGen *g, IrExecutable *executable, IrInstr
for (size_t param_i = 0; param_i < fn_type_id->param_count; param_i += 1) {
FnGenParamInfo *gen_info = &fn_type->data.fn.gen_param_info[param_i];
// Note: byval is disabled on windows due to an LLVM bug:
// https://github.com/zig-lang/zig/issues/536
// https://github.com/ziglang/zig/issues/536
if (gen_info->is_byval && g->zig_target.os != OsWindows) {
addLLVMCallsiteAttr(result, (unsigned)gen_info->gen_index, "byval");
}
Expand Down Expand Up @@ -6730,7 +6730,7 @@ static void init(CodeGen *g) {
const char *target_specific_features;
if (g->is_native_target) {
// LLVM creates invalid binaries on Windows sometimes.
// See https://github.com/zig-lang/zig/issues/508
// See https://github.com/ziglang/zig/issues/508
// As a workaround we do not use target native features on Windows.
if (g->zig_target.os == OsWindows) {
target_specific_cpu_args = "";
Expand Down
8 changes: 4 additions & 4 deletions src/ir.cpp
Expand Up @@ -12130,7 +12130,7 @@ static bool ir_analyze_fn_call_generic_arg(IrAnalyze *ira, AstNode *fn_proto_nod
casted_arg->value.type->id == TypeTableEntryIdNumLitFloat)
{
ir_add_error(ira, casted_arg,
buf_sprintf("compiler bug: integer and float literals in var args function must be casted. https://github.com/zig-lang/zig/issues/557"));
buf_sprintf("compiler bug: integer and float literals in var args function must be casted. https://github.com/ziglang/zig/issues/557"));
return false;
}

Expand Down Expand Up @@ -12331,7 +12331,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal

if (fn_proto_node->data.fn_proto.is_var_args) {
ir_add_error(ira, &call_instruction->base,
buf_sprintf("compiler bug: unable to call var args function at compile time. https://github.com/zig-lang/zig/issues/313"));
buf_sprintf("compiler bug: unable to call var args function at compile time. https://github.com/ziglang/zig/issues/313"));
return ira->codegen->builtin_types.entry_invalid;
}

Expand Down Expand Up @@ -12424,7 +12424,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal
}
if (call_instruction->is_async && fn_type_id->is_var_args) {
ir_add_error(ira, call_instruction->fn_ref,
buf_sprintf("compiler bug: TODO: implement var args async functions. https://github.com/zig-lang/zig/issues/557"));
buf_sprintf("compiler bug: TODO: implement var args async functions. https://github.com/ziglang/zig/issues/557"));
return ira->codegen->builtin_types.entry_invalid;
}

Expand Down Expand Up @@ -12507,7 +12507,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal
VariableTableEntry *arg_var = get_fn_var_by_index(parent_fn_entry, arg_tuple_i);
if (arg_var == nullptr) {
ir_add_error(ira, arg,
buf_sprintf("compiler bug: var args can't handle void. https://github.com/zig-lang/zig/issues/557"));
buf_sprintf("compiler bug: var args can't handle void. https://github.com/ziglang/zig/issues/557"));
return ira->codegen->builtin_types.entry_invalid;
}
IrInstruction *arg_var_ptr_inst = ir_get_var_ptr(ira, arg, arg_var, true, false);
Expand Down
2 changes: 1 addition & 1 deletion std/atomic/queue.zig
Expand Up @@ -16,7 +16,7 @@ pub fn Queue(comptime T: type) type {
data: T,
};

// TODO: well defined copy elision: https://github.com/zig-lang/zig/issues/287
// TODO: well defined copy elision: https://github.com/ziglang/zig/issues/287
pub fn init(self: &Self) void {
self.root.next = null;
self.head = &self.root;
Expand Down
8 changes: 4 additions & 4 deletions std/event.zig
Expand Up @@ -148,7 +148,7 @@ pub const Loop = struct {
};

pub async fn connect(loop: &Loop, _address: &const std.net.Address) !std.os.File {
var address = _address.*; // TODO https://github.com/zig-lang/zig/issues/733
var address = _address.*; // TODO https://github.com/ziglang/zig/issues/733

const sockfd = try std.os.posixSocket(posix.AF_INET, posix.SOCK_STREAM | posix.SOCK_CLOEXEC | posix.SOCK_NONBLOCK, posix.PROTO_tcp);
errdefer std.os.close(sockfd);
Expand All @@ -172,7 +172,7 @@ test "listen on a port, send bytes, receive bytes" {

async<&mem.Allocator> fn handler(tcp_server: &TcpServer, _addr: &const std.net.Address, _socket: &const std.os.File) void {
const self = @fieldParentPtr(Self, "tcp_server", tcp_server);
var socket = _socket.*; // TODO https://github.com/zig-lang/zig/issues/733
var socket = _socket.*; // TODO https://github.com/ziglang/zig/issues/733
defer socket.close();
const next_handler = async errorableHandler(self, _addr, socket) catch |err| switch (err) {
error.OutOfMemory => @panic("unable to handle connection: out of memory"),
Expand All @@ -186,8 +186,8 @@ test "listen on a port, send bytes, receive bytes" {
}

async fn errorableHandler(self: &Self, _addr: &const std.net.Address, _socket: &const std.os.File) !void {
const addr = _addr.*; // TODO https://github.com/zig-lang/zig/issues/733
var socket = _socket.*; // TODO https://github.com/zig-lang/zig/issues/733
const addr = _addr.*; // TODO https://github.com/ziglang/zig/issues/733
var socket = _socket.*; // TODO https://github.com/ziglang/zig/issues/733

var adapter = std.io.FileOutStream.init(&socket);
var stream = &adapter.stream;
Expand Down
2 changes: 1 addition & 1 deletion std/fmt/index.zig
Expand Up @@ -824,7 +824,7 @@ test "fmt.format" {
try testFmt("file size: 63MiB\n", "file size: {Bi}\n", usize(63 * 1024 * 1024));
try testFmt("file size: 66.06MB\n", "file size: {B2}\n", usize(63 * 1024 * 1024));
{
// Dummy field because of https://github.com/zig-lang/zig/issues/557.
// Dummy field because of https://github.com/ziglang/zig/issues/557.
const Struct = struct {
unused: u8,
};
Expand Down
2 changes: 1 addition & 1 deletion std/mem.zig
Expand Up @@ -702,7 +702,7 @@ test "std.mem.rotate" {
}));
}

// TODO: When https://github.com/zig-lang/zig/issues/649 is solved these can be done by
// TODO: When https://github.com/ziglang/zig/issues/649 is solved these can be done by
// endian-casting the pointer and then dereferencing

pub fn endianSwapIfLe(comptime T: type, x: T) T {
Expand Down
6 changes: 3 additions & 3 deletions std/os/index.zig
Expand Up @@ -239,7 +239,7 @@ pub fn close(handle: FileHandle) void {
/// Calls POSIX read, and keeps trying if it gets interrupted.
pub fn posixRead(fd: i32, buf: []u8) !void {
// Linux can return EINVAL when read amount is > 0x7ffff000
// See https://github.com/zig-lang/zig/pull/743#issuecomment-363158274
// See https://github.com/ziglang/zig/pull/743#issuecomment-363158274
const max_buf_len = 0x7ffff000;

var index: usize = 0;
Expand Down Expand Up @@ -281,7 +281,7 @@ pub const PosixWriteError = error{
/// Calls POSIX write, and keeps trying if it gets interrupted.
pub fn posixWrite(fd: i32, bytes: []const u8) !void {
// Linux can return EINVAL when write amount is > 0x7ffff000
// See https://github.com/zig-lang/zig/pull/743#issuecomment-363165856
// See https://github.com/ziglang/zig/pull/743#issuecomment-363165856
const max_bytes_len = 0x7ffff000;

var index: usize = 0;
Expand Down Expand Up @@ -2513,7 +2513,7 @@ pub const SpawnThreadError = error{
/// caller must call wait on the returned thread
pub fn spawnThread(context: var, comptime startFn: var) SpawnThreadError!&Thread {
// TODO compile-time call graph analysis to determine stack upper bound
// https://github.com/zig-lang/zig/issues/157
// https://github.com/ziglang/zig/issues/157
const default_stack_size = 8 * 1024 * 1024;

const Context = @typeOf(context);
Expand Down
2 changes: 1 addition & 1 deletion std/os/test.zig
Expand Up @@ -12,7 +12,7 @@ const AtomicOrder = builtin.AtomicOrder;
test "makePath, put some files in it, deleteTree" {
if (builtin.os == builtin.Os.windows) {
// TODO implement os.Dir for windows
// https://github.com/zig-lang/zig/issues/709
// https://github.com/ziglang/zig/issues/709
return;
}
try os.makePath(a, "os_test_tmp/b/c");
Expand Down
2 changes: 1 addition & 1 deletion std/os/time.zig
Expand Up @@ -135,7 +135,7 @@ pub const Timer = struct {

//At some point we may change our minds on RAW, but for now we're
// sticking with posix standard MONOTONIC. For more information, see:
// https://github.com/zig-lang/zig/pull/933
// https://github.com/ziglang/zig/pull/933
//
//const monotonic_clock_id = switch(builtin.os) {
// Os.linux => linux.CLOCK_MONOTONIC_RAW,
Expand Down
4 changes: 2 additions & 2 deletions std/special/compiler_rt/comparetf2.zig
@@ -1,4 +1,4 @@
// TODO https://github.com/zig-lang/zig/issues/305
// TODO https://github.com/ziglang/zig/issues/305
// and then make the return types of some of these functions the enum instead of c_int
const LE_LESS = c_int(-1);
const LE_EQUAL = c_int(0);
Expand Down Expand Up @@ -59,7 +59,7 @@ pub extern fn __letf2(a: f128, b: f128) c_int {
;
}

// TODO https://github.com/zig-lang/zig/issues/305
// TODO https://github.com/ziglang/zig/issues/305
// and then make the return types of some of these functions the enum instead of c_int
const GE_LESS = c_int(-1);
const GE_EQUAL = c_int(0);
Expand Down
4 changes: 2 additions & 2 deletions std/zig/ast.zig
Expand Up @@ -113,7 +113,7 @@ pub const Error = union(enum) {

pub fn render(self: &Error, tokens: &Tree.TokenList, stream: var) !void {
switch (self.*) {
// TODO https://github.com/zig-lang/zig/issues/683
// TODO https://github.com/ziglang/zig/issues/683
@TagType(Error).InvalidToken => |*x| return x.render(tokens, stream),
@TagType(Error).ExpectedVarDeclOrFn => |*x| return x.render(tokens, stream),
@TagType(Error).ExpectedAggregateKw => |*x| return x.render(tokens, stream),
Expand All @@ -137,7 +137,7 @@ pub const Error = union(enum) {

pub fn loc(self: &Error) TokenIndex {
switch (self.*) {
// TODO https://github.com/zig-lang/zig/issues/683
// TODO https://github.com/ziglang/zig/issues/683
@TagType(Error).InvalidToken => |x| return x.token,
@TagType(Error).ExpectedVarDeclOrFn => |x| return x.token,
@TagType(Error).ExpectedAggregateKw => |x| return x.token,
Expand Down
2 changes: 1 addition & 1 deletion test/build_examples.zig
Expand Up @@ -9,7 +9,7 @@ pub fn addCases(cases: &tests.BuildExamplesContext) void {
cases.add("example/guess_number/main.zig");
if (!is_windows) {
// TODO get this test passing on windows
// See https://github.com/zig-lang/zig/issues/538
// See https://github.com/ziglang/zig/issues/538
cases.addBuildFile("example/shared_library/build.zig");
cases.addBuildFile("example/mix_o_files/build.zig");
}
Expand Down
2 changes: 1 addition & 1 deletion test/cases/coroutines.zig
Expand Up @@ -204,7 +204,7 @@ test "error return trace across suspend points - async return" {
cancel p2;
}

// TODO https://github.com/zig-lang/zig/issues/760
// TODO https://github.com/ziglang/zig/issues/760
fn nonFailing() (promise->error!void) {
return async<std.debug.global_allocator> suspendThenFail() catch unreachable;
}
Expand Down
2 changes: 1 addition & 1 deletion test/cases/misc.zig
Expand Up @@ -543,7 +543,7 @@ test "@typeName" {
comptime {
assert(mem.eql(u8, @typeName(i64), "i64"));
assert(mem.eql(u8, @typeName(&usize), "&usize"));
// https://github.com/zig-lang/zig/issues/675
// https://github.com/ziglang/zig/issues/675
assert(mem.eql(u8, @typeName(TypeFromFn(u8)), "TypeFromFn(u8)"));
assert(mem.eql(u8, @typeName(Struct), "Struct"));
assert(mem.eql(u8, @typeName(Union), "Union"));
Expand Down
4 changes: 2 additions & 2 deletions test/compare_output.zig
Expand Up @@ -131,7 +131,7 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {
\\const is_windows = builtin.os == builtin.Os.windows;
\\const c = @cImport({
\\ if (is_windows) {
\\ // See https://github.com/zig-lang/zig/issues/515
\\ // See https://github.com/ziglang/zig/issues/515
\\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
\\ @cInclude("io.h");
\\ @cInclude("fcntl.h");
Expand Down Expand Up @@ -316,7 +316,7 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {
\\const is_windows = builtin.os == builtin.Os.windows;
\\const c = @cImport({
\\ if (is_windows) {
\\ // See https://github.com/zig-lang/zig/issues/515
\\ // See https://github.com/ziglang/zig/issues/515
\\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
\\ @cInclude("io.h");
\\ @cInclude("fcntl.h");
Expand Down

0 comments on commit 4308541

Please sign in to comment.