authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-24 21:27:44-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-24 21:27:44-04:00
log43085417bec447ab31f3454e180213f102885cc8
tree63f07e0cbb7014de96cf969cf20b6f8d80af9336
parentaf7073b7790ad055825ea2805cfd00b69f82f2fe

update github.com/zig-lang to github.com/ziglang


19 files changed, 37 insertions(+), 37 deletions(-)

README.md+2-2
......@@ -114,7 +114,7 @@ libc. Create demo games using Zig.
114114
115115## Building
116116
117[![Build Status](https://travis-ci.org/zig-lang/zig.svg?branch=master)](https://travis-ci.org/zig-lang/zig)
117[![Build Status](https://travis-ci.org/ziglang/zig.svg?branch=master)](https://travis-ci.org/ziglang/zig)
118118[![Build status](https://ci.appveyor.com/api/projects/status/4t80mk2dmucrc38i/branch/master?svg=true)](https://ci.appveyor.com/project/andrewrk/zig-d3l86/branch/master)
119119
120120### Stage 1: Build Zig from C++ Source Code
......@@ -161,7 +161,7 @@ bin/zig build --build-file ../build.zig test
161161
162162##### Windows
163163
164See https://github.com/zig-lang/zig/wiki/Building-Zig-on-Windows
164See https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows
165165
166166### Stage 2: Build Self-Hosted Zig from Zig Source Code
167167
doc/langref.html.in+4-4
......@@ -96,7 +96,7 @@
9696 </p>
9797 <p>
9898 If you search for something specific in this documentation and do not find it,
99 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>.
99 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>.
100100 </p>
101101 <p>
102102 The code samples in this document are compiled and tested as part of the main test suite of Zig.
......@@ -2827,7 +2827,7 @@ test "fn reflection" {
28272827 </p>
28282828 <p>
28292829 The number of unique error values across the entire compilation should determine the size of the error set type.
2830 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>.
2830 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>.
28312831 </p>
28322832 <p>
28332833 You can implicitly cast an error from a subset to its superset:
......@@ -5958,7 +5958,7 @@ pub fn main() void {
59585958 {#code_begin|exe#}
59595959 {#link_libc#}
59605960const c = @cImport({
5961 // See https://github.com/zig-lang/zig/issues/515
5961 // See https://github.com/ziglang/zig/issues/515
59625962 @cDefine("_NO_CRT_STDIO_INLINE", "1");
59635963 @cInclude("stdio.h");
59645964});
......@@ -6301,7 +6301,7 @@ fn readU32Be() u32 {}
63016301 <li>Non-Ascii Unicode line endings: U+0085 (NEL), U+2028 (LS), U+2029 (PS).</li>
63026302 </ul>
63036303 <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>
6304 <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>
6304 <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>
63056305 {#header_close#}
63066306 {#header_open|Grammar#}
63076307 <pre><code class="nohighlight">Root = many(TopLevelItem) EOF
example/hello_world/hello_libc.zig+1-1
......@@ -1,5 +1,5 @@
11const c = @cImport({
2 // See https://github.com/zig-lang/zig/issues/515
2 // See https://github.com/ziglang/zig/issues/515
33 @cDefine("_NO_CRT_STDIO_INLINE", "1");
44 @cInclude("stdio.h");
55 @cInclude("string.h");
src/analyze.cpp+2-2
......@@ -1007,7 +1007,7 @@ TypeTableEntry *get_fn_type(CodeGen *g, FnTypeId *fn_type_id) {
10071007 if (fn_type_id->return_type != nullptr) {
10081008 ensure_complete_type(g, fn_type_id->return_type);
10091009 } else {
1010 zig_panic("TODO implement inferred return types https://github.com/zig-lang/zig/issues/447");
1010 zig_panic("TODO implement inferred return types https://github.com/ziglang/zig/issues/447");
10111011 }
10121012
10131013 TypeTableEntry *fn_type = new_type_table_entry(TypeTableEntryIdFn);
......@@ -1556,7 +1556,7 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c
15561556 return g->builtin_types.entry_invalid;
15571557 }
15581558 add_node_error(g, proto_node,
1559 buf_sprintf("TODO implement inferred return types https://github.com/zig-lang/zig/issues/447"));
1559 buf_sprintf("TODO implement inferred return types https://github.com/ziglang/zig/issues/447"));
15601560 return g->builtin_types.entry_invalid;
15611561 //return get_generic_fn_type(g, &fn_type_id);
15621562 }
src/codegen.cpp+3-3
......@@ -582,7 +582,7 @@ static LLVMValueRef fn_llvm_value(CodeGen *g, FnTableEntry *fn_table_entry) {
582582 addLLVMArgAttr(fn_table_entry->llvm_value, (unsigned)gen_index, "nonnull");
583583 }
584584 // Note: byval is disabled on windows due to an LLVM bug:
585 // https://github.com/zig-lang/zig/issues/536
585 // https://github.com/ziglang/zig/issues/536
586586 if (is_byval && g->zig_target.os != OsWindows) {
587587 addLLVMArgAttr(fn_table_entry->llvm_value, (unsigned)gen_index, "byval");
588588 }
......@@ -3067,7 +3067,7 @@ static LLVMValueRef ir_render_call(CodeGen *g, IrExecutable *executable, IrInstr
30673067 for (size_t param_i = 0; param_i < fn_type_id->param_count; param_i += 1) {
30683068 FnGenParamInfo *gen_info = &fn_type->data.fn.gen_param_info[param_i];
30693069 // Note: byval is disabled on windows due to an LLVM bug:
3070 // https://github.com/zig-lang/zig/issues/536
3070 // https://github.com/ziglang/zig/issues/536
30713071 if (gen_info->is_byval && g->zig_target.os != OsWindows) {
30723072 addLLVMCallsiteAttr(result, (unsigned)gen_info->gen_index, "byval");
30733073 }
......@@ -6730,7 +6730,7 @@ static void init(CodeGen *g) {
67306730 const char *target_specific_features;
67316731 if (g->is_native_target) {
67326732 // LLVM creates invalid binaries on Windows sometimes.
6733 // See https://github.com/zig-lang/zig/issues/508
6733 // See https://github.com/ziglang/zig/issues/508
67346734 // As a workaround we do not use target native features on Windows.
67356735 if (g->zig_target.os == OsWindows) {
67366736 target_specific_cpu_args = "";
src/ir.cpp+4-4
......@@ -12130,7 +12130,7 @@ static bool ir_analyze_fn_call_generic_arg(IrAnalyze *ira, AstNode *fn_proto_nod
1213012130 casted_arg->value.type->id == TypeTableEntryIdNumLitFloat)
1213112131 {
1213212132 ir_add_error(ira, casted_arg,
12133 buf_sprintf("compiler bug: integer and float literals in var args function must be casted. https://github.com/zig-lang/zig/issues/557"));
12133 buf_sprintf("compiler bug: integer and float literals in var args function must be casted. https://github.com/ziglang/zig/issues/557"));
1213412134 return false;
1213512135 }
1213612136
......@@ -12331,7 +12331,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal
1233112331
1233212332 if (fn_proto_node->data.fn_proto.is_var_args) {
1233312333 ir_add_error(ira, &call_instruction->base,
12334 buf_sprintf("compiler bug: unable to call var args function at compile time. https://github.com/zig-lang/zig/issues/313"));
12334 buf_sprintf("compiler bug: unable to call var args function at compile time. https://github.com/ziglang/zig/issues/313"));
1233512335 return ira->codegen->builtin_types.entry_invalid;
1233612336 }
1233712337
......@@ -12424,7 +12424,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal
1242412424 }
1242512425 if (call_instruction->is_async && fn_type_id->is_var_args) {
1242612426 ir_add_error(ira, call_instruction->fn_ref,
12427 buf_sprintf("compiler bug: TODO: implement var args async functions. https://github.com/zig-lang/zig/issues/557"));
12427 buf_sprintf("compiler bug: TODO: implement var args async functions. https://github.com/ziglang/zig/issues/557"));
1242812428 return ira->codegen->builtin_types.entry_invalid;
1242912429 }
1243012430
......@@ -12507,7 +12507,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal
1250712507 VariableTableEntry *arg_var = get_fn_var_by_index(parent_fn_entry, arg_tuple_i);
1250812508 if (arg_var == nullptr) {
1250912509 ir_add_error(ira, arg,
12510 buf_sprintf("compiler bug: var args can't handle void. https://github.com/zig-lang/zig/issues/557"));
12510 buf_sprintf("compiler bug: var args can't handle void. https://github.com/ziglang/zig/issues/557"));
1251112511 return ira->codegen->builtin_types.entry_invalid;
1251212512 }
1251312513 IrInstruction *arg_var_ptr_inst = ir_get_var_ptr(ira, arg, arg_var, true, false);
std/atomic/queue.zig+1-1
......@@ -16,7 +16,7 @@ pub fn Queue(comptime T: type) type {
1616 data: T,
1717 };
1818
19 // TODO: well defined copy elision: https://github.com/zig-lang/zig/issues/287
19 // TODO: well defined copy elision: https://github.com/ziglang/zig/issues/287
2020 pub fn init(self: &Self) void {
2121 self.root.next = null;
2222 self.head = &self.root;
std/event.zig+4-4
......@@ -148,7 +148,7 @@ pub const Loop = struct {
148148};
149149
150150pub async fn connect(loop: &Loop, _address: &const std.net.Address) !std.os.File {
151 var address = _address.*; // TODO https://github.com/zig-lang/zig/issues/733
151 var address = _address.*; // TODO https://github.com/ziglang/zig/issues/733
152152
153153 const sockfd = try std.os.posixSocket(posix.AF_INET, posix.SOCK_STREAM | posix.SOCK_CLOEXEC | posix.SOCK_NONBLOCK, posix.PROTO_tcp);
154154 errdefer std.os.close(sockfd);
......@@ -172,7 +172,7 @@ test "listen on a port, send bytes, receive bytes" {
172172
173173 async<&mem.Allocator> fn handler(tcp_server: &TcpServer, _addr: &const std.net.Address, _socket: &const std.os.File) void {
174174 const self = @fieldParentPtr(Self, "tcp_server", tcp_server);
175 var socket = _socket.*; // TODO https://github.com/zig-lang/zig/issues/733
175 var socket = _socket.*; // TODO https://github.com/ziglang/zig/issues/733
176176 defer socket.close();
177177 const next_handler = async errorableHandler(self, _addr, socket) catch |err| switch (err) {
178178 error.OutOfMemory => @panic("unable to handle connection: out of memory"),
......@@ -186,8 +186,8 @@ test "listen on a port, send bytes, receive bytes" {
186186 }
187187
188188 async fn errorableHandler(self: &Self, _addr: &const std.net.Address, _socket: &const std.os.File) !void {
189 const addr = _addr.*; // TODO https://github.com/zig-lang/zig/issues/733
190 var socket = _socket.*; // TODO https://github.com/zig-lang/zig/issues/733
189 const addr = _addr.*; // TODO https://github.com/ziglang/zig/issues/733
190 var socket = _socket.*; // TODO https://github.com/ziglang/zig/issues/733
191191
192192 var adapter = std.io.FileOutStream.init(&socket);
193193 var stream = &adapter.stream;
std/fmt/index.zig+1-1
......@@ -824,7 +824,7 @@ test "fmt.format" {
824824 try testFmt("file size: 63MiB\n", "file size: {Bi}\n", usize(63 * 1024 * 1024));
825825 try testFmt("file size: 66.06MB\n", "file size: {B2}\n", usize(63 * 1024 * 1024));
826826 {
827 // Dummy field because of https://github.com/zig-lang/zig/issues/557.
827 // Dummy field because of https://github.com/ziglang/zig/issues/557.
828828 const Struct = struct {
829829 unused: u8,
830830 };
std/mem.zig+1-1
......@@ -702,7 +702,7 @@ test "std.mem.rotate" {
702702 }));
703703}
704704
705// TODO: When https://github.com/zig-lang/zig/issues/649 is solved these can be done by
705// TODO: When https://github.com/ziglang/zig/issues/649 is solved these can be done by
706706// endian-casting the pointer and then dereferencing
707707
708708pub fn endianSwapIfLe(comptime T: type, x: T) T {
std/os/index.zig+3-3
......@@ -239,7 +239,7 @@ pub fn close(handle: FileHandle) void {
239239/// Calls POSIX read, and keeps trying if it gets interrupted.
240240pub fn posixRead(fd: i32, buf: []u8) !void {
241241 // Linux can return EINVAL when read amount is > 0x7ffff000
242 // See https://github.com/zig-lang/zig/pull/743#issuecomment-363158274
242 // See https://github.com/ziglang/zig/pull/743#issuecomment-363158274
243243 const max_buf_len = 0x7ffff000;
244244
245245 var index: usize = 0;
......@@ -281,7 +281,7 @@ pub const PosixWriteError = error{
281281/// Calls POSIX write, and keeps trying if it gets interrupted.
282282pub fn posixWrite(fd: i32, bytes: []const u8) !void {
283283 // Linux can return EINVAL when write amount is > 0x7ffff000
284 // See https://github.com/zig-lang/zig/pull/743#issuecomment-363165856
284 // See https://github.com/ziglang/zig/pull/743#issuecomment-363165856
285285 const max_bytes_len = 0x7ffff000;
286286
287287 var index: usize = 0;
......@@ -2513,7 +2513,7 @@ pub const SpawnThreadError = error{
25132513/// caller must call wait on the returned thread
25142514pub fn spawnThread(context: var, comptime startFn: var) SpawnThreadError!&Thread {
25152515 // TODO compile-time call graph analysis to determine stack upper bound
2516 // https://github.com/zig-lang/zig/issues/157
2516 // https://github.com/ziglang/zig/issues/157
25172517 const default_stack_size = 8 * 1024 * 1024;
25182518
25192519 const Context = @typeOf(context);
std/os/test.zig+1-1
......@@ -12,7 +12,7 @@ const AtomicOrder = builtin.AtomicOrder;
1212test "makePath, put some files in it, deleteTree" {
1313 if (builtin.os == builtin.Os.windows) {
1414 // TODO implement os.Dir for windows
15 // https://github.com/zig-lang/zig/issues/709
15 // https://github.com/ziglang/zig/issues/709
1616 return;
1717 }
1818 try os.makePath(a, "os_test_tmp/b/c");
std/os/time.zig+1-1
......@@ -135,7 +135,7 @@ pub const Timer = struct {
135135
136136 //At some point we may change our minds on RAW, but for now we're
137137 // sticking with posix standard MONOTONIC. For more information, see:
138 // https://github.com/zig-lang/zig/pull/933
138 // https://github.com/ziglang/zig/pull/933
139139 //
140140 //const monotonic_clock_id = switch(builtin.os) {
141141 // Os.linux => linux.CLOCK_MONOTONIC_RAW,
std/special/compiler_rt/comparetf2.zig+2-2
......@@ -1,4 +1,4 @@
1// TODO https://github.com/zig-lang/zig/issues/305
1// TODO https://github.com/ziglang/zig/issues/305
22// and then make the return types of some of these functions the enum instead of c_int
33const LE_LESS = c_int(-1);
44const LE_EQUAL = c_int(0);
......@@ -59,7 +59,7 @@ pub extern fn __letf2(a: f128, b: f128) c_int {
5959 ;
6060}
6161
62// TODO https://github.com/zig-lang/zig/issues/305
62// TODO https://github.com/ziglang/zig/issues/305
6363// and then make the return types of some of these functions the enum instead of c_int
6464const GE_LESS = c_int(-1);
6565const GE_EQUAL = c_int(0);
std/zig/ast.zig+2-2
......@@ -113,7 +113,7 @@ pub const Error = union(enum) {
113113
114114 pub fn render(self: &Error, tokens: &Tree.TokenList, stream: var) !void {
115115 switch (self.*) {
116 // TODO https://github.com/zig-lang/zig/issues/683
116 // TODO https://github.com/ziglang/zig/issues/683
117117 @TagType(Error).InvalidToken => |*x| return x.render(tokens, stream),
118118 @TagType(Error).ExpectedVarDeclOrFn => |*x| return x.render(tokens, stream),
119119 @TagType(Error).ExpectedAggregateKw => |*x| return x.render(tokens, stream),
......@@ -137,7 +137,7 @@ pub const Error = union(enum) {
137137
138138 pub fn loc(self: &Error) TokenIndex {
139139 switch (self.*) {
140 // TODO https://github.com/zig-lang/zig/issues/683
140 // TODO https://github.com/ziglang/zig/issues/683
141141 @TagType(Error).InvalidToken => |x| return x.token,
142142 @TagType(Error).ExpectedVarDeclOrFn => |x| return x.token,
143143 @TagType(Error).ExpectedAggregateKw => |x| return x.token,
test/build_examples.zig+1-1
......@@ -9,7 +9,7 @@ pub fn addCases(cases: &tests.BuildExamplesContext) void {
99 cases.add("example/guess_number/main.zig");
1010 if (!is_windows) {
1111 // TODO get this test passing on windows
12 // See https://github.com/zig-lang/zig/issues/538
12 // See https://github.com/ziglang/zig/issues/538
1313 cases.addBuildFile("example/shared_library/build.zig");
1414 cases.addBuildFile("example/mix_o_files/build.zig");
1515 }
test/cases/coroutines.zig+1-1
......@@ -204,7 +204,7 @@ test "error return trace across suspend points - async return" {
204204 cancel p2;
205205}
206206
207// TODO https://github.com/zig-lang/zig/issues/760
207// TODO https://github.com/ziglang/zig/issues/760
208208fn nonFailing() (promise->error!void) {
209209 return async<std.debug.global_allocator> suspendThenFail() catch unreachable;
210210}
test/cases/misc.zig+1-1
......@@ -543,7 +543,7 @@ test "@typeName" {
543543 comptime {
544544 assert(mem.eql(u8, @typeName(i64), "i64"));
545545 assert(mem.eql(u8, @typeName(&usize), "&usize"));
546 // https://github.com/zig-lang/zig/issues/675
546 // https://github.com/ziglang/zig/issues/675
547547 assert(mem.eql(u8, @typeName(TypeFromFn(u8)), "TypeFromFn(u8)"));
548548 assert(mem.eql(u8, @typeName(Struct), "Struct"));
549549 assert(mem.eql(u8, @typeName(Union), "Union"));
test/compare_output.zig+2-2
......@@ -131,7 +131,7 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {
131131 \\const is_windows = builtin.os == builtin.Os.windows;
132132 \\const c = @cImport({
133133 \\ if (is_windows) {
134 \\ // See https://github.com/zig-lang/zig/issues/515
134 \\ // See https://github.com/ziglang/zig/issues/515
135135 \\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
136136 \\ @cInclude("io.h");
137137 \\ @cInclude("fcntl.h");
......@@ -316,7 +316,7 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {
316316 \\const is_windows = builtin.os == builtin.Os.windows;
317317 \\const c = @cImport({
318318 \\ if (is_windows) {
319 \\ // See https://github.com/zig-lang/zig/issues/515
319 \\ // See https://github.com/ziglang/zig/issues/515
320320 \\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
321321 \\ @cInclude("io.h");
322322 \\ @cInclude("fcntl.h");