From 333f355e23cd4a5a9c20a95699d09f86ecc8aa16 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 3 Sep 2020 02:43:21 +0200 Subject: [PATCH] Revert "cgen: handle variables called "array"" This reverts commit cc714ca5cc0e0500573a0aeae7636d1b77e23963. --- vlib/v/gen/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index e7e46f9f0c..c743153178 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -13,7 +13,7 @@ import v.depgraph // NB: keywords after 'new' are reserved in C++ const ( - c_reserved = ['array', 'delete', 'exit', 'link', 'unix', 'error', 'calloc', 'malloc', 'free', 'panic', + c_reserved = ['delete', 'exit', 'link', 'unix', 'error', 'calloc', 'malloc', 'free', 'panic', 'auto', 'char', 'default', 'do', 'double', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'sizeof', 'static', 'switch', 'typedef', 'union', 'unsigned', 'void', 'volatile', 'while', 'new', 'namespace', 'class', 'typename', 'export']