diff --git a/compiler/parser.v b/compiler/parser.v index fed5f5f34b..0dad4dc1d8 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -133,6 +133,9 @@ fn (p mut Parser) parse() { for p.tok == IMPORT && p.peek() != CONST { p.import_statement() } + if p.table.imports.contains('builtin') { + p.error('module `builtin` cannot be imported') + } return } // Go through every top level token or throw a compilation error if a non-top level token is met @@ -220,7 +223,7 @@ fn (p mut Parser) parse() { out := os.create('/var/tmp/fmt.v') or { panic('failed to create fmt.v') return -} + } out.writeln(p.scanner.fmt_out.str()) out.close() } diff --git a/vlib/pg/pg_lin.v b/vlib/pg/pg_lin.v deleted file mode 100644 index 965aac0d24..0000000000 --- a/vlib/pg/pg_lin.v +++ /dev/null @@ -1,4 +0,0 @@ -module pg - -#flag -I/usr/include/postgresql -// #flag `pkg-config --cflags libpq` diff --git a/vlib/pg/pg_mac.v b/vlib/pg/pg_mac.v deleted file mode 100644 index 65c15291c5..0000000000 --- a/vlib/pg/pg_mac.v +++ /dev/null @@ -1,2 +0,0 @@ -module pg -