diff --git a/builtin/array.v b/builtin/array.v index 21d8aea42d..154a158726 100644 --- a/builtin/array.v +++ b/builtin/array.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin struct array { diff --git a/builtin/builtin.v b/builtin/builtin.v index 53a8c32055..3ce1d2d332 100644 --- a/builtin/builtin.v +++ b/builtin/builtin.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin pub fn exit(reason string) { diff --git a/builtin/int.v b/builtin/int.v index c4813aaab5..8a97521a47 100644 --- a/builtin/int.v +++ b/builtin/int.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin fn (d double) str() string { diff --git a/builtin/map.v b/builtin/map.v index c1f919b400..fdc420a0e2 100644 --- a/builtin/map.v +++ b/builtin/map.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin struct map { diff --git a/builtin/option.v b/builtin/option.v index 1377c90abf..63d9f410b8 100644 --- a/builtin/option.v +++ b/builtin/option.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin struct Option { diff --git a/builtin/smap.v b/builtin/smap.v index d87d089f56..455cd86aed 100644 --- a/builtin/smap.v +++ b/builtin/smap.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin struct Entry2 { diff --git a/builtin/string.v b/builtin/string.v index f458b28818..c6f150a2ec 100644 --- a/builtin/string.v +++ b/builtin/string.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin // V strings are not null-terminated. diff --git a/builtin/string_builder.v b/builtin/string_builder.v index d3ee8bf4f1..6fbc9847d1 100644 --- a/builtin/string_builder.v +++ b/builtin/string_builder.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin struct StringBuilder { diff --git a/builtin/string_test.v b/builtin/string_test.v index b88867befa..c0356f71df 100644 --- a/builtin/string_test.v +++ b/builtin/string_test.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + fn test_add() { mut a := 'a' a += 'b' diff --git a/builtin/utf8.v b/builtin/utf8.v index cf4137f798..c1f9971c04 100644 --- a/builtin/utf8.v +++ b/builtin/utf8.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module builtin fn (s string) is_utf8() int { diff --git a/compiler/cgen.v b/compiler/cgen.v index 6de3c93441..8962cc828c 100644 --- a/compiler/cgen.v +++ b/compiler/cgen.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module main struct CGen { diff --git a/compiler/fn.v b/compiler/fn.v index cc7b8158a2..674f326e8e 100644 --- a/compiler/fn.v +++ b/compiler/fn.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module main const ( diff --git a/compiler/jsgen.v b/compiler/jsgen.v index b3f356cfdf..8dd0dd5a5b 100644 --- a/compiler/jsgen.v +++ b/compiler/jsgen.v @@ -1,6 +1,7 @@ // Copyright (c) 2019 Alexander Medvednikov. All rights reserved. // Use of this source code is governed by an MIT license // that can be found in the LICENSE file. + module main // TODO replace with comptime code generation. diff --git a/compiler/main.v b/compiler/main.v index 9fb7afd06e..97b9116c31 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module main import os diff --git a/compiler/parser.v b/compiler/parser.v index 9c0f89d6e6..f116ae1023 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module main import rand diff --git a/compiler/scanner.v b/compiler/scanner.v index fa95dcc161..4532b222d7 100644 --- a/compiler/scanner.v +++ b/compiler/scanner.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module main struct Scanner { diff --git a/compiler/table.v b/compiler/table.v index ac0710c7d3..7efcdb3aa5 100644 --- a/compiler/table.v +++ b/compiler/table.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module main struct Table { diff --git a/compiler/token.v b/compiler/token.v index 516ad65428..d3543e2280 100644 --- a/compiler/token.v +++ b/compiler/token.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module main enum Token { diff --git a/examples/hello_world.v b/examples/hello_world.v index 341befc011..9bec065d9c 100644 --- a/examples/hello_world.v +++ b/examples/hello_world.v @@ -1 +1,5 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + println('Hello!') diff --git a/examples/links_scraper.v b/examples/links_scraper.v index f72d09365a..afacac41a8 100644 --- a/examples/links_scraper.v +++ b/examples/links_scraper.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + import http fn main() { diff --git a/examples/news_fetcher.v b/examples/news_fetcher.v index 4fce584991..1ef9596241 100644 --- a/examples/news_fetcher.v +++ b/examples/news_fetcher.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + import http import json import sync diff --git a/examples/tetris/tetris.v b/examples/tetris/tetris.v index 73c5a33dfa..0b6e23d8bf 100644 --- a/examples/tetris/tetris.v +++ b/examples/tetris/tetris.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + import rand import time import gx diff --git a/examples/word_counter/word_counter.v b/examples/word_counter/word_counter.v index 18531187a7..a8f39c7823 100644 --- a/examples/word_counter/word_counter.v +++ b/examples/word_counter/word_counter.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + import os fn main() { diff --git a/gg/gg.v b/gg/gg.v index cd43b8d895..3c909cf69f 100644 --- a/gg/gg.v +++ b/gg/gg.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module gg import stbi diff --git a/gl/1shader.v b/gl/1shader.v index e878b292bf..ccf5f65b2d 100644 --- a/gl/1shader.v +++ b/gl/1shader.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module gl import os diff --git a/gl/gl.v b/gl/gl.v index d9f41166bb..a3bcdb3014 100644 --- a/gl/gl.v +++ b/gl/gl.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module gl import const ( diff --git a/glfw/glfw.v b/glfw/glfw.v index d8bf32752d..186b8f57e0 100644 --- a/glfw/glfw.v +++ b/glfw/glfw.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module glfw // Debugging a custom build diff --git a/glm/glm.v b/glm/glm.v index 4560829c4e..81b4906200 100644 --- a/glm/glm.v +++ b/glm/glm.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module glm import math diff --git a/gx/gx.v b/gx/gx.v index 98e60580ab..2d682d4c9f 100644 --- a/gx/gx.v +++ b/gx/gx.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module gx struct Color { diff --git a/http/download_lin.v b/http/download_lin.v index 2422214b3d..ebbc6cbbfc 100644 --- a/http/download_lin.v +++ b/http/download_lin.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module http import os diff --git a/http/download_mac.v b/http/download_mac.v index 1df58873a1..57bb976fe5 100644 --- a/http/download_mac.v +++ b/http/download_mac.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module http import os diff --git a/http/download_win.v b/http/download_win.v index 4af2fcc6e6..40f4c9f975 100644 --- a/http/download_win.v +++ b/http/download_win.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module http fn download_file_with_progress(url, out string, cb, cb_finished voidptr) { diff --git a/http/http.v b/http/http.v index 8408a55e93..c6abc21521 100644 --- a/http/http.v +++ b/http/http.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module http struct Request { diff --git a/http/http_mac.v b/http/http_mac.v index 82956d40ee..7088b297e6 100644 --- a/http/http_mac.v +++ b/http/http_mac.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module http #include @@ -125,7 +129,7 @@ fn (req &Request) do() Response { h := '$key: $val' hlist = C.curl_slist_append(hlist, h.cstr()) } - // curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, // (long)CURL_HTTP_VERSION_2TLS);ô`CÒÊ€9À + // curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, // (long)CURL_HTTP_VERSION_2TLS);�`C�ʀ9� C.curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1) if req.verbose { C.curl_easy_setopt(curl, CURLOPT_VERBOSE, 1) diff --git a/http/http_win.v b/http/http_win.v index c9cf0f2a7b..eae052ce65 100644 --- a/http/http_win.v +++ b/http/http_win.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module http #flag -lwininet diff --git a/json/json_primitives.v b/json/json_primitives.v index b9b54574dc..108c916647 100644 --- a/json/json_primitives.v +++ b/json/json_primitives.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module json // #include "json/cJSON/cJSON.c" diff --git a/os/os.v b/os/os.v index 4977bcf477..883883270f 100644 --- a/os/os.v +++ b/os/os.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module os #include diff --git a/os/os_mac.v b/os/os_mac.v index 1b066245f7..9684246e1e 100644 --- a/os/os_mac.v +++ b/os/os_mac.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module os #include diff --git a/os/os_win.v b/os/os_win.v index 9f888b62b9..df18d798e4 100644 --- a/os/os_win.v +++ b/os/os_win.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module os fn ls(path string) []string { diff --git a/rand/rand.v b/rand/rand.v index fb43fad830..0260da44ae 100644 --- a/rand/rand.v +++ b/rand/rand.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module rand #include diff --git a/stbi/stbi.v b/stbi/stbi.v index 3f3e605110..78a5a1078a 100644 --- a/stbi/stbi.v +++ b/stbi/stbi.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module stbi #include "glad.h" diff --git a/sync/sync_mac.v b/sync/sync_mac.v index ab4fa03523..3e20102659 100644 --- a/sync/sync_mac.v +++ b/sync/sync_mac.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module sync #include diff --git a/sync/sync_win.v b/sync/sync_win.v index aec69932d9..001e69e2f2 100644 --- a/sync/sync_win.v +++ b/sync/sync_win.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module sync struct Mutex { diff --git a/time/time.v b/time/time.v index 37572edb89..a6ae9e08b0 100644 --- a/time/time.v +++ b/time/time.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module time import rand diff --git a/time/time_lin.v b/time/time_lin.v index 1c2dba293e..9b1a3a27cf 100644 --- a/time/time_lin.v +++ b/time/time_lin.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module time // in ms diff --git a/time/time_mac.v b/time/time_mac.v index efc17febb0..d20d2dae4c 100644 --- a/time/time_mac.v +++ b/time/time_mac.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module time //#flag -framework CoreServices diff --git a/time/time_win.v b/time/time_win.v index f701b4d69e..fb0b151112 100644 --- a/time/time_win.v +++ b/time/time_win.v @@ -1,3 +1,7 @@ +// Copyright (c) 2019 Alexander Medvednikov. All rights reserved. +// Use of this source code is governed by an MIT license +// that can be found in the LICENSE file. + module time // in ms