From 62ff8daa7871b852dfe54433117fc90c51b11645 Mon Sep 17 00:00:00 2001 From: FancyKillerPanda Date: Thu, 24 Feb 2022 12:18:40 +1100 Subject: [PATCH 1/3] Changed //+ignore to //+build ignore. --- core/compress/gzip/example.odin | 2 +- core/compress/zlib/example.odin | 2 +- core/image/png/example.odin | 2 +- core/intrinsics/intrinsics.odin | 2 +- core/math/big/internal.odin | 2 -- core/math/big/tune.odin | 2 +- tests/core/math/big/test.odin | 2 +- 7 files changed, 6 insertions(+), 8 deletions(-) diff --git a/core/compress/gzip/example.odin b/core/compress/gzip/example.odin index 0e2c2b9f6..4ad0b1d7e 100644 --- a/core/compress/gzip/example.odin +++ b/core/compress/gzip/example.odin @@ -1,4 +1,4 @@ -//+ignore +//+build ignore package gzip /* diff --git a/core/compress/zlib/example.odin b/core/compress/zlib/example.odin index ab7fb4cd8..19017b279 100644 --- a/core/compress/zlib/example.odin +++ b/core/compress/zlib/example.odin @@ -1,4 +1,4 @@ -//+ignore +//+build ignore package zlib /* diff --git a/core/image/png/example.odin b/core/image/png/example.odin index 17436c260..8a55cbbea 100644 --- a/core/image/png/example.odin +++ b/core/image/png/example.odin @@ -8,7 +8,7 @@ An example of how to use `load`. */ -//+ignore +//+build ignore package png import "core:image" diff --git a/core/intrinsics/intrinsics.odin b/core/intrinsics/intrinsics.odin index 803b04d17..3f7d72a97 100644 --- a/core/intrinsics/intrinsics.odin +++ b/core/intrinsics/intrinsics.odin @@ -1,5 +1,5 @@ // This is purely for documentation -//+ignore +//+build ignore package intrinsics // Package-Related diff --git a/core/math/big/internal.odin b/core/math/big/internal.odin index dbcd16509..13aa96bef 100644 --- a/core/math/big/internal.odin +++ b/core/math/big/internal.odin @@ -25,8 +25,6 @@ TODO: Handle +/- Infinity and NaN. */ - -//+ignore package math_big import "core:mem" diff --git a/core/math/big/tune.odin b/core/math/big/tune.odin index 78a20c12b..ec1ef9a5b 100644 --- a/core/math/big/tune.odin +++ b/core/math/big/tune.odin @@ -7,7 +7,7 @@ The code started out as an idiomatic source port of libTomMath, which is in the public domain, with thanks. */ -//+ignore +//+build ignore package math_big import "core:time" diff --git a/tests/core/math/big/test.odin b/tests/core/math/big/test.odin index 81f1956dc..8deefb002 100644 --- a/tests/core/math/big/test.odin +++ b/tests/core/math/big/test.odin @@ -1,4 +1,4 @@ -//+ignore +//+build ignore /* Copyright 2021 Jeroen van Rijn . Made available under Odin's BSD-3 license. From cb04116cafa544b984c52688854265f52c9ce44f Mon Sep 17 00:00:00 2001 From: FancyKillerPanda Date: Thu, 24 Feb 2022 12:27:52 +1100 Subject: [PATCH 2/3] Emit a parser warning when encountering an unknown tag. --- src/parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parser.cpp b/src/parser.cpp index 9659e8c18..a6339ce03 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -5578,6 +5578,8 @@ bool parse_file(Parser *p, AstFile *f) { } else { f->flags |= AstFile_IsLazy; } + } else { + warning(tok, "Ignoring unknown tag '%.*s'", LIT(lc)); } } } From e139d1cbe4b104372d0eec23e621b6fd64f84655 Mon Sep 17 00:00:00 2001 From: FancyKillerPanda Date: Thu, 24 Feb 2022 12:45:03 +1100 Subject: [PATCH 3/3] Removed //+build ignore from tests/core/math/big/test.odin. --- tests/core/math/big/test.odin | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/core/math/big/test.odin b/tests/core/math/big/test.odin index 8deefb002..cc3cefaa9 100644 --- a/tests/core/math/big/test.odin +++ b/tests/core/math/big/test.odin @@ -1,4 +1,3 @@ -//+build ignore /* Copyright 2021 Jeroen van Rijn . Made available under Odin's BSD-3 license.